Skip to content

Order information

huyaohua edited this page Jan 19, 2020 · 1 revision

Interface address:https://api.bitforex.com/api/v1/trade/orderInfo

Request method:POST

Parameters

parameter nameTypesIs requiredDefaultsDescription
symbolStringYes-Transaction pairs such as coin-usd-btc, coin-usd-eth, etc.
orderIdlongYes-Order ID
accessKeyStringYes-API access key
noncelongYes-Request timestamp, milliseconds
signDataStringYes-Signing information

Example

# request
POST https://api.bitforex.com/api/v1/trade/orderInfo
# Response
{
"success": true,
"data": {
"symbol":"coin-usd-etc",
"avgPrice": 0,
"createTime": 1516691438000,
"lastTime": 1516691438000,
"dealAmount": 0,
"orderAmount": 2,
"orderId": 1,
"orderPrice": 103,
"orderState": 4,
"tradeFee": 0,
"tradeType": 2
}
}

Return value description

Parameter NameTypeDescription
symbolStringTransaction pairs such as coin-usd-btc, coin-usd-eth, etc.
avgPricedoubleAverage transaction price
createTimelongOrder creation time
lastTimelonglast update time
dealAmountdoubleThe number of transactions
orderAmountdoubleOrder quantity
orderIdlongOrder ID
orderPricedoubleLower unit price
orderStateintOrder Status: 0 Not Closed, 1 Part Transaction, 2 All Transaction, 3 Partial Deal Canceled, 4 All Revoked
tradeFeedoubleFees
tradeTypedoubleTrading methods: 1 buy, 2 sell

Clone this wiki locally