Skip to main content

finra_api_queries

FINRA is the Financial Industry Regulatory Authority, which oversees US brokerages and exchanges such as the NYSE and NASDAQ. They ensure that brokers and dealers in US stock/debt markets are acting according to the laws and rules defined by the Securities and Exchange Commission (SEC) as well as by FINRA. Their API contains information about historical market activity, such as fixed income market activity, statistics such as the size of trades that major institutional investors make, and over-the-counter (OTC) trading activity. This information allows regulators as well as the public to understand market trading behavior.

The finra_api_queries package simplifies the querying of the FINRA Query API including more complex API calls. It also features functions that enable the time series data visualization of fixed income data, summarization of key market breadth data, and keyword filtering for stocks.

Installation

$ pip install finra_api_queries

How to Use

$ from finra_api_queries import finra_api_queries

Usage

  1. Obtain an API key and secret on the FINRA API website.
  2. Input the key and secret using the retrieve_api_token() function to generate the time-limited access token necessary to retrieve data from the API.
  3. Use the various functions to easily extract data sets from the FINRA Query API with a variety of parameters, visualize time series data, as well as filter and aggregate data in pandas data frames and Seaborn plots.
  4. Use API to glean time series-related and aggregated insights about fixed income activity and trading block activity.

This package features the following 7 functions:

  • retrieve_api_token
  • show_filterable_columns
  • retrieve_dataset
  • filter_market_participant
  • summarize_trading_breadth
  • visualize_market_sentiment
  • generate_market_participant_summary

readthedocs Package Documentation

https://finra-api-queries.readthedocs.io/en/latest/

https://test.pypi.org/project/finra-api-queries/

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

finra_api_queries was created by Cindy Chen. It is licensed under the terms of the MIT license.

Credits

finra_api_queries was created with cookiecutter and the py-pkgs-cookiecutter template.

Metadata

Release files for finra-api-queries 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finra-api-queries 1.2.1
File Size Uploaded Provenance Actions
finra_api_queries-1.2.1.tar.gz 11.3 kB Without provenance Details for finra_api_queries-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for finra-api-queries 1.2.1
File Interpreter ABI Platform Actions
finra_api_queries-1.2.1-py3-none-any.whl Python 3 none any Details for finra_api_queries-1.2.1-py3-none-any.whl

Total release size: 22.9 kB

Release files / finra_api_queries-1.2.1.tar.gz

Download URL finra_api_queries-1.2.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60ad2da0d0628216822d11d858f507d9b8c5fe1d1846c26ab924718566c6c609
BLAKE2b-256 checksum
How to use checksums
2836dc2c3fce80eaf5a6464e467faa23ef033bdfda97e06437c20d346742200e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.9.4 Windows/10

Release files / finra_api_queries-1.2.1-py3-none-any.whl

Download URL finra_api_queries-1.2.1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90b9d2fc67b0a6fcd6f92d2838dc77f317b203e5874002198b6edb5eb9f3a11c
BLAKE2b-256 checksum
How to use checksums
e8c01f2a9a1617f196479e20a90d1767e9630dbd71c2f204027677ddefe0d1af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.9.4 Windows/10

Security for finra-api-queries 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page