[BugFix] - Adds a timezone to the Unix timestamp conversion to correct localization errors. (#6023)

* fix: remove specific imports

* make polygon historical tz-aware

* undo including that commit

* that PR wasn't supposed to be there.

* pylint unused argument

* fix polygon crypto historical intervals

* pylint

* new cassette

* fix the rest of the polygon historical price query params

* black

* pylint..

* integration test param

* appease daylight savings handling

* paginate for crypto currency and index

* black

* raise EmptyDataError when no results instead of returning an empty list

* ruff

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
This commit is contained in:
Danglewood
2024-02-05 11:53:17 -08:00
committed by GitHub
parent 16f2bec65f
commit 7c953d5964
14 changed files with 377 additions and 192 deletions

View File

@@ -65,11 +65,9 @@ def test_crypto_search(params, obb):
),
(
{
"multiplier": 1,
"timespan": "minute",
"interval": "1m",
"sort": "desc",
"limit": 49999,
"adjusted": True,
"provider": "polygon",
"symbol": "BTCUSD",
"start_date": "2023-01-01",
@@ -78,11 +76,9 @@ def test_crypto_search(params, obb):
),
(
{
"multiplier": 1,
"timespan": "day",
"interval": "1d",
"sort": "desc",
"limit": 49999,
"adjusted": True,
"provider": "polygon",
"symbol": "BTCUSD",
"start_date": "2023-01-01",