Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ostium.com/llms.txt

Use this file to discover all available pages before exploring further.

Use OrderType.Limit or OrderType.Stop.
await client.openTrade({
  pairId: 0,
  buy: true,
  price: '64000',
  collateral: '100',
  leverage: '5',
  type: OrderType.Limit,
});

Important behavior

  • price is the trigger price
  • slippage is ignored for non-market orders
  • use getOpenOrders() to inspect active limit orders later