Cancel Orders
Cancel pending limit, market open, and market close orders with the Ostium Builder SDK.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Cancel pending limit, market open, and market close orders with the Ostium Builder SDK.
import { CancelOrderType } from '@ostium/builder-sdk';
await client.cancelOrder({
type: CancelOrderType.Limit,
pairId: order.pairId,
idx: order.idx,
});
await client.cancelOrder({
type: CancelOrderType.PendingOpen,
orderId: 123,
});
await client.cancelOrder({
type: CancelOrderType.PendingClose,
orderId: 123,
retry: true,
});