futuresboard icon indicating copy to clipboard operation
futuresboard copied to clipboard

Unified Trading Account

Open georgedevelopment opened this issue 3 years ago • 1 comments

Hello,

It would be great if you could add support for ByBits new Unified Trading Account.

I have upgraded to Unified Trading Account & the dashboard throws errors. When i tried updating the wallet-balance api request from CONTRACT to UNIFIED, when starting futuresboard, it still throws an error regarding it using CONTRACT still

Not sure how i'll fix this, but would be great if you added support for UTA in config

georgedevelopment avatar Mar 02 '23 03:03 georgedevelopment

The fix for you is to change this line of code: https://github.com/ecoppen/futuresboard/blob/001b38e6692016e7f5106dae9a25a51c0ea175d5/src/futuresboard/scraper.py#L547 to params = {"coin": "USDT", "accountType": "UNIFIED"}

This should be implemented in #91 #93 #95 #97 for version 2 hopefully but I need to work out how to accommodate both types. I won't be updating version 1 with this change though.

ecoppen avatar Mar 02 '23 07:03 ecoppen