Skip to content

Add dividend and split ids #736

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

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 19 additions & 3 deletions .polygon/rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24328,7 +24328,7 @@
"operationId": "ListDividends",
"parameters": [
{
"description": "Return the dividends that contain this ticker.",
"description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc.",
"in": "query",
"name": "ticker",
"schema": {
Expand Down Expand Up @@ -24708,6 +24708,7 @@
"dividend_type": "CD",
"ex_dividend_date": "2021-11-05",
"frequency": 4,
"id": "E8e3c4f794613e9205e2f178a36c53fcc57cdabb55e1988c87b33f9e52e221444",
"pay_date": "2021-11-11",
"record_date": "2021-11-08",
"ticker": "AAPL"
Expand All @@ -24718,6 +24719,7 @@
"dividend_type": "CD",
"ex_dividend_date": "2021-08-06",
"frequency": 4,
"id": "E6436c5475706773f03490acf0b63fdb90b2c72bfeed329a6eb4afc080acd80ae",
"pay_date": "2021-08-12",
"record_date": "2021-08-09",
"ticker": "AAPL"
Expand Down Expand Up @@ -24806,6 +24808,10 @@
]
}
},
"id": {
"description": "The unique identifier of the dividend.",
"type": "string"
},
"pay_date": {
"description": "The date that the dividend is paid out.",
"type": "string"
Expand All @@ -24832,7 +24838,8 @@
"ex_dividend_date",
"frequency",
"cash_amount",
"dividend_type"
"dividend_type",
"id"
],
"type": "object",
"x-polygon-go-struct-tags": {
Expand Down Expand Up @@ -25841,12 +25848,14 @@
"results": [
{
"execution_date": "2020-08-31",
"id": "E36416cce743c3964c5da63e1ef1626c0aece30fb47302eea5a49c0055c04e8d0",
"split_from": 1,
"split_to": 4,
"ticker": "AAPL"
},
{
"execution_date": "2005-02-28",
"id": "E90a77bdf742661741ed7c8fc086415f0457c2816c45899d73aaa88bdc8ff6025",
"split_from": 1,
"split_to": 2,
"ticker": "AAPL"
Expand All @@ -25870,6 +25879,10 @@
"description": "The execution date of the stock split. On this date the stock split was applied.",
"type": "string"
},
"id": {
"description": "The unique identifier for this stock split.",
"type": "string"
},
"split_from": {
"description": "The second number in the split ratio.\n\nFor example: In a 2-for-1 split, split_from would be 1.",
"format": "float",
Expand All @@ -25887,7 +25900,10 @@
},
"required": [
"split_from",
"split_to"
"split_to",
"id",
"ticker",
"execution_date"
],
"type": "object"
},
Expand Down
1 change: 1 addition & 0 deletions polygon/rest/models/dividends.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@modelclass
class Dividend:
"Dividend contains data for a historical cash dividend, including the ticker symbol, declaration date, ex-dividend date, record date, pay date, frequency, and amount."
id: Optional[int] = None
cash_amount: Optional[float] = None
currency: Optional[str] = None
declaration_date: Optional[str] = None
Expand Down
1 change: 1 addition & 0 deletions polygon/rest/models/splits.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@modelclass
class Split:
"Split contains data for a historical stock split, including the ticker symbol, the execution date, and the factors of the split ratio."
id: Optional[int] = None
execution_date: Optional[str] = None
split_from: Optional[int] = None
split_to: Optional[int] = None
Expand Down
Loading