I would like to automatically calculate my profits (spot trading), like once every month (or maybe once a week if neccessary). Therefore I implemented a “get my trades” REST API call for more than 10 exchanges, all working fine.
Now I’m at binance and I found this endpoint https://binance-docs.github.io/apidocs/spot/en/#account-trade-list-user_data
But… 1) It costs 5 weight and the symbol is required. and 2) It can only return a max timeframe of 24 hours ?!. This makes it very useless sadly =( No other exchange has this strange limitation.
If I wanted to get my trades for all pairs traded at binance (lets assume they are round about ~800 pairs) for the past 1 month, I would need a weight of 120.000 (if I calculated correctly), so I would need 100 minutes of doing API calls (without being able to continue trading via API in the meantime).
Of course this is only true if a single call per day for each pair is sufficent, this is really sick.
So, why is there this strange limitation that only a timeframe of 24 hours is possible? No other exchange in the world needs this limitation. So is it possible to lift this limitation? It would be even better of course, if the pair would not be required, but I guess the infrastructure from binance is not good enough for this, because of so many pairs?
Of course I know I can instead download csv files. But since I’m trading at so many exchanges, I really hate downloading csv files manually. I would like to automate this process.
Websocket is also no solution, because it means I need a 100% uptime to catch all trades, which is very unlikely.