> For the complete documentation index, see [llms.txt](https://docs-swft.swft.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-swft.swft.pro/ju-he-jiao-yi-api-jie-kou/xia-dan.md).

# 下单

**1. 接口调用：**

&#x20;`https://{host}/marketApi/trade`

**2. 请求参数实例**

| 参数        | 是否必须 | 说明               |
| --------- | ---- | ---------------- |
| channelId | 是    | 渠道id             |
| timestamp | 是    | 毫秒时间戳（UTC+8）     |
| sign      | 是    | 签名               |
| tradePair | 是    | 交易对              |
| type      | 是    | 交易类型，取值：buy/sell |
| price     | 是    | 下单价格             |
| amount    | 是    | 下单数量             |

3.请求参数示例

```
 {
     "channelId":"swft-channel",
     "sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
     "timestamp":"1557653925555",
     "tradePair":"BTC/USDT",
     "type":"buy",
     "price":"1",
     "amount":"1",
 }
```

4.返回结果示例

```
 {
    "data":"",
    "resCode":"800",
    "resMsg":"成功"
}
```
