Skip to main content

Query Cross Isolated Margin Capital Flow (USER_DATA)

API Description

Query Cross Isolated Margin Capital Flow

HTTP Request

GET /sapi/v1/margin/capital-flow

Request Weight

100(IP)

Request Parameters

NameTypeMandatoryDescription
assetSTRINGNO
symbolSTRINGNO查询逐仓数据时必填
typeSTRINGNO
startTimeLONGNO只支持查询最近90天的数据
endTimeLONGNO
fromIdLONGNO如设置fromId, 将返回id > fromId的数据。否则将返回最新数据
limitLONGNO每次返回的数据条数限制。默认 500; 最大 1000.
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES
  • Only supports querying the data of the last 90 days
  • If fromId is set, the data with id > fromId will be returned. Otherwise the latest data will be returned
  • To query isolated data, Symbol needs to be entered.
  • Supported types:
    • TRANSFER("Transfer")
    • BORROW("Borrow")
    • REPAY("Repay")
    • BUY_INCOME("Buy-Trading Income")
    • BUY_EXPENSE("Buy-Trading Expense")
    • SELL_INCOME("Sell-Trading Income")
    • SELL_EXPENSE("Sell-Trading Expense")
    • TRADING_COMMISSION("Trading Commission")
    • BUY_LIQUIDATION("Buy by Liquidation")
    • SELL_LIQUIDATION("Sell by Liquidation")
    • REPAY_LIQUIDATION("Repay by Liquidation")
    • OTHER_LIQUIDATION("Other Liquidation")
    • LIQUIDATION_FEE("Liquidation Fee")
    • SMALL_BALANCE_CONVERT("Small Balance Convert")
    • COMMISSION_RETURN("Commission Return")
    • SMALL_CONVERT("Small Convert")

Response Example

[
{
"id": 123456,
"tranId": 123123,
"timestamp": 1691116657000,
"asset": "USDT",
"symbol": "BTCUSDT",
"type": "BORROW",
"amount": "101"
},
{
"id": 123457,
"tranId": 123124,
"timestamp": 1691116658000,
"asset": "BTC",
"symbol": "BTCUSDT",
"type": "REPAY",
"amount": "10"
}
]