Query Order
Query Order [User Data]
URL: https://exchange.bartertrade.io/api/v1/getOrderStatus
Method: POST
Attributes:
orderid – (string) – invidual order id to check
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": "191",
"api_key": "user_api_key"
}
Response :
{
"status": true,
"data": [
{
"modified_date": null,
"price": "0",
"total": "2.00000000000000000000",
"amount_filled": "0.00000000000000000000",
"status": "Open",
"order_type": "market",
"side": "Sell",
"pair": "BART_ETH",
"fee_percent": 0
}
]
}
Last updated
Was this helpful?