Cancel Orders

Cancel Orders [Trade]

URL: https://exchange.bartertrade.io/api/v1/cancelorder

Method: POST

Attributes:

orderid – (string) – Order id which needs to be canceled

pair – (string) – the Pair of the order

api_key – (string) - Key to access the user’s data

Header :

  • API-keys are passed into the Rest API via the 'Authorization' header.

  • API-keys and secret-keys are case sensitive.

  • SIGNED secret key, iat and exp with JWT signature.

How to create token?

Example :

let payload =

{ iat: seconds, //10 digit exp: seconds_exp, //10 digit secretkey: secretkey };

let token = jwt.sign( payload, secretkey );

headers: { 'Authorization': token, 'Content-Type': 'application/json', },

Body:

{
  "orderid": "193",
  "pair": "BART_ETH",
  "api_key": "your api_key"
}

Response:

{
  "status": true,
  "available": "0.985394500875",
  "coin": "BART",
  "message": "Order Cancelled successfully"
}

Last updated

Was this helpful?