Seprate Intrinio financials data tags into a different command (#5723)

* add `ebit` field in income statement standard model

* only add required data tags

* remove calculations data

* use `name` key instead of `tag` key

* set `period` as required in data

* remove `period` and `cik` from provider models

* add `equity/fundamental/search_financial_attributes` with tests

* clean descriptions file

* add `equity/fundamental/financial_attributes` with tests

* set `value` as `Optional`
This commit is contained in:
Pratyush Shukla
2023-11-15 03:29:49 +05:30
committed by GitHub
parent 139efd31ab
commit 68965c4cec
18 changed files with 505 additions and 43 deletions

View File

@@ -894,7 +894,7 @@ def test_equity_news(params, obb):
@pytest.mark.parametrize(
"params",
[
({"symbol": "AAPL", "limit": 100}),
({"symbol": "AAPL", "limit": 100, "provider": "fmp"}),
],
)
@pytest.mark.integration
@@ -905,6 +905,46 @@ def test_equity_fundamental_multiples(params, obb):
assert len(result.results) > 0
@pytest.mark.parametrize(
"params",
[
({"query": "ebit", "limit": 100, "provider": "intrinio"}),
],
)
@pytest.mark.integration
def test_equity_fundamental_search_financial_attributes(params, obb):
result = obb.equity.fundamental.search_financial_attributes(**params)
assert result
assert isinstance(result, OBBject)
assert len(result.results) > 0
@pytest.mark.parametrize(
"params",
[
(
{
"provider": "intrinio",
"symbol": "AAPL",
"tag": "ebit",
"period": "annual",
"limit": 1000,
"type": None,
"start_date": "2013-01-01",
"end_date": "2023-01-01",
"sort": "desc",
}
),
],
)
@pytest.mark.integration
def test_equity_fundamental_financial_attributes(params, obb):
result = obb.equity.fundamental.financial_attributes(**params)
assert result
assert isinstance(result, OBBject)
assert len(result.results) > 0
@pytest.mark.parametrize(
"params",
[