Create Order
POST: /order/create
Content-Type: application/json
Parameters
Parameter | Type | mandatory | Default | Description | Ranges |
---|---|---|---|---|---|
address | string | true | Token Contract Address | ||
chain | string | true | Chain Name | ||
direction | number | true | Buy Or Sell | 1:Buy 2:Sell | |
orderType | number | true | Order Type | 1:Market Order 2:Limit Order | |
symbol | string | true | Token Name | ||
orderAmount | number | false | Order Amount:Required when buying | ||
tokenQuantity | string | false | Token Amount:Required when selling |
- Request
- Response
{
"address": "string",
"chain": "string",
"direction": 1,
"orderAmount": "string",
"orderType": 1,
"symbol": "string",
"tokenQuantity": "string"
}
{
"code": 0,
"data": null,
"msg": "string",
"time": 0
}