Skip to main content

APIs around Market Data Providers

Project description

Market Data Providers

Miscellaneous APIs around Market Data providers.

APIs

Currently only basic access to: https://eodhistoricaldata.com/ is implemented.

Build

This is built using Poetry.

# after checkout, within top-level checkout directory
poetry install

# To update dependencies, or after `poetry add ...`
poetry update

# to make sure we are using our virtual env's tooling (created
# automatically by poetry, much like conda env)
# We can, for example add ipython as a dev dependency, then shell into our
# env, only then will we get this install. Use `which ipython` to verify.
poetry shell

# To build distributable packages
poetry build

Publishing

To PyPi

Create PyPI account with a new token.

Add this to poetry's config:

poetry config pypi-token.pypi <my-token>

Simply publish:

poetry publish

To Local Repository

Once off only: Prepare Local Repository

See:

# Create location
LOCAL_REPO_FS=$HOME/.local/home-pypi
mkdir -p $LOCAL_REPO_FS
cd $LOCAL_REPO_FS

# Run pypi-server in local repo fs, unauthorised mode.
pypi-server -i 127.0.0.1 -v -P . -a . -p 9292 .

Add repository name to poetry config:

poetry config repositories.home-pypi http://localhost:9292/

Update pip configuration to use this extra index.

# ~/.pip/pip.conf -> https://pypi.org/project/pypiserver/#configuring-pip
# Add the following config

[global]
extra-index-url = http://localhost:9292/simple/

To publish to local repo:

# Publish distributable packages to local repo set-up with name above.
# Just press Enter when username asked, we don't have authentication on.
poetry publish --repository home-pypi

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

marketdataproviders-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

marketdataproviders-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file marketdataproviders-0.1.1.tar.gz.

File metadata

  • Download URL: marketdataproviders-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Darwin/20.6.0

File hashes

Hashes for marketdataproviders-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4d10e8cbbd1d5a3ff11e7247cc3970b05a2b7d308f934350a0022eb271eb6b3c
MD5 76559434eeb71cc73824fc75f1aae167
BLAKE2b-256 53d842dac91e1278f2a410ba94dee7a08f3fc5212ed8c65ddd78bedbef98e520

See more details on using hashes here.

File details

Details for the file marketdataproviders-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for marketdataproviders-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e323ce89a934f353db9305a9dda8a8b82b7449ee1c721ed1759b735f1be59b58
MD5 5114a83502fd1a35944cd3948d661adc
BLAKE2b-256 9390fb6f80e6970bf388ad71fa1697580e26f81f55e358f228af6a8e5c8623d5

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