Network & price

Price at a past time

The price at unix_timestamp: its hour's opening price, or its UTC day's where hourly prices don't reach. A time before price history begins answers 404, naming the first day with a price; a time still to come, 404.

get/price/{network}/{unix_timestamp}

Request

  • Base URL: https://sochain.com/api/v3
  • URL: https://sochain.com/api/v3/price/{network}/{unix_timestamp}
  • 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).

unix_timestampinteger required

Unix seconds (7–10 digits): the price at that time. Anything else means the latest price.

Query parameters

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'

Prices in this currency instead of US dollars (any case). Not a filter: on the paged endpoints it keeps the form you'd get without it.

Response

Success.

status'success' required

Example response

{
  "data": {
    "value": "0.00024300"
  }
}

Changes

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