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.7.tar.gz
(5.5 kB
view details)
File details
Details for the file wakanda-0.7.tar.gz
.
File metadata
- Download URL: wakanda-0.7.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 | 0c8ddac6692926ddb168c6f8c629aa41ec8e4e377be4ad211d60922d6e543941 |
|
MD5 | 897e8e51d54fddd78e5f975bf6685b12 |
|
BLAKE2b-256 | 3e0e163e6b48bb20705a17eaadad33992b9ade17c9e9c865ae9893c545eab518 |