Skip to content

Interface: AdvTradeGlobalRequestOtocoConfig ​

Properties ​

PropertyTypeDescription
amount?numberRequired. 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?stringUser defined label for the order (maximum 64 characters).
post_only?booleanMaker-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?numberSecondary order price in the instrument’s price units. Required for limit and stop-limit orders.
reduce_only?booleanIf true, the order is considered reduce-only which is intended to only reduce a current position.
reject_post_only?booleanIf 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?AdvTradeGlobalRequestTriggerDefines the trigger type. Required for stop-loss, take-profit, and trailing stop orders.
trigger_offset?numberThe maximum deviation from the price peak beyond which the order will be triggered. Used for trailing stop orders.
trigger_price?numberTrigger 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"

Built by Siebly. Open source SDKs for exchange APIs.