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/bybit connector upgrade v5 #6902
base: development
Are you sure you want to change the base?
Fix/bybit connector upgrade v5 #6902
Conversation
hi @klpanagi, thank you for submitting PR, fyi, it should be aimed to development, changed https://hummingbot.org/developers/contributions/#checklist |
46ce123
to
30bcc31
Compare
1 similar comment
…into fix/bybit_connector_upgrade_v5
…into fix/bybit_connector_upgrade_v5
Yes we're used Unified account, checking latest commit now |
The order price issue is caused from the trading rule parameters returned from the relevant ByBit API endpoint (https://bybit-exchange.github.io/docs/v5/market/instrument#response-parameters). The TradingRule(
trading_pair,
min_order_size=Decimal(lot_size_filter.get("minOrderAmt")),
max_order_size=Decimal(lot_size_filter.get("maxOrderAmt")),
min_price_increment=Decimal(price_filter.get("tickSize")),
min_base_amount_increment=Decimal(lot_size_filter.get("basePrecision")),
min_quote_amount_increment=Decimal(lot_size_filter.get('quotePrecision')),
min_notional_size=Decimal(lot_size_filter.get("minOrderAmt"))
) The Notice that the value of Am I missing or interpreting something wrong here? UPDATE: Working on a solution... UPDATE 2: Order prices seem to match the expected. @nikspz please pull the last commit. |
|
Steps:
Actual: logs_conf_pure_mm_2.log
|
Steps:
Actual: |
…into fix/bybit_connector_upgrade_v5
@nikspz I cannot reproduce this error. I have tested with both Classic and Unified accounts and i get the balance as expected I will split the PR into separate for Spot and Perp connectors, so maybe we shall continue the discussion there. I will post here as soon as I have the PRs ready. |
also tested for over 16 hours now and balances are reflected correctly (spot) |
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
This PR is relevant to the bounty for upgrading Bybit API to V5
Bybit Spot / Perpetual - Upgrade API to V5
Currently supports the Spot API.
Tests performed by the developer:
Tips for QA testing: