Sample Code

Examples of how to use Polygon.io APIs

Polygon.io has several Open Source projects that you can use to easily interact with our financial data apis. We also provide client libraries for popular languages such as Python, Javascript, Kotlin, and PHP. We have an active community of developers, and our documentation page is updated frequently. Sign up for an account to access our free stock price API and get started with one of the libraries below.

python

Python

Client Library

A python client library for accessing Polygon's APIs.
javascript

JavaScript

Client Library

A javascript client library for accessing Polygon's APIs.
golang

GoLang

Client Library

A GoLang client library for accessing Polygon's APIs.
php

PHP

Client Library

A PHP client library for accessing Polygon's APIs.
kotlin

Kotlin

Client Library

A Kotlin client library for accessing Polygon's APIs.

WebSocket Examples

Sample Code

Examples of how to connect and use Polygon.io real-time WebSockets in different languages.

NodeJsGoLangC#Python