v1

latestOpenAPI 3.0.02026-07-2224101.3 MB
TRX Market Data

Price OHLCV

This endpoint returns metrics related to TRX's Price, Price OHLCV data consists of five metrics.<br>

MetricDescription
openThe opening price at the beginning of the window.
closeThe USD closing price at the end of the window.
highThe highest USD price in a given window.
lowThe lowest USD price in a given window.
volumeThe total volume traded in a given window.

(*) Default exchange <br />

Supported Exchanges By Market

NameMarketSupported Exchanges
SpotspotAll Exchange*

Supported Pairs By Exchange

NameExchangeSymbol
All Exchangesall_exchangetrx_usd*

Supported Windows By Market

MarketSupported Windows
Spotday*
get/trx/market-data/price-ohlcv

Query parameters

marketstring

A market type from the table that we support. See here

exchangestring

A exchange from the table that we support. See here.

symbolstring

A TRX pair symbol from the table that we support. See here

windowstring

Currently, we only support day.

fromstring

This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.

tostring

This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.

limitinteger

The maximum number of entries to return before the latest data point (or before to if specified). This field ranges from 1 to 100,000.

formatstring

A format type about return message type. Supported formats are json, csv.

Response

Successful response.