Close Trade

Specific values for close trade:

tradeId: toBn(tradeId),
isLong: type === "long",
referral: "0x0000000000000000000000000000000000000000",
tradeFeeBound: toBn("0"),
percentToClose: toWei("1"),

Same as open trade you would build the full object and sign it with your wallet.

The response back from our system is the userInteractionNumber that was created for the object. Use this id to track the status of the transaction.

id: '0xffbb1b35d41ba17fd99eaaa000f82b666bf06b69522db30b2d38809759667201'