cached-polygon
v0.6.1
Published
Same as [@polygon.io/client-js](https://www.npmjs.com/package/@polygon.io/client-js), but with automatic caching of responses. If you make the same API call twice, the second time it will return the cached response.
Downloads
7
Readme
Cached Polygon
Same as @polygon.io/client-js, but with automatic caching of responses. If you make the same API call twice, the second time it will return the cached response.
Usage
Please check ./src/test.ts for examples.
Delay
The third parameter of the constructor is the delay in milliseconds. It is the time that we wait after each API call to polygon.io. This is to avoid hitting the rate limit. For free tier, we should set the delay to 12000 (12 seconds).