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.0a2.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file async-polygon-0.0.0a2.tar.gz
.
File metadata
- Download URL: async-polygon-0.0.0a2.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 | 26994910eca7bad6b5b36f34cdea8ceb272e85fb42c196024b027afa9ef339aa |
|
MD5 | 6248c02712ef42c75cea078ba753193b |
|
BLAKE2b-256 | 551119a53b6f9e6939a9371ae5f448183fd6fbf078df384573464e602e576a1c |
File details
Details for the file async_polygon-0.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: async_polygon-0.0.0a2-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 | c5d60bfc6907e7b065c573ff345565db314dea38b68167cb04a996c69106097e |
|
MD5 | 9785b2d6e0d13f26a17e8c07a0866348 |
|
BLAKE2b-256 | 63c5399eedc3ef69af5c3a678cfecf95b4028ce5687b5cf3b403bf86ce6fd1a5 |