Skip to main content

This package allows access to data provided by Quantitative Global.

Project description

Quantitative Global - v1 API

This package allows access to data provided by Quantitative Global Indices.

Installation

Use the package manager pip to install quantglobal.

pip install quantglobal

Usage

import QuantGlobal as qg
data = qg.download(key, strategy, underlying, from_date, **end_date)

Valid parameters

  • key
    • the email address associated with your account (e.g., 'your_address@ email.com')
  • strategy
    • 'dca' (Dual Class Arbitrage)
    • 'pt' (Pairs Trading)
    • 'pt_extended' (Pairs Trading w/ Extended Data)
  • underlying
    • For Dual Class Arbitrage ('dca'), the valid underlying parameters are:
      • 'google','zillow','fox','news'
    • For Pairs Trading (both 'pt' and 'pt_extended'), the valid underlying parameters are:
      • 'communications','consumer_discretionary','consumer_staples','energy','financials','healthcare','industrials','basic_materials','technology','utilities'
  • from_date / end_date (optional)
    • date in YYYY-mm-dd format

Sample Request

import QuantGlobal as qg
data = qg.download(key = 'authenticated_user@email.com', strategy = 'dca', underlying = 'google', from_date = '2022-11-25')

Output:

datetime GOOG Cumulative Returns GOOGL Cumulative Returns Spread GOOG Intraday Performance GOOGL Intraday Performance
2022-11-25 09:30:00 100 100 0 0.00% 0.00%
2022-11-25 09:31:00 100.08 100.13 0.05 0.08% 0.13%
2022-11-25 09:32:00 100.24 100.27 0.03 0.24% 0.27%

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

quantglobal-0.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

quantglobal-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file quantglobal-0.0.3.tar.gz.

File metadata

  • Download URL: quantglobal-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for quantglobal-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d445fcd29e27ab2136629f911e9e3f302e9635eb06a050ad12e3710a6068dfa
MD5 c601c9503abd2a4ecff4b29d5b4dae33
BLAKE2b-256 b644cfa70bbf4380cb447b26b6ce34fefcaaf5de6e0d07a071208762c8be9301

See more details on using hashes here.

File details

Details for the file quantglobal-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: quantglobal-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for quantglobal-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a9cb2fc8539b083d19669d795af6c8d47079136e3a1dcd977aaed5405a9c974e
MD5 5440b7af5de096b347892dc67140faf2
BLAKE2b-256 f999d82bdbd89cb7dbd74849b24aedb5523ab0f1dd0fd52e1b72d07dffae02f8

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