BART Fee Availability
URL: https://exchange.bartertrade.io/api/v1/bartfeesavailability
Method: POST
Attributes:
form – (Object) – form data – amount, price
api_key – (string) - Key to access the user’s data
coin1 - (string) – Token Symbol
coin2 - (string) – Second Token Symbol
market – (string) – Type of Order (Market, Limit, Pie )
side - (string) - sell / buy
market_price : (decimal) : barter trade price
marketprice : (decimal): calculated coinbase market price
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
{
form: {"amount":500, "price":0.2},
market_price: 0.2,
side: "Sell",
market: "limit",
coin1: "USDT",
coin2: "BART",
marketPrice: 0.2,
api_key: apikey
}
Response
{ status: true, confirm: false, message: "You don’t have sufficient BART token to pay trade fee. You have to pay fees in coins" }
{ status: true, confirm: true, message: "You have sufficient BART token to pay trade fee." }
{ status: true, confirm: true, message: "You don’t have discount enabled. Application will deduct trade fee from base coin."}
Last updated
Was this helpful?