Skip to main content

Get Fills

  • GET /capi/v2/order/fills

Weight(IP): 5, Weight(UID): 5

Request parameters

ParameterTypeRequired?Description
symbolStringNoTrading pair name
orderIdLongNoOrder ID
startTimeLongNoStart timestamp
Unix millisecond timestamp
endTimeLongNoEnd timestamp
Unix millisecond timestamp
limitLongNoNumber of queries: Maximum: 100, default: 100

Request example

curl "https://api-contract.weex.com/capi/v2/order/fills?symbol=cmt_bchusdt&orderId=596471064624628269" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json"

Response parameters

ParameterTypeDescription
listListTransaction details
> tradeIdIntegerFilled order ID
> orderIdIntegerAssociated order ID
> symbolStringTrading pair name
> marginModeStringMargin mode
> separatedModeStringSeparated mode
> positionSideStringPosition direction
> orderSideStringOrder direction
> fillSizeStringActual filled quantity
> fillValueStringActual filled value
> fillFeeStringActual trading fee
> liquidateFeeStringClosing fee
> realizePnlStringActual realized PnL
> directionStringActual execution direction
> liquidateTypeStringLiquidation order type
> legacyOrdeDirectionStringCompatible with legacy order direction types
> createdTimeIntegerTimestamp
Unix millisecond timestamp
nextFlagBooleanWhether more pages exist
totalsIntegerTotal entries

Response example

{
"list": [
{
"tradeId": 0,
"orderId": 0,
"symbol": "cmt_btcusdt",
"marginMode": "SHARED",
"separatedMode": "SEPARATED",
"positionSide": "LONG",
"orderSide": "BUY",
"fillSize": "67",
"fillValue": "12",
"fillFee": "67",
"liquidateFee": "MAKER",
"realizePnl": "83",
"direction": "OPEN_LONG",
"liquidateType": "FORCE_LIQUIDATE",
"legacyOrdeDirection": "OPEN_LONG",
"createdTime": 1716712170527
}
],
"nextFlag": false,
"totals": 0
}