Recent Trades List
URL: https://exchange.bartertrade.io/api/v1/getTradeHistory
Method: POST
Attributes:
pair – 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":"BRT_ETH",
"api_key": apikey
}
Response:
{
"status": true,
"data": [
{
"side": "Buy",
"price": "0.2",
"amount": "2.00000000000000000000",
"total": "0.400000000000000000000",
"trade_date": "2020-11-18T09:29:24.431Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "12.00000000000000000000",
"total": "2.400000000000000000000",
"trade_date": "2020-11-18T08:13:25.015Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "2.00000000000000000000",
"total": "0.400000000000000000000",
"trade_date": "2020-11-07T04:17:54.969Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "1.00000000000000000000",
"total": "0.200000000000000000000",
"trade_date": "2020-11-07T03:45:35.052Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "0.00121000000000000000",
"total": "0.000121000000000000000",
"trade_date": "2020-11-07T02:51:13.621Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "2.00000000000000000000",
"total": "0.400000000000000000000",
"trade_date": "2020-11-07T02:48:39.501Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "11.00000000000000000000",
"total": "2.200000000000000000000",
"trade_date": "2020-11-07T02:47:59.396Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "1.00000000000000000000",
"total": "0.200000000000000000000",
"trade_date": "2020-11-07T02:46:54.443Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "10.00000000000000000000",
"total": "1.000000000000000000000",
"trade_date": "2020-10-15T08:30:00.971Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "10.00000000000000000000",
"total": "1.000000000000000000000",
"trade_date": "2020-10-15T08:11:33.223Z"
},
{
"side": "Buy",
"price": "0.21",
"amount": "10.00000000000000000000",
"total": "2.1000000000000000000000",
"trade_date": "2020-10-15T08:10:51.496Z"
},
{
"side": "Buy",
"price": "0.21",
"amount": "9.73670961000000000000",
"total": "2.0447090181000000000000",
"trade_date": "2020-10-15T08:07:28.803Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "10.26329039000000000000",
"total": "2.052658078000000000000",
"trade_date": "2020-10-15T08:07:28.803Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "5.00000000000000000000",
"total": "1.000000000000000000000",
"trade_date": "2020-10-15T08:05:21.308Z"
},
{
"side": "Buy",
"price": "0.2",
"amount": "55.00000000000000000000",
"total": "11.000000000000000000000",
"trade_date": "2020-10-15T08:04:07.063Z"
},
{
"side": "Buy",
"price": "0.17",
"amount": "15.00000000000000000000",
"total": "2.5500000000000000000000",
"trade_date": "2020-10-15T08:04:07.063Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "1.00000000000000000000",
"total": "0.100000000000000000000",
"trade_date": "2020-10-12T13:05:21.338Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "12.00000000000000000000",
"total": "1.200000000000000000000",
"trade_date": "2020-10-12T12:56:52.086Z"
},
{
"side": "Buy",
"price": "0.14",
"amount": "1.00000000000000000000",
"total": "0.1400000000000000000000",
"trade_date": "2020-10-12T12:53:07.618Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "1.00000000000000000000",
"total": "0.100000000000000000000",
"trade_date": "2020-10-12T12:52:44.715Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "1.00000000000000000000",
"total": "0.100000000000000000000",
"trade_date": "2020-10-12T12:50:37.747Z"
},
{
"side": "Sell",
"price": "0.1",
"amount": "1.00000000000000000000",
"total": "0.100000000000000000000",
"trade_date": "2020-10-12T12:41:34.614Z"
}
]
}
Last updated
Was this helpful?