-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
How to get new USDT pair position from Bybit #6827
Comments
It's the same as with BTCUSD, just change it for BTCUSDT: exchange.private_get_position_list({"symbol": 'BTCUSDT'}))['result'] Let me know if that does not answer the question. |
Am geting this error when change symbol to BTCUSDT pair
|
@antebw yes, I am also having that error. Unfortunately, it's not documented in the API docs... you might want to forward this question to ByBit tech support. It will be awesome if you let us know whether you have an answer from them or not – we will add the necessary workarounds on our side as well. Thx for reporting it! |
@antebw I suspect, since BTCUSDT has been added 4 days ago, it may be unavailable with all the endpoints yet: https://bybit-exchange.github.io/docs/inverse/#t-changelog |
|
@antebw yep, found the updated docs here: https://bybit-exchange.github.io/docs/linear/#t-marketdata Will add that shortly. Stay tuned. |
Thank you mate |
This API design with a separate "linear" keyword in the URL is really making the life of developers hard. They should've just added it as a "yet another" pair. But we will try to add the workarounds for it... |
Ok mate let me know when you do it. I appreciate your work. |
@antebw please, update your CCXT to version 1.26.66 and use this code to get your USDT position: exchange.privateLinear_get_position_list({"symbol": 'BTCUSDT'}))['result'] or exchange.privateLinearGetPositionList({"symbol": 'BTCUSDT'}))['result'] We will be happy if you report back whether it works for you or not. Thx again! |
It's working like a charm. Thank you very much, if i find anything more , will report. |
hi kroitor , when i use the symbol 'btc/usdt' to get OHLCV it error
return ccxt.base.errors.ExchangeError: bybit {"ret_code":10001,"ret_msg":"Param validation for 'symbol' failed on the 'symbol' tag","ext_code":"","ext_info":"","result":null,"time_now":"1587805088.704864"} but when i use fetchL2OrderBook it's ok oh, how can i get it ? |
@homily hi! What's your CCXT version? Do you have the same issue with the newest version? |
@homily the linear perpetual BTC/USDT has been added by ByBit not so long ago, and CCXT has been updated accordingly at that time. Let us know if you have issues with it or not after upgrading your CCXT version. Thx! |
@kroitor my ver is 1.26.45,, but i used 'pip install -u ccxt' .. oh no, now it work.... it's my wrong ,,, thanks |
hi,kroitor my version is 1.26.98 when i use ccxt.bybit to get OHLCV with the symbol 'btc/usdt' code is
return is
the 'BTC/USDT' first return start_at an end is None it's wrong? thanks. |
@homily hi! Yes, indeed there was a bug there (ByBit returns a different format of OHLCV for linear perpetuals, sic!). Thx for reporting it! I've uploaded a fix for it, it will become available in CCXT version 1.26.99 in 15 minutes. Please, update your version again after a short while and let us know if that resolves the issue for you or not. Looking forward to hearing from you! |
@kroitor hi kroitor, now i can use it.thanks. |
Shitty 'linear' keyword lol. bybit has a terrible API design, really |
@owneroxxor yeah, i wonder why not just serve all inverse and linear markets at once under a unified url schema, why split the endpoints at all. |
exchange.private_get_position_list({"symbol": 'BTCUSD'}))['result'] works perfectly for inverse perpetual but how to get position for USDT perpertual. ?
/private/linear/position/list .....this is from offical Bybit api but doesnt work for me
thy
The text was updated successfully, but these errors were encountered: