Skip to main content

The Bavest Finance Python SDK

Project description

posthoglogo

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

  1. Now, use the package in your project:
from bavest import BavestRESTClient
  1. Create a finance client:
client = BavestRestClient(apiKey)
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bavest-1.0.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bavest-1.0.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

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

Hashes for bavest-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5a02c97144070ee70d9a96de8d815074e7b57a49a9521b00db9162708ecdb653
MD5 44253823c935fe358d54aed9aa7235b7
BLAKE2b-256 95c19146d5be1120d9e90de4f630c31597ff879e9b96be40716754cf399eb4b9

See more details on using hashes here.

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

Hashes for bavest-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02ba4a97d826b2649349e8bae1f12da77120e6623e42ec9c523cf23099ced9e1
MD5 4d111f7c9939f1233584328b0cdb09ce
BLAKE2b-256 bcceb50071d3d80e708660c02ddd3788265907f894ad9c822a694abae2249e77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page