curl --request GET \
--url https://api.alphractal.com/{asset}/spot/OHLCV \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.alphractal.com/{asset}/spot/OHLCV"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.alphractal.com/{asset}/spot/OHLCV', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"time": "2023-11-07T05:31:56Z",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"volume_usd": 123,
"trades": 123
}
]Spot OHLCV
Retrieve OHLCVSpot data for /{asset}/spot/OHLCV.
curl --request GET \
--url https://api.alphractal.com/{asset}/spot/OHLCV \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.alphractal.com/{asset}/spot/OHLCV"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.alphractal.com/{asset}/spot/OHLCV', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"time": "2023-11-07T05:31:56Z",
"open": 123,
"high": 123,
"low": 123,
"close": 123,
"volume": 123,
"volume_usd": 123,
"trades": 123
}
]Authorizations
API Key authentication. Include your API key in the X-Api-Key header for all requests.
Path Parameters
Asset identifier, lowercase ticker. The list is the assets that carry this metric — an asset outside it has no data here.
0g, 1inch, 2z, a, aave, ace, ada, aero, aioz, akt, alch, algo, ape, apt, ar, arb, aster, ath, atom, ausd, ausdt, avax, awe, axs, b, banana, bard, bat, bch, beam, bnb, bonk, brett, bsv, btc, btt, cake, cc, cfg, cfx, cheems, chz, ckb, comp, core, cow, cro, crv, crvusd, ctc, cvx, cys, dash, deep, dexe, dog, doge, dot, dydx, egld, ena, ens, etc, eth, ethfi, fartcoin, fet, ff, fil, floki, flr, fluid, form, frax, g, gala, gas, glm, gmx, gno, grass, grt, gwei, h, hbar, hnt, home, hot, hype, icnt, icp, imx, inch, inj, iota, ip, jasmy, jst, jto, jup, kaia, kaito, kas, kite, la, ldo, link, lit, lpt, ltc, lunc, m, mana, mantra, met, mina, mnt, mon, morpho, move, near, neo, night, okb, ondo, op, paxg, pendle, pengu, pepe, pieverse, pippin, pol, pump, pyth, qnt, qtum, qubic, render, river, rose, rsr, rune, rvn, s, safe, sand, sei, sent, sfp, shib, siren, skr, sky, snx, sol, spx, stable, stg, strk, stx, sui, sun, susd, syrup, t, tag, tao, theta, tia, ton, toshi, tria, trump, trx, turbo, tusd, twt, uai, ub, uni, velo, vet, virtual, vvv, w, wal, wif, wld, wlfi, wusd, xaut, xcn, xdc, xec, xlm, xmr, xpl, xrp, xtz, xvg, yfi, yzy, z, zec, zen, zil, zk, zro, zrx Query Parameters
Aggregation bucket. Values outside the accepted list fall back to the daily series instead of returning an error.
1m, 5m, 15m, 30m, 1h, 4h, 6h, 12h, 1d Start date for filtering results (inclusive). Format: ISO 8601 date-time.
End date for filtering results (inclusive). Format: ISO 8601 date-time.
Newest N bars. When no date window is given the resolution cap also applies (1m 10080, 5m 25920, 15m 17280, 30m 17520, 1h 17520, 4h 8760; 6h/12h/1d uncapped) and the smaller of the two wins. An explicit startDate/endDate is served in full.
Venue identifier. When omitted, the query is not filtered by venue.
apex, aster, backpack, binance, bingx, bitfinex, bitget, bithumb, bitmart, bitmex, bitstamp, blockchaincom, blofin, bullish, bybit, bydfi, coinbase, coinex, cryptocom, deepcoin, delta, deribit, digifinex, dydx, fmfwio, foxbit, gate, hashkey, hibachi, hitbtc, htx, hyperliquid, kraken, kucoin, kucoinfutures, lbank, mercado, mexc, okx, paradex, phemex, tokocrypto, toobit, upbit, whitebit, woo, xt Trading pair symbol (e.g. BTCUSDT). When omitted, data is aggregated across symbols.