Skip to content

Trading View History

GET /api/dtao/tradingview/udf/history
NameInTypeRequiredDescription
symbolquerystringSUB- followed by subnet netuid “SUB-19”
resolutionquerystringgranularity of data (possible values: 1,5,15,60 for minutes, 1D, 7D, 30D for days)
fromqueryintegerunix timestamp
toqueryintegerunix timestamp
countbackqueryinteger

Media: application/json

Schema
{
"type": "object",
"required": [
"s"
],
"properties": {
"c": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"nullable": true
},
"h": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"nullable": true
},
"l": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"nullable": true
},
"nextTime": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 0
},
"o": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"nullable": true
},
"s": {
"type": "string"
},
"t": {
"type": "array",
"items": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"nullable": true
},
"v": {
"type": "array",
"items": {
"type": "number",
"format": "double"
},
"nullable": true
}
}
}
Examples
{
"Result": {
"value": "{\n \"s\": \"ok\",\n \"t\": [\n 1743975744,\n 1744062144,\n 1744148544,\n 1744234944,\n 1744321344,\n 1744407744,\n 1744494144,\n 1744580544,\n 1744666944,\n 1744753344,\n 1744839744\n ],\n \"c\": [\n 0.112485,\n 0.112093,\n 0.128291,\n 0.136604,\n 0.145633,\n 0.174315,\n 0.198308,\n 0.224149,\n 0.218043,\n 0.228542,\n 0.179202\n ],\n \"o\": [\n 0.121455,\n 0.112485,\n 0.112093,\n 0.128291,\n 0.136605,\n 0.145655,\n 0.174314,\n 0.198309,\n 0.224148,\n 0.216891,\n 0.228541\n ],\n \"h\": [\n 0.126404,\n 0.119289,\n 0.134344,\n 0.137699,\n 0.151068,\n 0.188898,\n 0.209817,\n 0.225733,\n 0.242296,\n 0.240047,\n 0.228677\n ],\n \"l\": [\n 0.107904,\n 0.097772,\n 0.112087,\n 0.122245,\n 0.134061,\n 0.144866,\n 0.170024,\n 0.169007,\n 0.201037,\n 0.204986,\n 0.158853\n ],\n \"v\": [\n 10185.2743107528,\n 22702.8728905252,\n 18643.6781790302,\n 12635.4565053718,\n 14409.1134572245,\n 31583.3162911571,\n 38502.2496440609,\n 35880.0333004022,\n 42526.9233296273,\n 28507.5856307891,\n 44091.7542086916\n ]\n}"
}
}

Interactive request console coming soon. In the meantime you can use the OpenAPI spec with any client (Insomnia, Bruno, Scalar, curl).

All Taostats API requests require an Authorization header containing your API key. See Getting Started.