Skip to content

Trading 获取当前委托

CoinTiger-API edited this page Dec 6, 2018 · 9 revisions

获取当前委托 (推荐使用V2版本)

{Trading_Macro}/api/order/new (GET) : 包括未成交和正在成交的委托

请求参数

参数 填写类型 说明
api_key 必填 平台分配的api key
offset 必填 起始行数,最小为1
limit 必填 获取的条数, 最大值:500
symbol 必填 如,tchbtc, ethbtc
time 必填 时间戳
sign 必填 签名

响应体

字段 实例 解释
code 0
msg "suc" code>0 失败
data {"offset":1,"limit":100,"count":1000,"list":[]} 其中list内容,详见下面内容
{
	"volume": {
		"amount": "1.000",
		"icon": "",
		"title": "委托数量"
	          },
	"side": "BUY",
	"price": {
		"amount": "0.04478883",
		"icon": "",
		"title": "委托价格"
	         },
	"created_at": 1513415184838,
	"id": 196,
	"label": {
		"title": "撤单",
		"click": 1
	         },
	"remain_volume": {
		"amount": "1.00000000",
		"icon": "",
		"title": "尚未成交"
	        },
	"side_msg": "买入"
}

Clone this wiki locally