The Bavest Finance Python SDK
Project description
Bavest Finance SDK
The Bavest Finance SDK is an open-source library to create finance products in weeks. Bavest offers:
- Financial api with 99.999% uptime
- Easy to integrate and use
- Free for open-source projects
Get started for free
Personal API key
First, you need to create an account on Bavest. After registration, you will find your api key in the dashboard.
Open-Source projects
If you are working on an open-source project, you can use the SDK for free.
Just send us an email to support@bavest.co with the following information:
- Your GitHub username
- The name of your project
- The link to your project on GitHub
- A description of your project
Install the package
First install the python package:
pip install bavest
Usage
- Now, use the package in your project:
from bavest import BavestRESTClient
- Create a finance
client:
client = BavestRestClient(apiKey)
- Now you can use it to get data from the api:
quote = client.quote("AAPL")
Examples
to = datetime.now()
frm = to + dateutil.relativedelta.relativedelta(days=-20)
resolution = Resolution.MONTHLY
candles = client.candles(symbol, frm, to, resolution)
news = client.news(symbol)
search = client.search(symbol)
forex = client.forex(frm, to)
# ETF
etfSector = client.etf.sector(symbol)
etfCountry = client.etf.country(symbol)
etfHoldings = client.etf.holdings(symbol)
etfProfile = client.etf.profile(symbol)
# Portfolio Items
transactionItem = TransactionItem("MSFT", 2, frm).get()
transactionList = [transactionItem]
portfolioRegion = client.portfolio.region(transactionList)
portfolioStats = client.portfolio.stats(frm, to, resolution, transactionList, "USD")
portfolioChart = client.portfolio.chart(frm, to, resolution, transactionList)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bavest-1.0.0.tar.gz.
File metadata
- Download URL: bavest-1.0.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a02c97144070ee70d9a96de8d815074e7b57a49a9521b00db9162708ecdb653
|
|
| MD5 |
44253823c935fe358d54aed9aa7235b7
|
|
| BLAKE2b-256 |
95c19146d5be1120d9e90de4f630c31597ff879e9b96be40716754cf399eb4b9
|
File details
Details for the file bavest-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bavest-1.0.0-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02ba4a97d826b2649349e8bae1f12da77120e6623e42ec9c523cf23099ced9e1
|
|
| MD5 |
4d111f7c9939f1233584328b0cdb09ce
|
|
| BLAKE2b-256 |
bcceb50071d3d80e708660c02ddd3788265907f894ad9c822a694abae2249e77
|