Assets

Get the latest prices of several assets

GEThttps://api.arzdigital.com/v1/prices
X-API-Key headerHow credits work

The 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)QueryRequired
    Asset slugs separated by commas, at most 100. A slug sent twice counts once.
    Example: bitcoin,ethereum,tether

Request headers

  • X-API-KeystringRequired

    Your API key. Send it in this header on every call; it is not accepted in the URL.

  • Accept-Languagestring
    Language for translated names and descriptions, such as fa-IR. Unsupported values fall back to en-US.

Response

The prices, keyed by slug.
Response fields (10)
  • statusstring
  • dataobject
    Prices keyed by slug.
  • data.{slug}.symbolstring
  • data.{slug}.namestring
    The English name.
  • data.{slug}.display_namestring | null
    Name in the requested language, or the English name when there is no translation.
  • data.{slug}.pricenumber | null
    USD.
  • data.{slug}.price_irtnumber | null
    Toman.
  • data.{slug}.change_24hnumber | null
    Percent change of the USD price over 24 hours.
  • data.{slug}.change_irt_24hnumber | null
    Percent change of the Toman price over 24 hours.
  • data.{slug}.updated_atstring | null
    When the feed last updated this asset.

Response headers

  • X-Credits-Charged
    Credits this call cost. 0 on every non-200 response.
  • X-Credits-Remaining
    Account 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-Limit
    Requests per minute allowed for this key.
  • X-RateLimit-Remaining
    Requests left in the current window.
  • X-RateLimit-Reset
    Unix seconds at which the window has room again.

Errors

  • bad_requesterror_code 1001
    A parameter is missing

Errors are never charged. Errors