Interface: AdvTradeGlobalRequestOtocoConfig
Properties
| Property | Type | Description |
|---|---|---|
amount? | number | Required. The secondary order size. Use the base coin for spot, options, and linear instruments, including linear perpetuals. Use USD for inverse futures and inverse perpetuals. |
direction? | "buy" | "sell" | Required. Direction of the secondary order. |
label? | string | User defined label for the order (maximum 64 characters). |
post_only? | boolean | Maker-only secondary order. A price that would execute immediately is adjusted unless reject_post_only is true, in which case the order is rejected. For spot orders routed to Coinbase Exchange, use reject_post_only: true; prices are not adjusted. |
price? | number | Secondary order price in the instrument’s price units. Required for limit and stop-limit orders. |
reduce_only? | boolean | If true, the order is considered reduce-only which is intended to only reduce a current position. |
reject_post_only? | boolean | If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected. |
time_in_force? | | "good_til_cancelled" | "good_til_day" | "fill_or_kill" | "immediate_or_cancel" | Specifies how long the order remains in effect. Default "good_til_cancelled". |
trigger? | AdvTradeGlobalRequestTrigger | Defines the trigger type. Required for stop-loss, take-profit, and trailing stop orders. |
trigger_offset? | number | The maximum deviation from the price peak beyond which the order will be triggered. Used for trailing stop orders. |
trigger_price? | number | Trigger price. Required for trigger orders (stop-loss or take-profit orders). |
type? | | "limit" | "trailing_stop" | "stop_limit" | "stop_market" | "take_limit" | "take_market" | "market" | "market_limit" | The order type, default: "limit" |