Subaccount keys show main account balances
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?
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.
@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 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.
Tested on bybit using v2 branch and shows different profit/loss records for each. Will test on Binance soon.