A python API for the polygon.io REST API that returns Pandas objects
Project description
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 Indexfetch_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/Callfetch_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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pdpolygonapi-0.0.2.tar.gz
.
File metadata
- Download URL: pdpolygonapi-0.0.2.tar.gz
- Upload date:
- Size: 981.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b68b61c2cd64ef0938109aec4dd6f67067c3c613a13a73b150c479958bdf76 |
|
MD5 | f1ff57d25af2d248b57300ae0d23bc81 |
|
BLAKE2b-256 | faae27b61801a9abb7d8621794442788ae680615e723ecfd6312170989f8bc54 |
File details
Details for the file pdpolygonapi-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pdpolygonapi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bac1edef8c035f658413f77f6ade1cdd0ac2c9486cd56afa79cb87094ae531c |
|
MD5 | d78fee291578cbc20a624864ce36486b |
|
BLAKE2b-256 | 7058c777f6bd9d516793d06e29bd8a649fc2b78f74586af3219df450b4bc28af |