mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 07:51:49 +00:00
[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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user