ex_blockchain v0.1.0 ExBlockchain.ExchangeRates

Wrapper around the Exchange Rates API See: https://blockchain.info/api/exchange_rates_api

Summary

Functions

Retrieves a blob of currency codes where

  • 15m is is the 15 minutes delayed market price
  • “last” is the most recent market price
  • “symbol” is the currency symbol

Converts value in currency to BTC

Functions

ticker()

Retrieves a blob of currency codes where

  • 15m is is the 15 minutes delayed market price
  • “last” is the most recent market price
  • “symbol” is the currency symbol

Example

ticker = ExBlockchain.ExchangeRates.ticker
to_btc(currency, value)

Converts value in currency to BTC.

Example

btc_value = ExBlockchain.ExchangeRates.to_btc("USD", 50)