Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock Historical standardization and UX improvements #5457

Merged
merged 39 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6fa1935
polygon add interval standard param
the-praxs Sep 20, 2023
c3674e9
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Sep 20, 2023
79d3267
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Sep 22, 2023
1382192
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Sep 27, 2023
1742ee0
attempt at standardization
the-praxs Sep 28, 2023
66ef28e
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 2, 2023
0d91c77
Alpha Vantage params standardization
the-praxs Oct 2, 2023
e2f8300
rename `get_intervals` and fixed bug for extracting wrong value
the-praxs Oct 2, 2023
b984e40
missed changing it in `extract_data`
the-praxs Oct 2, 2023
12c9245
linting
the-praxs Oct 3, 2023
260b7a6
polygon cleanup
the-praxs Oct 3, 2023
bbb7d01
modified `start_date` & `end_date` type to `datetime` from `dateType`
the-praxs Oct 5, 2023
0314996
standardized intrinio stock historical params
the-praxs Oct 5, 2023
0623fad
fixed yfinance
the-praxs Oct 5, 2023
54af0c9
linting
the-praxs Oct 5, 2023
113370c
revert start and end date to dateType from datetime
the-praxs Oct 6, 2023
27fb99d
fix alpha vantage
the-praxs Oct 6, 2023
1a18995
changed param
the-praxs Oct 8, 2023
63a0d52
fix intrinio infinite loop
the-praxs Oct 8, 2023
ce950c6
`validator` is `field_validator`
the-praxs Oct 9, 2023
3a833d3
revert time params and fixed intervals
the-praxs Oct 9, 2023
69fca47
`outputsize` alias set in `Field`
the-praxs Oct 9, 2023
2dbd589
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 9, 2023
0bf2eb4
set interval description using in-build dict
the-praxs Oct 9, 2023
56c0dbc
yfinance stock param standardization
the-praxs Oct 9, 2023
dfd7a6b
static
the-praxs Oct 9, 2023
401842a
intrinio cleanup
the-praxs Oct 9, 2023
07d3dfd
Polygon add api params as `PrivateAttr`
the-praxs Oct 9, 2023
ea7e8bd
modified yfinance params to `PrivateAttr`
the-praxs Oct 9, 2023
9df47c4
intrinio remove overriding date params
the-praxs Oct 9, 2023
eaece82
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 9, 2023
24abe27
fixed description for AV adjusted param
the-praxs Oct 9, 2023
d3ace37
fix alpha vantage intraday not working
the-praxs Oct 9, 2023
7237738
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 16, 2023
a0b201f
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 16, 2023
ff1014d
Merge branch 'feature/openbb-sdk-v4' into feature/stock-historical-ux
the-praxs Oct 16, 2023
f132fc2
re-record and pass unit tests
the-praxs Oct 16, 2023
f24dcbb
pass integration tests
the-praxs Oct 16, 2023
0ec0815
Update test
IgorWounds Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 51 additions & 53 deletions openbb_platform/extensions/stocks/integration/test_stocks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,152 +657,150 @@ def test_stocks_options_chains(params, headers):
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"interval": "1d",
"provider": "yfinance",
}
),
(
{
"period": "intraday",
"interval": "60min",
"adjusted": True,
"extended_hours": True,
"month": "2023-03",
"outputsize": "full",
"month": "2023-01",
"output_size": "full",
"provider": "alpha_vantage",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-02",
"interval": "1m",
}
),
(
{
"adjusted": True,
"extended_hours": False,
"output_size": "full",
"month": "2023-01",
"provider": "alpha_vantage",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"function_": "TIME_SERIES_INTRADAY",
"interval": "1d",
}
),
(
{
"interval": "1m",
"provider": "cboe",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-02",
"interval": "1m",
}
),
(
{
"interval": "1d",
"provider": "cboe",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"interval": "1d",
}
),
(
{
"interval": "1min",
"limit": "30",
"provider": "fmp",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-02",
"timeseries": 1,
"interval": "1m",
}
),
(
{
"interval": "1day",
"limit": "30",
"provider": "fmp",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"timeseries": 1,
"interval": "1d",
}
),
(
{
"timezone": "UTC",
"source": "realtime",
"interval_size": "30m",
"provider": "intrinio",
"symbol": "AAPL",
"start_date": "2023-10-10",
"end_date": "2023-10-12",
"start_time": time(5, 30, 0),
"end_time": time(12, 0, 0),
"provider": "intrinio",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-02",
"interval": "1m",
}
),
(
{
"timezone": "UTC",
"source": "realtime",
"interval_size": "60m",
"provider": "intrinio",
"symbol": "AAPL",
"start_date": "2023-10-10",
"end_date": "2023-10-12",
"start_time": time(5, 30, 0),
"end_time": time(12, 0, 0),
"provider": "intrinio",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"interval": "1d",
}
),
(
{
"multiplier": 1,
"timespan": "minute",
"sort": "desc",
"limit": 49999,
"adjusted": True,
"limit": "49999",
"adjusted": "True",
"provider": "polygon",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-04",
"end_date": "2023-01-02",
"interval": "1m",
}
),
(
{
"multiplier": 1,
"timespan": "day",
"sort": "desc",
"limit": 49999,
"adjusted": True,
"limit": "49999",
"adjusted": "True",
"provider": "polygon",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"interval": "1d",
}
),
(
{
"interval": "1d",
"period": "max",
"prepost": True,
"actions": True,
"auto_adjust": True,
"back_adjust": True,
"progress": True,
"prepost": False,
"include": True,
"adjusted": False,
"back_adjust": False,
"ignore_tz": True,
"rounding": True,
"repair": True,
"keepna": True,
"group_by": "column",
"provider": "yfinance",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-01-08",
"end_date": "2023-01-02",
"interval": "1m",
}
),
(
{
"interval": "1d",
"period": "max",
"prepost": True,
"actions": True,
"auto_adjust": True,
"back_adjust": True,
"progress": True,
"prepost": False,
"include": True,
"adjusted": False,
"back_adjust": False,
"ignore_tz": True,
"rounding": True,
"repair": True,
"keepna": True,
"group_by": "column",
"provider": "yfinance",
"symbol": "AAPL",
"start_date": "2023-01-01",
"end_date": "2023-06-06",
"interval": "1d",
}
),
],
Expand Down
Loading
Loading