polygon-io / client-python

The official Python client library for the Polygon REST and WebSocket API.
https://polygon-api-client.readthedocs.io/
MIT License
801 stars 210 forks source link

Fix example to have correct params #700

Closed justinpolygon closed 3 months ago

justinpolygon commented 3 months ago

Fixed the example to have the correct params. You cannot pass date eq (timestamp=) with a less than (timestamp.lt=). It needs to be either or.

polygon.exceptions.BadResponse: {"status":"ERROR","request_id":"71f9a7ec439a46e7884c38c893daddcc","error":"failed to parse timestamp query params: query parameters cannot have the combination of equal and any other param gt, gte, lt, lte"}

Fixed the example to just pass the date.