Skip to main content

Fill Channel

Description

Trade details channel

Data will be pushed when order filled.

Request Example
{
"op": "subscribe",
"args": [
{
"instType": "USDT-FUTURES",
"channel": "fill",
"instId": "default"
}
]
}

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation, subscribe unsubscribe
argsList<Object>YesList of channels to request subscription
> channelStringYesChannel name: fill
> instTypeStringYesProduct type
USDT-FUTURES USDT professional futures
COIN-FUTURES Mixed futures
USDC-FUTURES USDC professional futures
SUSDT-FUTURES USDT professional futures demo
SCOIN-FUTURES Mixed futures demo
SUSDC-FUTURES USDC professional futures demo
> instIdStringNoProduct ID or default,
delivery contract reference:https://www.cointr.com/api-doc/common/release-note#optimization-of-delivery-futures
Response Example
{
"event": "subscribe",
"arg": {
"instType": "USDT-FUTURES",
"channel": "fill",
"instId": "default"
}
}

Response Parameters

ParameterTypeDescription
eventStringEvent
argObjectSubscribed channels
> channelStringChannel name: fill
> instTypeStringProduct type
USDT-FUTURES USDT professional futures
COIN-FUTURES Mixed futures
USDC-FUTURES USDC professional futures
SUSDT-FUTURES USDT professional futures demo
SCOIN-FUTURES Mixed futures demo
SUSDC-FUTURES USDC professional futures demo
> instIdStringProduct ID or default
delivery contract reference:https://www.cointr.com/api-doc/common/release-note#optimization-of-delivery-futures
codeStringError code
msgStringError message
Push Data
{
"action":"snapshot",
"arg":{
"instType":"USDT-FUTURES",
"channel":"fill",
"instId":"default"
},
"data":[
{
"orderId":"111",
"tradeId":"222",
"symbol":"BTCUSDT",
"side":"buy",
"orderType":"market",
"posMode":"one_way_mode",
"price":"51000.5",
"baseVolume":"0.01",
"quoteVolume":"510.005",
"profit":"0",
"tradeSide":"open",
"tradeScope":"taker",
"feeDetail":[
{
"feeCoin":"USDT",
"deduction":"no",
"totalDeductionFee":"0",
"totalFee":"-0.183717"
}
],
"cTime":"1703577336606",
"uTime":"1703577336606"
}
],
"ts":1703577336700
}

推送数据参数

返回字段参数类型字段说明
actionStringsnapshot
argObjectChannels with successful subscription
> channelStringChannel name: fill
> instTypeStringProduct type
USDT-FUTURES USDT professional futures
COIN-FUTURES Mixed futures
USDC-FUTURES USDC professional futures
SUSDT-FUTURES USDT professional futures demo
SCOIN-FUTURES Mixed futures demo
SUSDC-FUTURES USDC professional futures demo
> instIdStringProduct ID or default
delivery contract reference:https://www.cointr.com/api-doc/common/release-note#optimization-of-delivery-futures
dataList<Object>Subscription data
> orderIdStringOrder ID
> tradeIdStringTrade ID
> symbolStringSymbol
> sideStringOrder direction
buy
sell
> orderTypeStringOrder type
limit limit order
market market order
> posModeStringHold Mode
one_way_mode
hedge_mode
> priceStringOrder price
> baseVolumeStringNumber of base coin
> quoteVolumeStringNumber of denomination coin
> profitStringRealized PnL
> tradeSideStringTrade Side trading direction
open
close
buy_single
sell_single
reduce_close_long
reduce_close_short
offset_close_long
offset_close_short
burst_close_long
burst_close_short
delivery_close_long
delivery_close_short
> 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