Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 3.33 KB

File metadata and controls

22 lines (18 loc) · 3.33 KB

CreatePortfolioSpotOrder

Spot order details

Properties

Name Type Description Notes
text str User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) Besides user defined information, reserved contents are listed below, denoting how the order is created: - 101: from android - 102: from IOS - 103: from IPAD - 104: from webapp - 3: from web - 2: from apiv2 - apiv4: from apiv4 [optional]
amend_text str The custom data that the user remarked when amending the order [optional] [readonly]
currency_pair str Currency pair
type str Order Type - limit : Limit Order - market : Market Order [optional] [default to 'limit']
side str Order side
amount str When `type` is limit, it refers to base currency. For instance, `BTC_USDT` means `BTC` When `type` is `market`, it refers to different currency according to `side` - `side` : `buy` means quote currency, `BTC_USDT` means `USDT` - `side` : `sell` means base currency,`BTC_USDT` means `BTC`
price str Price can't be empty when `type`= `limit` [optional]
time_in_force str Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none Only `ioc` and `fok` are supported when `type`=`market` [optional] [default to 'gtc']
iceberg str Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported. [optional]
auto_borrow bool When engaging in margin trading, if the account balance is insufficient, the system will automatically borrow the remaining amount to cover the deficit. [optional]
auto_repay bool Enable or disable automatic repayment for automatic borrow loan. Default is disabled. Note that: `auto_borrow` and `auto_repay` cannot be both set to true in one order. [optional]
stp_act str Self-Trading Prevention Action. Users can use this field to set self-trade prevetion strategies 1. After users join the `STP Group`, he can pass `stp_act` to limit the user's self-trade prevetion strategy. If `stp_act` is not passed, the default is `cn` strategy。 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter。 3. If the user did not use 'stp_act' when placing the order, 'stp_act' will return '-' - cn: Cancel newest, Cancel new orders and keep old ones - co: Cancel oldest, Cancel old orders and keep new ones - cb: Cancel both, Both old and new orders will be cancelled [optional]

[Back to Model list] [Back to API list] [Back to README]