Skip to main content

Get Transactions

List balance-affecting transactions on your futures account: trading fees, funding payments, P&L, add-margin, liquidation fees.

HTTP

MethodGET
Endpoint/trade/api/v2/futures/transactions
Rate limit20 requests per 60 seconds

Request Parameters

ParameterTypeMandatoryDescription
exchangestringYesEXCHANGE_2.
symbolstringNoFilter to a single symbol (e.g. btcusdt).
typestringNoFilter by type: commission, P&L, funding fee, liquidation fee.
limitintegerNoMaximum number of records to return.
from_timeintegerNoStart of the time range (Unix ms).
to_timeintegerNoEnd of the time range (Unix ms).

Example

import requests

headers, path = sign_request("GET", "/trade/api/v2/futures/transactions", params={
"exchange": "EXCHANGE_2",
"symbol": "btcusdt",
"type": "commission",
"limit": 20,
})
response = requests.get(BASE_URL + path, headers=headers)
print(response.json())

Response

{
"data": [
{
"exchange": "EXCHANGE_2",
"transaction_id": "678708aa-507b-4881-8b3f-1a50b63dd0c4-0193677c-0544-77d1-b3a6-2130d671e54c",
"symbol": "ADAUSDT",
"type": "FUNDING_FEE",
"quote_asset": "USDT",
"amount": "0.00099946"
},
{
"exchange": "EXCHANGE_2",
"transaction_id": "8b81b763-df36-4c93-9bc8-9a93d65b8546",
"symbol": "DOGEUSDT",
"type": "ADD_MARGIN",
"quote_asset": "USDT",
"amount": "16"
}
]
}

Response Parameters

data is an array of transactions:

FieldTypeDescription
exchangestringExchange identifier.
transaction_idstringUnique transaction ID.
symbolstringSymbol the transaction relates to.
typestringOne of FUNDING_FEE, COMMISSION, P&L, LIQUIDATION_FEE, ADD_MARGIN.
quote_assetstringAsset of the amount field, currently always USDT.
amountstringSigned amount. Positive for credits, negative for debits.