Market

Get historic price chart

GET/v3/currency/chart

Returns a time series for a currency pair, ready to draw a price chart.

Each row is [time, baseRate, quoteRate]: Unix epoch milliseconds, then the rate of each currency against the US dollar (units per 1 USD, as in GET /v1/currency/rate). The price of the base in the quote currency is quoteRate / baseRate. Either rate is null when there is no data at that timestamp; skip those rows instead of plotting zero.

temporality selects both the time range and the spacing between points. Rows are ordered oldest first.

all-time is not available between two fiat currencies and returns a 400 with a different body shape (errorCode instead of statusCode).

No authentication is required.

Query Parameters

ticker*string

Currency pair as BASE/QUOTE, for example BTC/EUR. Both symbols must be known to the service. URL-encode the slash as %2F if your client does not do it.

Match^[\w\d]{1,}\/[\w\d]{1,}$
temporality*string

Time range covered by the chart.

Value in

  • "one-hour"
  • "four-hours"
  • "twelve-hours"
  • "one-day"
  • "one-week"
  • "one-month"
  • "three-months"
  • "six-months"
  • "one-year"
  • "all-time"

Response Body

application/json

application/json

Get historic price chart
curl --request GET \  --url 'https://gateway.bit2me.com/v3/currency/chart?ticker=BTC%2FEUR&temporality=one-day'
[  [    1788443280000,    0.000012686031591522499,    0.860151  ],  [    1788443640000,    0.00001268453495745528,    0.860151  ]]