Assets
Get the latest prices of several assets
GEThttps://api.arzdigital.com/v1/prices
X-API-Key headerHow credits workThe latest USD and Toman price and 24-hour change of up to 100 assets in one call, keyed by slug. Prices come from the market data feed, which updates each asset every few minutes; updated_at says when this one did. A slug that does not exist is left out of data; the call costs 1 credit even when none of them exist.
Credit use: Each successful call costs 1 credit, whatever it returns.
An empty result and any error cost nothing.
Parameters
slugsstring (comma-separated)QueryRequiredAsset slugs separated by commas, at most 100. A slug sent twice counts once.
Request headers
X-API-KeystringRequiredYour API key. Send it in this header on every call; it is not accepted in the URL.
Accept-LanguagestringLanguage for translated names and descriptions, such asfa-IR. Unsupported values fall back toen-US.
Response
The prices, keyed by slug.
Response fields (10)
statusstringdataobjectPrices keyed by slug.data.{slug}.symbolstringdata.{slug}.namestringThe English name.data.{slug}.display_namestring | nullName in the requested language, or the English name when there is no translation.data.{slug}.pricenumber | nullUSD.data.{slug}.price_irtnumber | nullToman.data.{slug}.change_24hnumber | nullPercent change of the USD price over 24 hours.data.{slug}.change_irt_24hnumber | nullPercent change of the Toman price over 24 hours.data.{slug}.updated_atstring | nullWhen the feed last updated this asset.
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