跳到主要内容

创建订单

创建买入或卖出订单

POST: /order/create

Content-Type: application/json

参数

参数数据类型是否必须默认值描述取值范围
addressstring代币合约地址
chainstring链名称
directionint方向1:买入 2:卖出
orderTypeint订单类型1:市价 2:限价
symbolstring代币
orderAmountstring订单金额(买入时必填)
tokenQuantitystringToken数量(卖出时必填)
{
"address": "string",
"chain": "string",
"direction": 1,
"orderAmount": "string",
"orderType": 1,
"symbol": "string",
"tokenQuantity": "string"
}