futuresboard icon indicating copy to clipboard operation
futuresboard copied to clipboard

Subaccount keys show main account balances

Open pekac45 opened this issue 3 years ago • 4 comments

Using Bybit subaccount keys, I want to only see the total balances and trades from this subaccount, however futuresboard also shows the trades from the parent account. Is there a way to filter those trades out?

pekac45 avatar Nov 22 '22 10:11 pekac45

Similar to #67 which I didn't get very far with as yet.

The endpoints are different from the ones currently used - binance api - so would require an overhaul or separated config to implement.

ecoppen avatar Nov 22 '22 11:11 ecoppen

@pekac45 : did you create a separate config folder for your sub account? When you run multiple futuresboards from the same folder, the main account and sub account trades are being put in the same database futures.db. That is why you see trades from the main and sub account together.

You could rename the config folder to config-mainaccount and create a new folder config-subaccount. Copy the config.json from the config-mainaccount folder into the new folder and edit the API keys accordingly.

To point futuresboard to a different folder, use the -c flag when starting futuresboard and the -p flag to change the port. Example: futuresboard -c config-mainacount --port 5000 futuresboard -c config-subacount --port 5001

Don't forget to remove the database in the config folder of your sub account first. When starting up futuresboard, a new empty database will be created.

Dorme avatar Dec 01 '22 14:12 Dorme

@Dorme I only use 1 config.json with subaccount keys. Main account api keys were never logged in into futuresboard. It's just that when you fetch trades with subaccount, it also answers the parent account trades as well.

pekac45 avatar Dec 17 '22 00:12 pekac45

Tested on bybit using v2 branch and shows different profit/loss records for each. Will test on Binance soon.

ecoppen avatar Mar 10 '23 21:03 ecoppen