polygon-io / client-js

The official JS client library for the Polygon REST and WebSocket API.
MIT License
190 stars 59 forks source link

Add Universal Snapshot API Support [please do not merge] #161

Closed justinpolygon closed 1 year ago

justinpolygon commented 1 year ago

This PR introduces support for the new Universal Snapshot API. It includes the necessary interfaces and functions to make requests to this API along with an example code snipped. The changes allow users to retrieve universal snapshot data for specific tickers.

justinpolygon commented 1 year ago

@timetraveler328 mind having a look? I was able to get the demo script working but this is my first time adding a new endpoint so not sure what else is involved.

timetraveler328 commented 1 year ago

@justinpolygon Thanks for taking care of this! I pushed a few changes to move it into each asset class client instead of the reference client, but I couldn't push the changes up to your branch for some reason so I made a new PR #162