Order Book

Obtain chart data from historical closed trades

/v3/trade/chart

2 credits for API call.

Obtain data from the closed trades for entering in the chart. Time interval is set between from and to and there is defined time frame. There can be obtained at most 200 time points in the time interval.

post/v3/trade/chart

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/trade/chart
  • Auth
    API key in header x-api-key

Query parameters

direction'asc' | 'desc'
Example:asc

Direction of sorting

Request body

pairstring required

Trading pair

fromnumber required

Start interval in UTC millis.

tonumber required

End interval in UTC millis.

timeFrame'MIN_1' | 'MIN_3' | 'MIN_5' | 'MIN_15' | 'MIN_30' | 'HOUR_1' | 'HOUR_4' | 'HOUR_12' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR' required

Time frame of the chart.

Example request

{
  "pair": "BTC/EUR",
  "from": 1613654998398,
  "to": 1613654998398,
  "timeFrame": "MIN_5"
}

Response

OK

timestampnumber required

Milliseconds in UTC of the time interval.

highstring required

Highest trade value in the current interval.

lowstring required

Lowest trade value in the current interval.

openstring required

Open trade value in the current interval.

closestring required

Close trade value in the current interval.

volumestring required

Total volume of assets traded in the current interval. Volume is in currency1 asset.

Example response

[
  {
    "timestamp": 1613654117167,
    "high": "54213.21",
    "low": "53213.54",
    "open": "53513",
    "close": "54113",
    "volume": "2.423"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.