Charts

A chart series as data

Price, fees, activity, mining and supply per block, hour, day or minute. One request per call; cached until the network's next block (minute series about 10 seconds).

get/charts/{network}/{series}/{interval}

Request

  • Base URL: https://sochain.com/api/v3
  • URL: https://sochain.com/api/v3/charts/{network}/{series}/{interval}
  • Auth: one of:
    • none
    • API key in header API-KEY
    • API key in query parameter api_key

Path parameters

network'BTC' | 'LTC' | 'DOGE' | 'ZEC' | 'BTCTEST' | 'LTCTEST' | 'DOGETEST' | 'ZECTEST' required

Network code (any case).

series'tx_count' | 'fees_total' | 'fees_median' | 'block_size' | 'difficulty' | 'hashrate' | 'supply' | 'price_usd' | 'tx_per_min' | 'block_interval' | 'pool_share' | 'lookalikes' | 'mempool_txs' | 'mempool_bytes' | 'holder_share' | 'new_addresses' | 'active_addresses' | 'transfers' | 'mweb_pool' | 'mweb_flows' | 'zcash_pools' required
interval'block' | 'hour' | 'day' | 'minute' required

Not every series has every interval: block and hour/day for most; minute only for tx_per_min, mempool_txs and mempool_bytes.

Query parameters

frominteger

Start of the range, inclusive: a block height for the block interval, else Unix seconds (rounded down to the start of its minute, hour or day, and no earlier than the network's first block).

tointeger

End of the range, inclusive, in the same units. Defaults to now; later times are now, and heights stop at the tip. Times are rounded down like from.

currency'AUD' | 'BRL' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JPY' | 'KRW' | 'MXN' | 'MYR' | 'NOK' | 'NZD' | 'PHP' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'THB' | 'TRY' | 'USD' | 'ZAR'

price_usd only: the price in this currency. The series keeps its name; the answer adds currency.

Response

The series.

status'success' required

Changes

No recorded changes to this operation across all 1 revision of this API.