Primitives

order

Basic order placement algorithm that allows placing market or limit orders with specified quantity and action (buy/sell).

order (tick)

Basic order placement algorithm that allows placing market or limit orders with specified quantity and action (buy/sell).

Input parameters

PropTypeDefaultDescription
type*stringmarketThe order type (market, limit, stop, stopLimit)
action*stringThe order action (buy or sell)
size*numberThe number of shares/contracts to order
limitPricenumberThe limit price for limit orders (optional)
transmitbooleanfalseWhether to transmit the order immediately
leveragenumber1The leverage for the order crypto only
marginModestringcrossThe margin mode for the order crypto only
notestringThe note for the order

SQL example

TICK volume WITH minutes=3 > 50 THEN order SET size=100, price=51.25, transmit=true

On this page