StockStalker.crypto - RockoonTechnologies/StockStalker GitHub Wiki
Crypto
The crypto
module is what allows you to fetch live data about a cryptocurrency.
To operate crypto
simply import it:
from StockStalker.crypto import getCrypto
getCrypto(ticker, format="Dict")
PRICES CRYPTO RETURNS ARE IN USD
getCrypto()
returns either a Dict (format="Dict"
), a Panda's Dataframe (format="DataFrame"
) or a (munch) object (format="Object"
). They all hold the same information, so its up to you!
getCrypto()
returns a ample amount of information about a cryptocurrency, here is a example:
{
"Symbol":"BTC",
"Currency":"USD",
"Price":48476.3,
"Change":[
{
"change":-157.31,
"percentageChange":"-0.32%"
}
],
"Ranges":[
{
"Low":47237.465,
"High":50335.715
}
],
"Open":48404.598,
"previousClose":48404.598
}