| Name | Type | Description | Notes |
|---|---|---|---|
| type | string | Order type,default to `limit` - limit : Limit Order - market : Market Order | [optional] [default to 'limit'] |
| side | string | Order side - buy: buy side - sell: sell side | [default to undefined] |
| price | string | Order price | [default to undefined] |
| amount | string | Trading quantity When `type` is `limit`, it refers to the base currency (the currency being traded), such as `BTC` in `BTC_USDT` When `type` is `market`, it refers to different currencies based on the side: - `side`: `buy` refers to quote currency, `BTC_USDT` means `USDT` - `side`: `sell` refers to base currency, `BTC_USDT` means `BTC` | [default to undefined] |
| account | string | Trading account type. Unified account must be set to `unified` - normal: spot trading - margin: margin trading - unified: unified account | [default to 'normal'] |
| timeInForce | string | time_in_force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only | [optional] [default to 'gtc'] |
| autoBorrow | boolean | Whether to borrow coins automatically | [optional] [default to undefined] |
| autoRepay | boolean | Whether to repay the loan automatically | [optional] [default to undefined] |
| text | string | The source of the order, including: - web: Web - api: API call - app: Mobile app | [optional] [default to undefined] |
-
Limit(value:'limit') -
Market(value:'market')
-
Buy(value:'buy') -
Sell(value:'sell')
-
Normal(value:'normal') -
Margin(value:'margin') -
Unified(value:'unified')
-
Gtc(value:'gtc') -
Ioc(value:'ioc')