Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for async-polygon 0.0.0a3

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

Source distribution (sdist)

Source distribution for async-polygon 0.0.0a3
File Size Uploaded
async-polygon-0.0.0a3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for async-polygon 0.0.0a3
File Interpreter ABI Platform
async_polygon-0.0.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / async-polygon-0.0.0a3.tar.gz

Download URL async-polygon-0.0.0a3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8aed27703e5b21f6bb302987b296e4d6a3839f8aee68a1a62d65bfe5161f66cc
BLAKE2b-256 checksum
How to use checksums
b62e30b2d6a38ff7665932dfb4cc61852d8154007dcd6575382c21cead4ed035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release files / async_polygon-0.0.0a3-py3-none-any.whl

Download URL async_polygon-0.0.0a3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37deca637018c81fc6e0b36d64f4cdb5f893232d30b4cf5d8b8cae918b856007
BLAKE2b-256 checksum
How to use checksums
925b02825e9195aab9e6022d8091d7bc5f58b5bf60d7ac655d09a70848160a2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7
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