Incorrect asset and position profit in accountSnapshot

I use accountSnapshot with type : FUTURE, limit: 30
and I found that the “marginBalance” in asset were different from the binance web page’s wallet (in 00:00), and also found that the “unRealizedProfit” in position quite different(in riskPosition api and binance website I got positive profit, but snapshot got negative).

picture below(format in ADA snapshot array) found that the unRealizedProfit is same, but mark price is changed, quite weird, and also the profit should be positive(I’m doing Long and price goes up)

Thanks.

Hi @11185, we’ll check if we can reproduce the problem and get back to you later.

Hi @11185, in this post 3 cases are mentioned about /sapi/v1/accountSnapshot?type=FUTURES&limit=20’s response:

  1. “marginBalance” is different from what’s in the UI (at 00:00)
  2. “unRealizedProfit” is negative while UI and /fapi/v2/positionRisk is positive
  3. (your screenshot) different “markPrice”s gives same “unRealizedProfit” for 4 consecutive days.

About the first two points, it’s hard to verify since we don’t have access to your account data and can be related with different update/checking time.

About the 3rd point, I’ve checked on my side and can’t reproduce the issue:

Tuesday, 17 August 2021 23:59:59 
                    {
                        "symbol": "BNBUSDT",
                        "entryPrice": "420.58",
                        "markPrice": "401.94",
                        "positionAmt": "0.02",
                        "unRealizedProfit": "-0.37294376"
                    },
Wednesday, 18 August 2021 23:59:59
                    {
                        "symbol": "BNBUSDT",
                        "entryPrice": "420.58",
                        "markPrice": "396.32",
                        "positionAmt": "0.02",
                        "unRealizedProfit": "-0.4854"
                    }

Can you use Postman to query and share the raw response with us if it’s still occurring, please?

Hi @aisling, thanks for helping it.

I reproduce it with binance official postman env “Binance Spot API”

{{url}}/sapi/v1/accountSnapshot?type=FUTURES&limit=20&timestamp={{timestamp}}&signature={{signature}}

check ADAUSDT out in position. that’s where I don’t understand. thanks

I put my response JSON in github gist, please check.

Thanks!

Hi @11185, thanks for providing more details!
It seems this is an account specific issue and unfortunately we don’t have permission to research account related data. :frowning:
If this stills occurs, can you reach out to the Customer Support, please? It’s possible they’ll be able to detect something with your Futures account’s balance calculation or forward back your situation with your account id for further internal check. Sorry for not being able to help more here.