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.

import { CancelOrderType } from '@ostium/builder-sdk';

Cancel a limit order

await client.cancelOrder({
  type: CancelOrderType.Limit,
  pairId: order.pairId,
  idx: order.idx,
});

Cancel a timed-out market open

await client.cancelOrder({
  type: CancelOrderType.PendingOpen,
  orderId: 123,
});

Cancel a timed-out market close

await client.cancelOrder({
  type: CancelOrderType.PendingClose,
  orderId: 123,
  retry: true,
});