OHLCV

Fetch historical OHLCV

Fetch historical OHLCV market data for a cryptocurrency

Credit Consumption: 5 API call credit per request

Endpoint: GET /v2/ticker/currency/ohlcv

Request

Query Parameters:

  • name (string) – Base currency: name, symbol, or keyword Example: aave

  • quotation (string) – Quotation currency: name, symbol, or keyword Example: usd

  • type (string) – Aggregation method: median or average Default: median Example: median

  • interval (string) - Granularity of data:hourly or daily

  • start_timestamp (int) - Start time (milliseconds)

  • end_timestamp (int) - End time (milliseconds)

Sample Request

curl -X GET "https://api-ai-oracle.apro.com/v2/ticker/currency/ohlcv?name=TON&quotation=AUD&type=median&interval=daily&start_timestamp=1754186400000&end_timestamp=1754409599000" \
 -H "accept: application/json"

Response

{
    "status": {
        "timestamp": 1754908314180,
        "code": 200,
        "message": ""
    },
    "data": {
        "name": "Toncoin",
        "symbol": "TON",
        "quotes": "Australian Dollar",
        "quotes_symbol": "AUD",
        "points": [
            {
                "open": 5.473638158508172,
                "high": 5.771655868159115,
                "low": 5.361586970226252,
                "close": 5.512066625132076,
                "volume": 478153025.2111578,
                "timestamp": 1754265600
            },
            {
                "open": 5.50706207717902,
                "high": 5.65580431529189,
                "low": 5.175796722641506,
                "close": 5.281147885541975,
                "volume": 750970808.4169718,
                "timestamp": 1754352000
            }
        ],
        "report_type": "median",
        "signature": [
            {
                "signer": "0xB8d725f09fB33852dA862EAB9e68536305CfE289",
                "hash": "0x14e5a2cdfb81bf04fbe1853376b2b1e8cb550ce759d384097f33177bf2b626a6",
                "signature": "0xfc0cb0e534ea5fb4b5e19651eeba70c42e6ccd049b8cac311ab5788f51a0bab2699a794e4b5568c79fad9e2a9fcb8089a54818fbb4f13695069de6acdcdbffbd01",
                "timestamp": 1754908314163
            },
            {
                "signer": "0xa79c2F060301ace9DcdcF838DF0F1bD7ff016Bf4",
                "hash": "0x14e5a2cdfb81bf04fbe1853376b2b1e8cb550ce759d384097f33177bf2b626a6",
                "signature": "0xde01a3f1c5e304b40f463514492ad1b6513bf4c0419ee566096a79a5a6164bbd1ff457da5e38bc225c825ddff21eca12fa4b4aebf8556a05fc04ed5cca32401d00",
                "timestamp": 1754908314213
            },
            {
                "signer": "0x82c9F939242beDddD9a6EA1AFc823e6dA6658E0b",
                "hash": "0x14e5a2cdfb81bf04fbe1853376b2b1e8cb550ce759d384097f33177bf2b626a6",
                "signature": "0x469245baf0953525a993e36f628de4b9f3bc9d3b4ac1ad030a00fe4d7a4cd6ba64581e7df2bda581668983881647d020d72b95ce5b4100cdf632e74fa68c61e001",
                "timestamp": 1754908314121
            },
            {
                "signer": "0x13Ac6f9B4C3178D92ee60a7aC8e67063dB08552E",
                "hash": "0x14e5a2cdfb81bf04fbe1853376b2b1e8cb550ce759d384097f33177bf2b626a6",
                "signature": "0x17250462c89270d3c6bdcc6449e2b646d94c6a3b350383bd5552541c8a18d7ad46e117d6c188ce2c7dc6e21ba5af9ddff8741a3ba4b39208c29725f6e0e0d3c100",
                "timestamp": 1754908314129
            },
            {
                "signer": "0x2875540d8fad62e4CDC71d7a59611Eb578ab7Ccc",
                "hash": "0x14e5a2cdfb81bf04fbe1853376b2b1e8cb550ce759d384097f33177bf2b626a6",
                "signature": "0xa9cf35ea0b2a1e032ad1de92ccea6d9492a8ceb352b15e9a465c122ead9a12475eb169518897de37f0626885488ac1b5a665a1b3a0a6091f494a684df46e5db401",
                "timestamp": 1754908314127
            }
        ],
        "ohlcvs": [
            {
                "name": "Toncoin",
                "symbol": "TON",
                "quotes": "Australian Dollar",
                "quotes_symbol": "AUD",
                "provider_name": "AggregationCoinGecko",
                "direct": true,
                "points": [
                    {
                        "open": 5.47,
                        "high": 5.76,
                        "low": 5.36,
                        "close": 5.51,
                        "timestamp": 1754265600
                    },
                    {
                        "open": 5.5,
                        "high": 5.66,
                        "low": 5.18,
                        "close": 5.28,
                        "timestamp": 1754352000
                    }
                ]
            },
            {
                "name": "Toncoin",
                "symbol": "TON",
                "quotes": "Australian Dollar",
                "quotes_symbol": "AUD",
                "provider_name": "AggregationCoinMarketCap",
                "direct": true,
                "points": [
                    {
                        "open": 5.4772763170163445,
                        "high": 5.78331173631823,
                        "low": 5.363173940452504,
                        "close": 5.514133250264152,
                        "volume": 478153025.2111578,
                        "timestamp": 1754265600
                    },
                    {
                        "open": 5.51412415435804,
                        "high": 5.65160863058378,
                        "low": 5.171593445283012,
                        "close": 5.282295771083948,
                        "volume": 750970808.4169718,
                        "timestamp": 1754352000
                    }
                ]
            }
        ]
    }
}

Last updated