Hello I use /sapi/v1/rebate/taxQuery
to fetch referral commission payouts. The problem is the amounts are in BNB while the actual payout is in USDC (I can see it in the all-transaction export via Binance UI) because my European residency. Is it possible to fetch the correct USDC amounts from API?
Hi @uiii,
You’re right, when you call /sapi/v1/rebate/taxQuery
endpoint, the asset returned is typically in BNB because the API reflects the original comission asset, not necessarily the final payout asset.
Currently, there is no direct API that fetches the converted (USDC
) payout for referral commissions.
The Binance website shows the USDC
version because of internal conversion rules based on your residency or payout settings, but that conversion is not exposed via public API at this time.
As a workaround you would need to:
- Fetch the BNB amount via
/sapi/v1/rebate/taxQuery
- Then manually get the historical
BNB
/USDC
price for the payout date - And calculate the approximate
USDC
value yourself.
You can get historical prices using endpoints like /api/v3/klines
with the symbol=BNBUSDC
.
Let us know if you need further clarification on that!