summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanglewood <85772166+deeleeramone@users.noreply.github.com>2024-05-17 18:36:46 -0700
committerDanglewood <85772166+deeleeramone@users.noreply.github.com>2024-05-17 18:36:46 -0700
commit7cb81db5cf4ff38d7bb393771aae7de3684d9647 (patch)
tree1a495e845b0ca0d81f30efae0b795a98ed26ac61
parent68d43cceaf3fde7f8cb2a026919a8406db41322b (diff)
fmp insider trading
-rw-r--r--openbb_platform/openbb/assets/reference.json2
-rw-r--r--openbb_platform/openbb/package/equity_ownership.py2
-rw-r--r--openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py2
-rw-r--r--openbb_platform/providers/fmp/openbb_fmp/utils/definitions.py1
4 files changed, 3 insertions, 4 deletions
diff --git a/openbb_platform/openbb/assets/reference.json b/openbb_platform/openbb/assets/reference.json
index 80ae29f6fd9..d668796f81c 100644
--- a/openbb_platform/openbb/assets/reference.json
+++ b/openbb_platform/openbb/assets/reference.json
@@ -19741,7 +19741,7 @@
"fmp": [
{
"name": "transaction_type",
- "type": "Literal[None, 'award', 'conversion', 'return', 'expire_short', 'in_kind', 'gift', 'expire_long', 'discretionary', 'other', 'small', 'exempt', 'otm', 'purchase', 'sale', 'tender', 'will', 'itm', 'trust']",
+ "type": "Literal['award', 'conversion', 'return', 'expire_short', 'in_kind', 'gift', 'expire_long', 'discretionary', 'other', 'small', 'exempt', 'otm', 'purchase', 'sale', 'tender', 'will', 'itm', 'trust']",
"description": "Type of the transaction.",
"default": null,
"optional": true,
diff --git a/openbb_platform/openbb/package/equity_ownership.py b/openbb_platform/openbb/package/equity_ownership.py
index c9806627f8e..e52db83d08b 100644
--- a/openbb_platform/openbb/package/equity_ownership.py
+++ b/openbb_platform/openbb/package/equity_ownership.py
@@ -176,7 +176,7 @@ class ROUTER_equity_ownership(Container):
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
- transaction_type : Literal[None, 'award', 'conversion', 'return', 'expire_short', 'in_kind', 'gift', 'expire_long', 'discretionary', 'other', 'small', 'exempt', 'otm', 'purchase', 'sale', 'tender', 'will', 'itm', 'trust']
+ transaction_type : Optional[Literal['award', 'conversion', 'return', 'expire_short', 'in_kind', 'gift', 'expire_long', 'discretionary', 'other', 'small', 'exempt', 'otm', 'purchase', 'sale', 'tender', 'will', 'itm', 'trust']]
Type of the transaction. (provider: fmp)
start_date : Optional[datetime.date]
Start date of the data, in YYYY-MM-DD format. (provider: intrinio)
diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py b/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py
index f907b821c84..3a2ba81f38b 100644
--- a/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py
+++ b/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py
@@ -19,7 +19,7 @@ class FMPInsiderTradingQueryParams(InsiderTradingQueryParams):
Source: https://site.financialmodelingprep.com/developer/docs/#Stock-Insider-Trading
"""
- transaction_type: TRANSACTION_TYPES = Field(
+ transaction_type: Optional[TRANSACTION_TYPES] = Field(
default=None,
description="Type of the transaction.",
alias="transactionType",
diff --git a/openbb_platform/providers/fmp/openbb_fmp/utils/definitions.py b/openbb_platform/providers/fmp/openbb_fmp/utils/definitions.py
index 8711e4e4bad..a558197a5ee 100644
--- a/openbb_platform/providers/fmp/openbb_fmp/utils/definitions.py
+++ b/openbb_platform/providers/fmp/openbb_fmp/utils/definitions.py
@@ -142,7 +142,6 @@ MARKETS = Literal[
]
TRANSACTION_TYPES = Literal[
- None,
"award",
"conversion",
"return",