Crypto

Dollar price of bitcoin or ethereum. /api/v1/crypto lists the two coins.

View Docs

Parameters

symbol string Required

btc or eth in the path. bitcoin and ethereum work too.

Example: btc

amount number

How many coins to price. Fractions are fine. Defaults to 1.

Example: 0.1

Responses

200 OK Success
{
  "ok": true,
  "kind": "crypto",
  "coin": "btc",
  "currency": "USD",
  "price": 84029,
  "amount": 0.1,
  "total": 8402.9
}
400 BAD_REQUEST unknown coin
502 BAD_GATEWAY could not load that coin