Assets
Get an asset's price chart
GEThttps://api.arzdigital.com/v1/assets/{slug}/chart
X-API-Key headerHow credits workSend either range, or all of from, to and interval. They cannot be combined. With from, to and interval the window can hold at most 1000 points. With range the resolution is chosen for you, and an asset with a short history returns fewer points than the range suggests. Intervals of 1d and above align from to the start of the UTC day.
Credit use: Each successful call costs 1 credit for every 100 points it returns, rounded up. For example, 250 points cost 3 credits.
An empty result and any error cost nothing.
Parameters
slugstringPathRequiredAsset slug, such asbitcoin.rangestringQueryWindow ending now. Cannot be combined withfrom,toorinterval.1d7d1m3m6m1yallfromintegerQueryWindow start, in Unix seconds. Requirestoandinterval.tointegerQueryWindow end, in Unix seconds. Requiresfromandinterval.intervalstringQueryPoint spacing. Requiresfromandto.Allowed values (11)
5m30m2h6h12h1d2d3d7d30d60d
Request headers
X-API-KeystringRequiredYour API key. Send it in this header on every call; it is not accepted in the URL.
Response
Chart points, with the window's highs and lows in
meta.Response fields (27)
statusstringmetaobjectmeta.low_usdobject | nullmeta.low_usd.timeintegerUnix seconds.meta.low_usd.price_usdnumberPrice in USD.meta.low_usd.irt_ratenumberWhole Toman per unit of the USD price.meta.low_usd.price_btcnumberPrice in BTC.meta.high_usdobject | nullmeta.high_usd.timeintegerUnix seconds.meta.high_usd.price_usdnumberPrice in USD.meta.high_usd.irt_ratenumberWhole Toman per unit of the USD price.meta.high_usd.price_btcnumberPrice in BTC.meta.low_irtobject | nullmeta.low_irt.timeintegerUnix seconds.meta.low_irt.price_usdnumberPrice in USD.meta.low_irt.irt_ratenumberWhole Toman per unit of the USD price.meta.low_irt.price_btcnumberPrice in BTC.meta.high_irtobject | nullmeta.high_irt.timeintegerUnix seconds.meta.high_irt.price_usdnumberPrice in USD.meta.high_irt.irt_ratenumberWhole Toman per unit of the USD price.meta.high_irt.price_btcnumberPrice in BTC.dataarraydata[].timeintegerUnix seconds.data[].price_usdnumberPrice in USD.data[].irt_ratenumberWhole Toman per unit of the USD price.data[].price_btcnumberPrice in BTC.
Response headers
X-Credits-ChargedCredits this call cost.0on every non-200 response.X-Credits-RemainingAccount balance after this call, not counting what calls still in flight have set aside. Negative only for an account in debt after an adjustment.X-RateLimit-LimitRequests per minute allowed for this key.X-RateLimit-RemainingRequests left in the current window.X-RateLimit-ResetUnix seconds at which the window has room again.
Errors
bad_requesterror_code 1001A parameter is missing
Errors are never charged. Errors