[Enhancement] Standardize "X".price.historical Intervals and Params (#6146)

* FMP

* tiingo

* yfinance

* intrinio

* polygon

* fmp interval descriptions

* alpha_vantage

* update unit tests

* tests

* static files

* black

* black

* black again

* codespell

* codespell again

* futures historical

* ruff

* some more black

* pylint

* now black again

* test params

* skip deprecated

* fmp test cassette

* fix some tests

* fix test_query

* fix bad symbol in toolkit integration tests

* attempt at parameter deprecation warning

* Fix edge case

* test params

* more test params

* that's the ticket

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
This commit is contained in:
Danglewood
2024-03-08 08:31:38 -08:00
committed by GitHub
parent 8f3d3323e3
commit 8254bd5638
72 changed files with 3033 additions and 7705 deletions

View File

@@ -38,29 +38,11 @@ def test_crypto_search(params, obb):
[
(
{
"symbol": "BTCUSD",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
}
),
(
{
"interval": "1min",
"interval": "1d",
"provider": "fmp",
"symbol": "BTCUSD",
"start_date": "2023-01-01",
"end_date": "2023-01-02",
"timeseries": 1,
}
),
(
{
"interval": "15min",
"provider": "fmp",
"symbol": "BTCUSD",
"start_date": "2023-01-01",
"end_date": "2023-01-03",
"timeseries": 1,
}
),
(
@@ -88,7 +70,6 @@ def test_crypto_search(params, obb):
(
{
"interval": "1d",
"period": "max",
"provider": "yfinance",
"symbol": "BTCUSD",
"start_date": "2023-01-01",
@@ -98,8 +79,8 @@ def test_crypto_search(params, obb):
(
{
"provider": "tiingo",
"interval": "1day",
"exchanges": ["POLONIEX", "GDAX"],
"interval": "1d",
"exchanges": None,
"symbol": "BTCUSD",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
@@ -108,7 +89,7 @@ def test_crypto_search(params, obb):
(
{
"provider": "tiingo",
"interval": "1hour",
"interval": "1h",
"exchanges": ["POLONIEX", "GDAX"],
"symbol": "BTCUSD",
"start_date": "2023-01-01",