Skip to main content

Fill Channel

Description

Trade Details channel

Request
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "fill",
"instId": "default"
}
]
}

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation, subscribe unsubscribe
argObjectYesSubscribed channels
> channelStringYesChannel name: fill
> instTypeStringYesProduct type
SPOT
> instIdStringNoProduct ID or default
Response
{
"event": "subscribe",
"arg": {
"instType": "SPOT",
"channel": "fill",
"instId": "default"
}
}

Response Parameters

ParameterTypeDescription
eventStringEvent
argObjectSubscribed channels
> channelStringChannel name: fill
> instTypeStringProduct type
SPOT
> instIdStringProduct ID/default
codeStringError code
msgStringError message
Push Data
{
"action":"snapshot",
"arg":{
"instType":"SPOT",
"channel":"fill",
"instId":"default"
},
"data":[
{
"orderId":"111",
"tradeId":"111",
"symbol":"BTCUSDT",
"orderType":"limit",
"side":"buy",
"priceAvg":"42740.41",
"size":"0.0006",
"amount":"25.644246",
"tradeScope":"marker",
"feeDetail":[
{
"feeCoin":"USDT",
"deduction":"no",
"totalDeductionFee":"0",
"totalFee":"0.01538655"
}
],
"cTime":"1703580202094",
"uTime":"1703580202094"
},
{
"orderId":"111",
"tradeId":"222",
"symbol":"BTCUSDT",
"orderType":"limit",
"side":"buy",
"priceAvg":"42741.46",
"size":"0.0006",
"amount":"25.644876",
"tradeScope":"marker",
"feeDetail":[
{
"feeCoin":"USDT",
"deduction":"no",
"totalDeductionFee":"0",
"totalFee":"0.01538693"
}
],
"cTime":"1703580202094",
"uTime":"1703580202094"
}
],
"ts":1703580202416
}

Push Parameters

ParameterTypeDescription
actionStringPush action
snapshot
argObjectChannels with successful subscription
> channelStringChannel name: fill
> instTypeStringProduct type
SPOT
> instIdStringProduct ID
dataList<Object>Subscription data
> orderIdStringOrder ID
> tradeIdStringTrade ID
> symbolStringSymbol
> orderTypeStringOrder type:
limit
market
> sideStringOrder direction
buy
sell
> priceAvgStringTotal average filled price
> sizeStringFilled size
> amountStringAccumulated filled size
> tradeScopeStringThe liquidity direction of the latest transaction
taker
maker
> feeDetailList<Object>Transaction fee of the order
  >> deductionStringdeduction
yes
no
  >> totalDeductionFeeStringFee of deduction
  >> totalFeeStringFee of all
  >> feeCoinStringCurrency of transaction fee
> cTimeStringCreate Time,milliseconds format of Unix timestamp, e.g.1597026383085
> uTimeStringUpdate Time,milliseconds format of Unix timestamp, e.g.1597026383085

How was your Reading Experience with us?