Commit b054f79
authored
Update README with more recent dates in examples (#75)
For free users, just getting started with the client, the REST response 404s, because historical data back to 2018 is unavailable. A quick update of the docs prevents users who are just beginning with the client from receiving the following error:
```sh
python sample.py
Traceback (most recent call last):
File "<PATH>/sample.py", line 14, in <module>
main()
File "<PATH>/sample.py", line 9, in main
resp = client.stocks_equities_daily_open_close("AAPL", "2018-03-02")
File "<PYTHON_PATH>/lib/python3.9/site-packages/polygon/rest/client.py", line 128, in stocks_equities_daily_open_close
return self._handle_response("StocksEquitiesDailyOpenCloseApiResponse", endpoint, query_params)
File "<PYTHON_PATH>/lib/python3.9/site-packages/polygon/rest/client.py", line 35, in _handle_response
resp.raise_for_status()
File "<PYTHON_PATH>/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.polygon.io/v1/open-close/AAPL/2018-03-02?apiKey=<REDACTED>
```1 parent 1509ddd commit b054f79
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments