Access to African, American, European and Asian open market data for financial analysis, scientific study and to provide a decision-making basis to investors.
You can install this package using pip:
pip install marketflowImport requirements
from marketflow.market_registry import MarketRegistry
from marketflow.market_ticker import MarketTickers
from marketflow.market_data import MarketDataOr simply with
from marketflow import MarketRegistry, MarketTickers, MarketDataInitialize the registry (to manage cache / stored data)
register = MarketRegistry()
# register.purge() # Uncomment to clear existing registry dataGet available tickers for market (Ex : BRVM)
tickers = MarketTickers()
brvm_tickers = tickers.getTickers("BRVM")
print(brvm_tickers)Download market data (example: BRVM, ticker BNBC.ci)
data = MarketData()
brvm_data = data.getData("BRVM", "all"])
boab_data = data.getData("BRVM", "BOAB"])
bicc_data = data.getData("BRVM", "BICC"])
print(brvm_data.head())