mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 21:42:22 +00:00
[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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user