Skip to main content

Bar data manipulation utilities

Project description

Bar data utilities in Python

This package includes utilities and a plugin model to fetch and manipulate bar data for stocks and other financial series. This is work in progress.

Bar data is represented as a datafrane with a date timestamp index and open, high, low, close, volume columns all in lower case. Data for stocks prices is always assumed adjusted.

The main conventions are:

  • data sources are referenced by an opaque source parameter
  • flexible definition of frequencies with the freq parameter
  • maximum number of bars is indicated with the max_bars parameter
  • date range is optional with start_date and end_date parameters

Typical Usage

from bardata import get_tickers, get_prices

SOURCE = 'sample'
FREQ = 'daily'

tickers = get_tickers(source=SOURCE)

for ticker in tickers:
    prices = get_prices(ticker, freq=FREQ, source=SOURCE)
    ...

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bardata-0.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file bardata-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bardata-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for bardata-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0214cb4d1e8d1bcae729c2c47bdaf72f02d37878b8216660f846727a42c69ab7
MD5 24d1db783218e756cefe8e071fe2877f
BLAKE2b-256 1711299013dcfb1e7c68f6d0e6dc5af8f54a5503d3d7c7d39fc4381adf6c1e2c

See more details on using hashes here.

Supported by

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