Market order definition for WebSocket trading.
Represents a complete market order with instrument, size, direction, and optional stop loss/take profit levels.
const buyOrder: INewMarketOrder = { instrumentid: 12345, size: { volume: { value: 100, scale: 0 } }, side: Xs6Side.BUY, stoploss: { price: { value: 250, scale: 2 } }, // $2.50 takeprofit: { price: { value: 280, scale: 2 } } // $2.80}; Copy
const buyOrder: INewMarketOrder = { instrumentid: 12345, size: { volume: { value: 100, scale: 0 } }, side: Xs6Side.BUY, stoploss: { price: { value: 250, scale: 2 } }, // $2.50 takeprofit: { price: { value: 280, scale: 2 } } // $2.80};
Instrument ID from symbol search
Trade side (buy/sell)
Trade size (volume or amount)
Optional
Optional stop loss configuration
Optional take profit configuration
Market order definition for WebSocket trading.
Represents a complete market order with instrument, size, direction, and optional stop loss/take profit levels.
Example