Skip to main content

Interact with the Quantel Finance API

Project description

Official Python Library for the Quantel Finance API

Build Status CodeFactor Coverage Downloads


Website: quantel.io

Documentation: quantel.io/docs/python

Blog Posts: The Most Powerful Python Finance Library You’ve Never Heard Of

Source Code: ratherbland/Quantel

Get API Key: links.quantel.io/getstarted

Table of Contents

Overview

Quantel is a powerful financial data and insights API. It provides easy access to world-class financial information. Quantel goes beyond just financial statements, giving users valuable information like insider transactions, major shareholder transactions, share ownership, peers, and so much more.

Some features of Quantel:

  • Fast: Data is retrieved through API endpoints instead of web scraping. Additionally, asynchronous requests can be utilized with simple configuration
  • Simple: Data for multiple symbols can be retrieved with simple one-liners
  • Lightweight: Minimal reliance on third party packages
  • Powerful: 40+ years of historical financial data for almost 25k thousand companies across the globe

Support For Major Exchanges.

Americas

  • NASDAQ
  • New York Stock Exchange (NYSE)
  • Toronto Stock Exchange (TSX)

Asia Pacific

  • Australian Stock Exchange (ASX)
  • Hong Kong Stock Exchange (HKEX)
  • National Indian Stock Exchange (NSE)

Europe

  • German Electronic Exchange (XETRA)
  • EuroNext (ENX)
  • London Stock Exchange (LSE)
  • Moscow Stock Exchange (MOEX)
  • Oslo Stock Exchange (OSE)
  • Swiss Stock Exchange (SIX)

Setup

Requirements

Python 3.6+

  • Requests - The elegant and simple HTTP library for Python, built for human beings.
  • Aiohttp - Asynchronous HTTP Client/Server for asyncio and Python.

Installation

pip install quantel

Examples

Basic Example

from quantel import Quantel

# Authenticate with the API
qt = Quantel(api_key="<quantel-api-key>")

# Instantiate the ticker class
goog = qt.ticker('goog')

# Retrieve company profile
goog.profile()

Multiple Symbol Example

The ticker class also makes it easy to retrieve data for a list of symbols with the same API. Simply pass a list of symbols as the argument to the ticker class.

from quantel import Quantel

qt = Quantel(api_key="<quantel-api-key>")

symbols = ['fb', 'aapl', 'amzn', 'nflx', 'goog']

faang = qt.ticker(symbols)

faang.profile()

International Example

Quantel supports the majority of international exchanges. Read more about what data is supported by which exchanges at quantel.io/docs/

from quantel import Quantel

qt = Quantel(api_key="<quantel-api-key>")

symbols = ['DHER.DE', 'CBA.AX', 'DNB.OL', 'NESN.SW', 'ULVR.L', 'SHOP.TO', 'EDF.PA', ' RELIANCE.NS']

international = qt.ticker(symbols)

international.balance_sheet()

Asynchronous Example

It really is that simple. Set asynchronous=True when instantiating the ticker class.

from quantel import Quantel

qt = Quantel(api_key="<quantel-api-key>")

goog = qt.ticker('goog', asynchronous=True)

goog.profile()

License

This project is licensed under the terms of the MIT license.

Contact

Questions can be raised directly via guy@quantel.io

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

quantel-0.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

quantel-0.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file quantel-0.4.tar.gz.

File metadata

  • Download URL: quantel-0.4.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1

File hashes

Hashes for quantel-0.4.tar.gz
Algorithm Hash digest
SHA256 826b70826e161de1a29708292676014399c85dc288308de554a7f2a22665e4e2
MD5 f7938f72d244816d8d2bb526fdd019f2
BLAKE2b-256 9910b29cdd1e2dbd323e572f6d5a305cbea47b5f585563247dac82a55be6b4f5

See more details on using hashes here.

File details

Details for the file quantel-0.4-py3-none-any.whl.

File metadata

  • Download URL: quantel-0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1

File hashes

Hashes for quantel-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccd144438d0c787a57526c9986d1b5425bec978d6c4fba9dcc0abbed236db34
MD5 05988adc75dd28564030307cd0413fa5
BLAKE2b-256 ed3b415746ec3cc0cc7cc91ed9c6afac215a469501071ccd7265727451b55778

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