History
GET https://api.tdax.com/public/getmarkethistory?market&limit
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| market | String | A pair symbol, such as 'BTC_THB', 'ETH_THB', 'ETH_BTC', etc. | 'BTC_THB' |
| limit | Number | Limit of histories, | 20 |
Response
The API will return HTTP status 200 OK upon successful listing, otherwise the status returned will be greater than 400 with the message indicating error.
The response body will be JSON array representing a list of histories of trading no more 50.
Example
GET https://api.tdax.com/public/getmarkethistory?market=BTC_THB&limit=10
[
{
"ID": 123323,
"Price": 406353,
"Qty": 0.55,
"CreatedAt": "2018-01-19T11:09:08.902762Z"
},
{
"ID": 123318,
"Price": 405285,
"Qty": 0.55,
"CreatedAt": "2018-01-19T11:06:04.596721Z"
},
{
"ID": 123313,
"Price": 409739.7,
"Qty": 0.26,
"CreatedAt": "2018-01-19T11:04:55.607069Z"
},
{
"ID": 123311,
"Price": 406537.8,
"Qty": 0.58,
"CreatedAt": "2018-01-19T11:01:56.591138Z"
},
{
"ID": 123309,
"Price": 407812,
"Qty": 0.25,
"CreatedAt": "2018-01-19T10:59:17.69298Z"
},
{
"ID": 123304,
"Price": 404441,
"Qty": 0.495,
"CreatedAt": "2018-01-19T10:57:35.918538Z"
}
]