TRX Market Data

This namespace contains endpoints to retrieve metrics related to TRX Market Data.

Price OHLCV

get

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

Metric
Description

open

The opening price at the beginning of the window.

close

The USD closing price at the end of the window.

high

The highest USD price in a given window.

low

The lowest USD price in a given window.

volume

The total volume traded in a given window.

(*) Default exchange

Supported Exchanges By Market

Name
Market
Supported Exchanges

Spot

spot

All Exchange*

Supported Pairs By Exchange

Name
Exchange
Symbol

All Exchanges

all_exchange

trx_usd*

Supported Windows By Market

Market
Supported Windows

Spot

day*

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: Authorization with the Bearer {access_token}. Bearer access token is the type of HTTP Authorization. You have to include access token to the HTTP header and note that leading bearer is required. You must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please upgrade your plan to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
marketstringOptional

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

Default: spotExample: spot
exchangestringOptional

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

Default: all_exchangeExample: all_exchange
symbolstringOptional

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

Example: trx_usd
windowstringOptional

Currently, we only support day.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

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

Default: jsonExample: json
Responses
chevron-right
200Success
application/json
get
/trx/market-data/price-ohlcv
200Success

Capitalization

get

This endpoint returns metrics related to market capitalization. We provide market_cap, which is total market capitalization of TRX, calculated by multiplying the total supply with its USD price. Go to Data Guide‣arrow-up-right

Authorizations
AuthorizationstringRequired

For each API request, include this HTTP header: Authorization with the Bearer {access_token}. Bearer access token is the type of HTTP Authorization. You have to include access token to the HTTP header and note that leading bearer is required. You must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please upgrade your plan to Professional or Premium plan. You'll be able to see your access token on the API tab of your profile page after the subscription.

Query parameters
windowstringOptional

Currently, we only support day.

Default: dayExample: day
fromanyOptional

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.

Example: 20191001T100000
toanyOptional

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.

Example: 20191001T103025
limitinteger · min: 1 · max: 100000Optional

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.

Default: 100Example: 100
formatstringOptional

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

Default: jsonExample: json
Responses
chevron-right
200Success
application/json
get
/trx/market-data/capitalization
200Success

Last updated

Was this helpful?