This library enable to extract data from various african website into a pandas DataFrame
Project description
Wakanda
This tool is useful to extract data from various african's websites.
New Features!
- Hitorical data for stocks from more than 8 africans markets (BRVM, Ghana, Nigeria, Kenya and more)
- Get real-time data ( at this point this worked only for BRVM
Installation
From pypi with pip:
$ pip install wakanda
Usage example
Use afx.kwayisi as main source of data, ranging up to 7 years.
$ import wandaka as wkd
# Initialize market (eg:brvm).you could also choose ghana(gse), nigeria(ngse)..
$ brvm = wkd.stock('brvm')
# now you can collect stock data for all stocks under that market
$ brvm.DataReader('BICC')
Date close price
0 09-16-2013 43000
1 09-23-2013 42000
2 09-26-2013 42000
3 10-01-2013 42000
4 10-02-2013 42000
# you may specify start and end dates
$ gse = wkd.stock('gse')
$ gse.DataReader('MTNGH' start='01-09-2020',end='01-13-2020')
Date close price
0 01-09-2020 0.7
1 01-10-2020 0.7
2 01-13-2020 0.7
Get live quote from markets' official website
$ from wakanda import wkd
brvm = wkd.stock('brvm')
brvm.get_quote('BICC')
License
MIT
Free Software, Hell Yeah!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wakanda-0.6.tar.gz
(5.5 kB
view details)
File details
Details for the file wakanda-0.6.tar.gz
.
File metadata
- Download URL: wakanda-0.6.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee055ffc2f181535adb24ef254b26fd320a0f562f5f3bfbb3fbcedf2b077327 |
|
MD5 | 5c7e004306489e266bb48574b6ba98d8 |
|
BLAKE2b-256 | 312c013168c8f9fe460f473bdcbfd1a506080980fedd2ce18069beb5229cb847 |