创建订单
创建买入或卖出订单
POST: /order/create
Content-Type: application/json
参数
参数 | 数据类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
---|---|---|---|---|---|
address | string | 是 | 代币合约地址 | ||
chain | string | 是 | 链名称 | ||
direction | int | 是 | 方向 | 1:买入 2:卖出 | |
orderType | int | 是 | 订单类型 | 1:市价 2:限价 | |
symbol | string | 是 | 代币 | ||
orderAmount | string | 否 | 订单金额(买入时必填) | ||
tokenQuantity | string | 否 | Token数量(卖出时必填) |
- Request
- Response
{
"address": "string",
"chain": "string",
"direction": 1,
"orderAmount": "string",
"orderType": 1,
"symbol": "string",
"tokenQuantity": "string"
}
{
"code": 0,
"data": null,
"msg": "string",
"time": 0
}