XChange icon indicating copy to clipboard operation
XChange copied to clipboard

Incorrect parameter order in engine.cancelOrder method

Open mojtabye opened this issue 2 months ago • 3 comments

In the current implementation of SimulatedExchnage at this line, the call to engine.cancelOrder uses the wrong argument order:

engine.cancelOrder(orderId, getApiKey(), type); It should be: engine.cancelOrder(getApiKey(), orderId, type);

This causes cancellation requests to fail or behave unexpectedly. This issue proposes fixing the argument order to match the expected method signature.

mojtabye avatar Oct 21 '25 18:10 mojtabye

I tried to create a pull request to contribute a fix for this issue, but it seems I don’t have the necessary access. Could you please let me know how I can start contributing to the project?

mojtabye avatar Oct 21 '25 18:10 mojtabye

@timmolter

gewure avatar Nov 30 '25 23:11 gewure

you can create a branch in your fork, make changes there and then create a pull request in this repo

bigscoop avatar Dec 01 '25 00:12 bigscoop