Link.cancelOffer
Link.cancelOffer
import { Link, XpansionChainClient, XpansionChainOrderStatus} from ‘@imtbl/imx-sdk’;
// Pass orderAndTradeAPI version parameter as 'v3' to target the latest version of order & trade API.
const link = new Link('https://link.sandbox.x.XpansionChain.com', null, 'v3')
// cancel an offer by passing the orderId of the offer to cancel
await link.cancelOffer({
orderId: '940'
});{
orderId: string; // id of the order to cancel
}

Errors
Last updated