You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to use cancel functionality with binary-live-api?
asyncfunctionmain(){constapi=newLiveApi({ ...options});try{constproposal=awaitapi.subscribeToPriceForContractProposal({ ...proposalObj});constbuy=awaitapi.buyContract(proposal.proposal.id,proposal.proposal.spot);awaitapi.cancel(buy.proposal_open_contract.contract_id);}catch(error){console.log(error);// TypeError: api.cancel is not a function}}main();
How to use cancel functionality with
binary-live-api?