Asynchronous Polygon Rest Api
Project description
async-polygon
This is an unofficial asynchronous version of Official Polygon Api(REST API)
Getting Started
Client example
import asyncio
from async_polygon import RestAsyncClient
async def main():
api_key = 'API KEY'
async with RestAsyncClient(api_key) as requestor:
requestor: RestAsyncClient
_from: str = '2022-03-29'
_to: str = '2022-04-26'
_timespan: str = 'hour'
data = await requestor.aggregate_bars('AAPL', 1, _timespan, _from, _to)
print(data)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
In near future I'll expand the functionality of the library
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
async-polygon-0.0.0a1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file async-polygon-0.0.0a1.tar.gz
.
File metadata
- Download URL: async-polygon-0.0.0a1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af8eef0b49c11f290071349ded0b3cdc006684677e49628caeedbf3b6167abb1 |
|
MD5 | 1f485244f0131c0d41d99522aba221df |
|
BLAKE2b-256 | 0f6d0d3f3809934959a45063b2b154973cd53902bf8f76d4a251264ee8ba0150 |
File details
Details for the file async_polygon-0.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: async_polygon-0.0.0a1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59f23ae1c77b3c9d4b3ce41a81008335c5185f3ebf018818e23497a7ae63632 |
|
MD5 | 9306394cf67fdf4948652de2f119727c |
|
BLAKE2b-256 | 2a2816c32e7bee07f053b0cadf59c45181362035581a6e6a85b1ed6d5d702637 |