OrderType Enum representing the type of order
console.log(OrderType.LIMIT); // 'limit'console.log(OrderType.MARKET); // 'market'console.log(OrderType.STOP_LIMIT); // 'stop_limit'console.log(OrderType.OCO); // 'oco' Copy
console.log(OrderType.LIMIT); // 'limit'console.log(OrderType.MARKET); // 'market'console.log(OrderType.STOP_LIMIT); // 'stop_limit'console.log(OrderType.OCO); // 'oco'
Limit order
Market order
One cancels the other order
Stop limit order
OrderType Enum representing the type of order
Example