Skip to main content

TradingView UDF

Every HollaEx exchange supports the TradingView UDF API, so you can use it as a data feed for TradingView charts.

Config​

Request

curl -X GET "https://<your-api-domain>/v2/udf/config"

Response

{
"supported_resolutions": [
"60",
"1D"
],
"supports_group_request": false,
"supports_marks": false,
"supports_search": true,
"supports_timescale_marks": false
}

This endpoint retrieves the TradingView UDF config.

HTTP Request​

GET https://<your-api-domain>/v2/udf/config

History​

Request

curl -X GET "https://<your-api-domain>/v2/udf/history?symbol=btc-usdt&resolution=1D&from=1551663947&to=1582768007"

Response

{
"c": [...],
"h": [...],
"l": [...],
"o": [...],
"v": [...],
"s": "ok"
}

This endpoint retrieves the TradingView UDF history HOLCV.

HTTP Request​

GET https://<your-api-domain>/v2/udf/history?symbol=${symbol}&resolution=${resolution}&from=${from}&to=${to}

PARAMETERS​

ParameterTypeRequired/OptionalDescription
symbolstringRequiredThe currency pair symbol (btc-usdt, etc.)
resolutionstringRequiredTime interval resolution (1D, 60, etc.)
fromstringRequiredBeginning UNIX timestamp
tostringRequiredEnding UNIX timestamp

Symbols​

Request

curl -X GET "https://<your-api-domain>/v2/udf/symbols?symbol=btc-usdt"

Response

{
"name": "Bitcoin",
"ticker": "btc-usdt",
"exchange": "HollaEx",
"has_intraday": true,
"has_daily": true,
"has_weekly_and_monthly": true,
"session": "24x7",
"regular_session": "24x7",
"pricescale": 1,
"volume_precision": 2,
"has_empty_bars": true
}

This endpoint retrieves a TradingView UDF symbol.

HTTP Request​

GET https://<your-api-domain>/v2/udf/symbols?symbol=${symbol}

PARAMETERS​

ParameterTypeRequired/OptionalDescription
symbolstringRequiredThe currency pair symbol (btc-usdt, etc.)