Async 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.0a3.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file async-polygon-0.0.0a3.tar.gz
.
File metadata
- Download URL: async-polygon-0.0.0a3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aed27703e5b21f6bb302987b296e4d6a3839f8aee68a1a62d65bfe5161f66cc |
|
MD5 | 82490306f6c7dabb9cf841f130a19e13 |
|
BLAKE2b-256 | b62e30b2d6a38ff7665932dfb4cc61852d8154007dcd6575382c21cead4ed035 |
File details
Details for the file async_polygon-0.0.0a3-py3-none-any.whl
.
File metadata
- Download URL: async_polygon-0.0.0a3-py3-none-any.whl
- Upload date:
- Size: 6.3 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 | 37deca637018c81fc6e0b36d64f4cdb5f893232d30b4cf5d8b8cae918b856007 |
|
MD5 | fbeb5eb2a7124641b584ec70815e0ca3 |
|
BLAKE2b-256 | 925b02825e9195aab9e6022d8091d7bc5f58b5bf60d7ac655d09a70848160a2f |