binance-us / binance-us-api-docs

Official Documentation for the Binance US APIs and Streams
411 stars 168 forks source link

Trade Fee returns no data #17

Open MAXxATTAXx opened 3 years ago

MAXxATTAXx commented 3 years ago

When doing the following request: GET /wapi/v3/tradeFee.html (HMAC SHA256) The following response is returned:

{
  "tradeFee": [],
  "success": true
}

Is this expected behaviour? Why would no tradeFee be returned? Is there a user permission missing to allow this endpoint?

Thanks

hcfmadren4 commented 3 years ago

how do I fix this?

ePascalC commented 3 years ago

@MAXxATTAXx tradeFee is an array in an array, did you go deeper?

Array
(
    [success] => 1
    [tradeFee] => Array
        (
            [0] => Array
                (
                    [maker] => 0.001
                    [symbol] => PONDUSDT
                    [taker] => 0.001
                )
        )
)
PengRusty commented 2 years ago

We have already fixed the issue and provide a new version of trade fee API. More details can be found in https://docs.binance.us/#get-trade-fee