Skip to main content

A wrapper to the XigniteGlobalHistorical API

Project description

XigniteGH

GitHub Workflow Status PyPI GitHub last commit GitHub issues GitHub

Python module to get historical stock data from the XigniteGlobalHistorical API

XigniteGH is a wrapper to the XigniteGlobalHistorical API. This module implements a python interface to the API provided by Xignite. A token is required.

Install

To install the package use:

pip install xignitegh

Usage

import pandas as pd
from xignitegh import Xignite

xgh = Xignite(_token="TOKEN", _token_userid=USERID)

quotes = xgh.get_quotes(ticker="AAPL", years=1)
if quotes["Outcome"] == "Success":
    name = quotes["Security"]["Name"]

dividends = xgh.get_dividends(ticker="AAPL", years=1)
if dividends["Outcome"] == "Success":
    df = pd.json_normalize(dividends["CashDividends"])

The token may also be stored in the environment variable XIGNITE_TOKEN. The token userid is optional and used only with encrypted tokens.

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

xignitegh-0.2.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

xignitegh-0.2.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file xignitegh-0.2.1.tar.gz.

File metadata

  • Download URL: xignitegh-0.2.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for xignitegh-0.2.1.tar.gz
Algorithm Hash digest
SHA256 45bc1c04632586e54bf81989756bd2c7b03fc0c07fbb8d765d32e7099c25be7d
MD5 0b7154e6530b99ab782dbf571b04ab5f
BLAKE2b-256 ca8fb4f7d8ccfd2dd800a1ad5b287a2c77bda08b5bbba0ec437d2d98fa62cecd

See more details on using hashes here.

File details

Details for the file xignitegh-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: xignitegh-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for xignitegh-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc529cd1db05024189a43aa70431f317b8f6c384aa7e1b33db14ccf1ebfd1df7
MD5 ddcef663d7a28583d6d4bf2c1be80562
BLAKE2b-256 1fa6961ad97b820c2a5ab72e7c51f4674913f141154638c218c52ebc45f3ca92

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