Get TradingView Feeds Data

Updated

Fetches TradingView-compatible OHLCV data for a specific feed, type, and interval.

Endpoint

GET /trading-view/feeds-data

Base URL: https://history.oraclesecurity.org

This endpoint does not require authentication.

Parameters

ParameterTypeRequiredDescription
feedidsstringYesA comma-separated list of feed IDs to fetch data for
feedstringYesThe feed symbol (e.g., btcusd)
typeintegerYesThe query type (e.g., 1 for standard OHLCV data)
intervalstringYesThe time interval for the data (e.g., 24h)

Example Request

curl -X GET "https://history.oraclesecurity.org/trading-view/feeds-data?feedids=BTCUSD&feed=btcusd&type=1&interval=24h"

Response

json
{
  "data": {
    "queryType": "1",
    "interval": "24h",
    "result": [
      {
        "time": 1752069600000,
        "open": 109202.25,
        "high": 109220.55,
        "low": 109173.53,
        "close": 109202.2,
        "avg": 109199.41,
        "volume": 26658.339358
      }
    ]
  }
}

Response Fields

FieldTypeDescription
data.queryTypestringThe query type used
data.intervalstringThe time interval
data.resultarrayArray of OHLCV data points
data.result[].timeintegerTimestamp (milliseconds since epoch)
data.result[].opennumberOpening price
data.result[].highnumberHighest price
data.result[].lownumberLowest price
data.result[].closenumberClosing price
data.result[].avgnumberAverage price
data.result[].volumenumberTrading volume

Errors

StatusDescription
404Not Found - wrong interval or missing feed
Was this helpful?