New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix / Kujira / Adding support to multiple markets and market orders #6625
Fix / Kujira / Adding support to multiple markets and market orders #6625
Conversation
475ce2c
to
87411b8
Compare
87411b8
to
becff38
Compare
becff38
to
ffd97fa
Compare
ffd97fa
to
fdb12ea
Compare
fdb12ea
to
aee2ecb
Compare
Hi @fengtality, @cardosofede, @rapcmia We've created this PR (and another one for the Gateway) in order to update and improve our connector due to some feedback we've received from our users. From the HB docs it seems we wouldn't need a PRP for PRs that doesn't require a bounty (but only opening it here), is that correct? As you can see the changes for this PR are relatively simply, only few files. Please kindly take a look at it when you have time. |
4445e00
to
1a0274e
Compare
1dea886
to
1eed3f7
Compare
commit b935385 Author: Danilo Araújo Silva <danilo.silva@funttastic.com> Date: Thu Oct 26 22:35:54 2023 +0300 Fixing unit test. commit bb74caf Author: Danilo Araújo Silva <danilo.silva@funttastic.com> Date: Wed Oct 25 23:04:55 2023 +0300 Improving support to multiple markets. commit 5cbcea1 Author: Álvaro E. F. Mota <alvaro.mota@funttastic.com> Date: Wed Oct 25 15:20:29 2023 -0300 Added command to ignore request with order.exchange_id equals None, Only call market_info clear if there is a market_info commit 87411b8 Author: Darley Araújo Silva <darley.silva@funttastic.com> Date: Thu Oct 19 16:47:14 2023 -0300 Adding support for OrderType.MARKET. commit 31f55a9 Author: Darley Araújo Silva <darley.silva@funttastic.com> Date: Thu Oct 19 16:47:02 2023 -0300 Adding support for multiple trading pairs instead of just one trading pair to the "get_account_balances()" and "_update_markets()" methods.
1eed3f7
to
1705813
Compare
To ensure that strategies or scripts that use more than one market simultaneously, the methods "get_account_balances()" and "_update_markets()" have been updated to support multiple markets. This ensures those strategies, like Arbitrage, can be used.
Additionally, due to user demand for creating scripts that place market orders, support for the 'MARKET' order type has been added.
We also improved the code to avoid trying to update not yet created orders and then avoiding some warning or error messages that could happen.