Best price/qty

This method gives the best price/qty on the order book for a symbol or symbols.

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

Method: Post

Attributes:

side - (string) - “Buy” or “Sell”

pair – (string) – Token Pair

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:

{ 
   pair: "ETH_BTC",
   side: "Buy",    
   api_key: apikey
} 

Response:

{
  "status": true,
  "data": "0.0075"
}

Last updated

Was this helpful?