Skip to main content

Instrument Trade Stats

Instrument Trade Stats

Query API user trade statistics aggregated by instrument

Request frequency limit: 1/1s

Request URL

GET /deepcoin/apiUserTradeStats/instrument

Request Parameters

Field NameRequiredTypeDescription
appidtruestringAppID, used to identify third-party platforms (e.g., FMZ, CCXT, Hummingbot)
uidfalseintegerUser ID, optional. If not provided, queries all users under this AppID
startTimetrueintegerStart time, Unix timestamp (seconds)
endTimetrueintegerEnd time, Unix timestamp (seconds)
instrumentIdstruearrayList of instrument IDs, required. Supports querying multiple instruments

Request Example

{
"appid": "FMZ",
"uid": 12345,
"startTime": 1700000000,
"endTime": 1700086400,
"instrumentIds": ["BTCUSDT", "ETHUSDT"]
}

Response Parameters

Field NameTypeDescription
instrumentIdstringInstrument ID
tradeAmountnumberTrade volume (USDT)
netFeenumberNet fee (USDT)
commissionFeenumberCommission amount (USDT)

Response Example

{
"code": "0",
"msg": "",
"data": [
{
"instrumentId": "BTCUSDT",
"tradeAmount": 500000.00,
"netFee": 250.00,
"commissionFee": 50.00
},
{
"instrumentId": "ETHUSDT",
"tradeAmount": 300000.00,
"netFee": 150.00,
"commissionFee": 30.00
}
]
}

Notes

  • This API requires special permission. Please contact support to enable access.
  • Authentication is required using API Key in the request header.
  • The date range (endTime - startTime) should not exceed 90 days.
  • If uid is not provided, the API returns aggregated data for all users under the specified appid.
  • instrumentIds is required and must contain at least one instrument ID.
  • Data is aggregated by instrument across the entire time range.