Skip to content
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

Conversation

danilo-silva-funttastic
Copy link
Contributor

@danilo-silva-funttastic danilo-silva-funttastic commented Oct 24, 2023

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.

@darley-silva-funttastic darley-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from 475ce2c to 87411b8 Compare October 24, 2023 17:29
@danilo-silva-funttastic danilo-silva-funttastic changed the title Fix/kujira/adding multiple markets support Fix / Kujira / Adding support to multiple markets Oct 24, 2023
@danilo-silva-funttastic danilo-silva-funttastic changed the title Fix / Kujira / Adding support to multiple markets Fix / Kujira / Adding support to multiple markets and market orders Oct 24, 2023
@darley-silva-funttastic darley-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from 87411b8 to becff38 Compare October 24, 2023 18:53
@alvaro-mota-funttastic alvaro-mota-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from becff38 to ffd97fa Compare October 25, 2023 18:41
@danilo-silva-funttastic danilo-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from ffd97fa to fdb12ea Compare October 25, 2023 20:43
@danilo-silva-funttastic danilo-silva-funttastic marked this pull request as ready for review October 25, 2023 20:45
@danilo-silva-funttastic danilo-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from fdb12ea to aee2ecb Compare October 26, 2023 19:16
@danilo-silva-funttastic
Copy link
Contributor Author

danilo-silva-funttastic commented Oct 26, 2023

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.

@danilo-silva-funttastic danilo-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch 4 times, most recently from 4445e00 to 1a0274e Compare November 2, 2023 09:48
@danilo-silva-funttastic danilo-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch 5 times, most recently from 1dea886 to 1eed3f7 Compare November 10, 2023 15:29
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.
@danilo-silva-funttastic danilo-silva-funttastic force-pushed the fix/kujira/adding-multiple-markets-support branch from 1eed3f7 to 1705813 Compare November 13, 2023 11:42
@nikspz nikspz merged commit 28631a2 into hummingbot:development Nov 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants