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.

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

Response schema

interface Response {
  txHash: `0x${string}`;
  smartAccountAddress?: `0x${string}`;
}