Skip to main content

pdpolygonapi

Python API for Polygon.io returning Pandas Objects.

This package provides a class, PolygonApi that provides methods for accessing polygon.io's REST API and returning data in various Pandas objects (for example, DataFrames and/or Series).

This package is in no way endorsed by, nor associated with, polygon.io or its ownership.

Some of the methods include:

  • fetch_ohlcvdf() ... Returns a DataFrame containing OHLCV data with a Datetime Index
  • fetch_options_chain() ... Returns a DataFrame of all options for an underlying for a range of expiration dates. The DataFrame is Indexed by Expiration Date, Strike, and Put/Call
  • fetch_quotes() ... Returns Bid/Ask BidSize/AskSize data for a Ticker, with a Datetime Index

For more detailed information see the apiPolygon jupyter notebook in the examples folder.


NOTE: It is strongly recommended that you store your Polygon.io APIKEY in an ENVIRONMENT VARIABLE on
      your local machine, and pass the NAME of the ENVIRONMENT VARIABLE into the class constructor.

      (Alternatively you can pass your APIKEY directly into the class constructor, but for security
       reasons this is not recommended.  At any rate, AVOID putting your APIKEY into your code).

See examples/apiPolygon.ipynb


Copyright 2023, Daniel Goldfarb, dgoldfarb.github@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this package and its associated files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 A copy of the License may also be found in the pdpolygon package repository.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pdpolygonapi 0.0.2

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

Source distribution (sdist)

Source distribution for pdpolygonapi 0.0.2
File Size Uploaded Provenance
pdpolygonapi-0.0.2.tar.gz 981.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pdpolygonapi 0.0.2
File Interpreter ABI Platform
pdpolygonapi-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 996.4 kB

Release files / pdpolygonapi-0.0.2.tar.gz

Download URL pdpolygonapi-0.0.2.tar.gz
Size 981.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c5b68b61c2cd64ef0938109aec4dd6f67067c3c613a13a73b150c479958bdf76
BLAKE2b-256 checksum
How to use checksums
faae27b61801a9abb7d8621794442788ae680615e723ecfd6312170989f8bc54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / pdpolygonapi-0.0.2-py3-none-any.whl

Download URL pdpolygonapi-0.0.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bac1edef8c035f658413f77f6ade1cdd0ac2c9486cd56afa79cb87094ae531c
BLAKE2b-256 checksum
How to use checksums
7058c777f6bd9d516793d06e29bd8a649fc2b78f74586af3219df450b4bc28af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for pdpolygonapi 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 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