API COIN-M Deliveries

Hello, I’m trying to use the api to have all the data from COIN-M (an integration to a dashboard) but when I sum the quantities it was different from what I have in binance (not for all tokens) but someones are also negative (comparing to binance).

Basically I’m using the rout /dapi/v1/userTrades to iterate to all symbols (symbols available on https://dapi.binance.com/dapi/v1/exchangeInfo symbols), then I save the realized PNL and the fee.

Then I use the route /dapi/v1/incomeHistory to get to the following incomeType: COMMISSION, FUNDING_FEE, WELCOME_BONUS, TRANSFER, REFERRAL_KICKBACK and INSURANCE_CLEAR

What I’m doing wrong? Has anyone managed to deal with this?

João de Deus

Even if I use only the /dapi/v1/incomeHistory to all incomeTypes and if I sum the income to each asset the result is also wrong for some tokens (comparing with binance app).

I’m missing something? Please help :frowning:

João de Deus

I also try to use the /dapi/v1/income/asyn (Get Download Id For Futures Transaction History (USER_DATA)) and iterate over the file and for my surprise I have a different result comparing to /dapi/v1/incomeHistory (it’s also wrong). How it’s that possible?

João de Deus