OrderType.Limit or OrderType.Stop.
Important behavior
priceis the trigger price- slippage is ignored for non-market orders
- use
getOpenOrders()to inspect active limit orders later
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Open non-market trigger orders on Ostium with the Builder SDK.
OrderType.Limit or OrderType.Stop.
await client.openTrade({
pairId: 0,
buy: true,
price: '64000',
collateral: '100',
leverage: '5',
type: OrderType.Limit,
});
price is the trigger pricegetOpenOrders() to inspect active limit orders later