Skip to main content

Get Futures Account Fees

API Description​

This interface allows querying the handling fee rates for a user's futures account, including both maker and taker fees.

Note: Futures Account Fees data is only available via RESTful API.

Precautions​

None

Authentication​

This is a private interface and requires authentication. For details on using the RESTful API, refer to Common > Authentication & Code Snippet > Futures > RESTful Private Interface.

Request Method​

GET

Endpoint​

/v1/perpum/account/fees

Frequency Limit​

The frequency limit for this interface is 2 requests/2s per user ID and IP. In addition to this per-interface limit, a global rate limit is also enforced.

For detailed information on Global rate limits and API Rate Limiting Policy, please refer to the "Frequency Limit" section at click here

Request Parameters​

This interface does not require any request paramaters.

Response Parameters​

ParameterTypeDescription
makerFeeBigDecimalMaker fees
takerFeeBigDecimalTaker fee
userIdLongFutures contract user ID

Request Example​

The following Python codes shows how to get a user's futures account handling fee.

Note: For a complete code example, please refer to Common > Authentication & Code Snippet > Futures > RESTful Private Interface.

params = { }
api_url = "/v1/perpum/account/fees"
method = "GET"
response_code, response_data = FuturesRestfulPrivate(params, api_url, method, sec_key, api_key) # function FuturesRestfulPrivate() is defined in section (Common > Authentication & Code Snippet > Futures > RESTful Private Interface)

Note: For a complete Java code example, please refer to Common > Authentication & Code Snippet > Futures > RESTful Private Interface.

Response Example​

The following is an example response returned by the above Python request:

{'code': 0,
'data': {'makerFee': '0.0001', 'takerFee': '0.0006', 'userId': 1162061},
'msg': ''}