Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 496 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 496 Bytes

ledgergrabber

Utils for creating prices files for Ledger CLI.

Examples

from ledgergrabber import fiat
from ledgergrabber import crypto
import ledgergrabber.core

# Quotes functions returns lists of tuples with `(symbol, base, quote, as_of)`
fiat_quotes = fiat.from_fixer_io(base='EUR', symbols=['BRL', 'USD'])
crypto_quotes = crypto.from_coinmarketcap(base='EUR')

# saving it
ledgergrabber.core.to_file(fiat_quotes + crypto_quotes, "./prices_db")