Skip to content

获取订单信息

BitForex-API edited this page Aug 9, 2018 · 10 revisions

接口地址:https://api.bitforex.com/api/v1/trade/orderInfo

请求格式:POST

参数

参数名 类型 是否必填 默认值 描述
symbol String - 交易对类型,如coin-usdt-btc、coin-usdt-eth等
orderId long - 订单ID
accessKey String - API 访问密钥
nonce long - 请求时间戳,毫秒
signData String - 签名信息

示例

# 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
	}
}

返回值说明

参数名 类型 描述
symbol String 交易对类型,如coin-usdt-btc、coin-usdt-eth等
avgPrice double 成交均价
createTime long 订单创建时间
lastTime long 最后更新时间
dealAmount double 成交数量
orderAmount double 下单数量
orderId long 订单ID
orderPrice double 下单价
orderState int 订单状态:0未成交、1部分成交、2全部成交、3部分成交已撤销、4全部撤销
tradeFee double 手续费
tradeType double 交易方式 :1买,2卖