Open nate-ezra-schmidt opened 2 years ago
Check exchange_info
API to get the correct symbol string. I believe USDT margined swap symbols are "BTCUSDT" and "ALGOUSDT".
Ok thanks, got it. Call client.future_exchange_info
to get the symbols.
It's a bit confusing that the symbols with USDT are the same for the spot
market and perp markets.
On Sun, Oct 31, 2021 at 10:57 PM Shu Wang @.***> wrote:
Check exchange_info API to get the correct symbol string. I believe USDT margined swap symbols are "BTCUSDT" and "ALGOUSDT".
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-binance/issues/1069#issuecomment-955954397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL7A74FV7GSO523OEXICXTUJYT5RANCNFSM5HBIQRQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Oh actually, sorry, that still doesn't work with the websocket. This still
doesn't work:
self.start_symbol_ticker_futures_socket(callback=g, symbol='BTCUSDT', futures_type=1)
I tried other methods from websocket api, couldn't find any that work.
On Sun, Oct 31, 2021 at 10:57 PM Shu Wang @.***> wrote:
Check exchange_info API to get the correct symbol string. I believe USDT margined swap symbols are "BTCUSDT" and "ALGOUSDT".
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sammchardy/python-binance/issues/1069#issuecomment-955954397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL7A74FV7GSO523OEXICXTUJYT5RANCNFSM5HBIQRQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I can't get ticker for perp using USDT (e.g. BTCUSDT_PERP), only USD works. this works:
self.start_symbol_ticker_futures_socket(callback=f, symbol=BTCUSD_PERP, futures_type=1)
but these doesn't:self.start_symbol_ticker_futures_socket(callback=f, symbol=BTCUSDT_PERP, futures_type=1) self.start_symbol_ticker_futures_socket(callback=f, symbol=ALGOUSDT_PERP, futures_type=1)