Other Utility Classes¶
Exchange Rates¶
We provide a utility class that retrieves exchange rates from Coindesk’s Bitcoin Price Index and provides conversions between bitcoin and your currency of choice.
-
class
blocksci.currency.
CurrencyConverter
(currency='USD', start=datetime.date(2009, 1, 3), end=datetime.date(2020, 11, 12))[source]¶ Imports Bitcoin exchange rates in a variety of currencies using the Coindesk API available at https://www.coindesk.com/price/.
Custom Pickler¶
BlockSci objects cannot be pickled by Python’s standard pickle library. Instead, we provide a custom pickler for BlockSci objects that allows to serialize them.
Ranges and Iterators¶
This section contains various ranges and iterators not described elsewhere.