委托下单
委托下单
(鉴权类型:SIGNED, 参见接口权限)
请求格式
POST https://api-cloud.bitmart.com/spot/v1/submit_order
请求限制
参见 速率限制详细
请求参数
字段 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | 是 | 交易对(如:BTC_USDT) |
side | string | 是 | 类型 |
buy =买入 |
|||
sell =卖出 |
|||
type | string | 是 | 订单类型 |
是 | limit =限价单 |
||
是 | market =市价单 |
限价单特殊参数 (type
=limit)
字段 | 类型 | 是否必填 | 描述 |
---|---|---|---|
size | string | 是 | 买入或卖出的数量 |
price | string | 是 | 价格 |
市价单特殊参数 (type
=market)
字段 | 类型 | 是否必填 | 描述 |
---|---|---|---|
size | string | 是 | 卖出数量,市价卖出时必填 size |
notional | string | 是 | 买入金额,市价买入时必填 notional |
请求示例
https://api-cloud.bitmart.com/spot/v1/submit_order
{
"symbol":"BTC_USDT",
"side":"buy",
"type":"limit",
"size":"10",
"price":"7000"
}
响应详情
字段 | 类型 | 描述 |
---|---|---|
order_id | long | 订单ID |
解释说明
只有返回 order_id 才表示成功。
返回数据格式示例
{
"code": 1000,
"trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
"message": "OK",
"data": {
"order_id":1223181
}
}