Hello,
I am keen to fetch my transaction history and as of now, my strategy is "brute-forcing" all the pairs (I brute force all pairs with GET api/v2/myTrade), but this is not efficient! could take even up to 24 hours for one user!
So I was wondering if I can use the TAX API, but I don't see any documentation for that.... the only documentation is how to create the API as showed here:
https://www.binance.com/en/support/faq/538e05e2fd394c489b4cf89e92c55f70
any idea how a tax app will generate efficiently the transaction history?
currently I do as follows:
---- get all pairs in Binance
---- for each pair run GET api/v2/myTrade (but this has a limitation that the time window can only be 24 hour, hence I need to recall the same API for each day in the past
example:
- pairs: 1264
- number of days that binance is open (14/07/2021 --> today): 1559
for each pair, I need to "repeat/loop" GET api/v2/myTrade" 1559 times (one for each day that binace is open)
--> to investigate and find all past transaction of a user I need to call same endpoint --> 1264 * 1559 = 1,970,576
--> each call weight: 10 points
--> total points for a user: 19,705,760
--> current weight limitation: 1,200 per minute
--> # minutes for cover the overall scope: 19,705,760 / 1,200 = 16,422 minutes ~ 11.5 days!
even if I add 20 IPs (for example) my performances woudl be as follows:
--> # days for each user: 11.5 days / 20 ~ 14 hours per users
if I have 1000 users:
---> 14 hours * 1000 users = 14,000 hours --> 584 days ---> this is the time to process 1000 users with 20 IPs
it does not make any sense!
any idea?
Thank you
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments