Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Fully or partially close an Ostium position with the Builder SDK.
closeTrade()
pairId
idx
getOpenPositions()
await client.closeTrade({ pairId, idx, price: '66000', closePercent: 100, });
await client.closeTrade({ pairId, idx, price: '66000', closePercent: 50, });