finbrain-python 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- finbrain/aio/endpoints/house_trades.py +3 -3
- finbrain/aio/endpoints/screener.py +3 -2
- finbrain/aio/endpoints/senate_trades.py +3 -3
- finbrain/endpoints/house_trades.py +6 -6
- finbrain/endpoints/screener.py +3 -2
- finbrain/endpoints/senate_trades.py +6 -6
- {finbrain_python-0.2.8.dist-info → finbrain_python-0.2.9.dist-info}/METADATA +27 -7
- {finbrain_python-0.2.8.dist-info → finbrain_python-0.2.9.dist-info}/RECORD +11 -11
- {finbrain_python-0.2.8.dist-info → finbrain_python-0.2.9.dist-info}/WHEEL +1 -1
- {finbrain_python-0.2.8.dist-info → finbrain_python-0.2.9.dist-info}/licenses/LICENSE +0 -0
- {finbrain_python-0.2.8.dist-info → finbrain_python-0.2.9.dist-info}/top_level.txt +0 -0
|
@@ -41,9 +41,9 @@ class AsyncHouseTradesAPI:
|
|
|
41
41
|
bracket; ``amountFlag`` is ``"review"`` or ``"ambiguous"`` when the
|
|
42
42
|
amount could not be safely normalized (``None`` otherwise).
|
|
43
43
|
|
|
44
|
-
``disclosureDate`` and ``owner`` are
|
|
45
|
-
|
|
46
|
-
branch on newer pandas — use ``pandas.isna``).
|
|
44
|
+
``disclosureDate`` and ``owner`` are nullable; historical rows were
|
|
45
|
+
backfilled upstream, so missing values are rare but possible (``NaN``
|
|
46
|
+
in the DataFrame branch on newer pandas — use ``pandas.isna``).
|
|
47
47
|
|
|
48
48
|
``date_from``/``date_to`` bound the transaction date, not the
|
|
49
49
|
disclosure date.
|
|
@@ -114,7 +114,8 @@ class AsyncScreenerAPI:
|
|
|
114
114
|
``transactionType``, ``amount``, ``owner`` (beneficial owner of the
|
|
115
115
|
account: ``"SELF"``, ``"SP"``, ``"DC"``, ``"JT"``, or an account
|
|
116
116
|
code) and ``disclosureDate`` (the public disclosure date). ``owner``
|
|
117
|
-
and ``disclosureDate`` are
|
|
117
|
+
and ``disclosureDate`` are nullable, though rare — historical rows
|
|
118
|
+
were backfilled upstream.
|
|
118
119
|
"""
|
|
119
120
|
params = self._build_params(limit=limit)
|
|
120
121
|
return await self._get("screener/congress/house", params, as_dataframe)
|
|
@@ -135,7 +136,7 @@ class AsyncScreenerAPI:
|
|
|
135
136
|
account: ``"SELF"``, ``"SP"``, ``"DC"``, ``"JT"``, an account code,
|
|
136
137
|
or ``"UNKNOWN"`` for blank Senate filings) and ``disclosureDate``
|
|
137
138
|
(the public disclosure date). ``owner`` and ``disclosureDate`` are
|
|
138
|
-
|
|
139
|
+
nullable, though rare — historical rows were backfilled upstream.
|
|
139
140
|
"""
|
|
140
141
|
params = self._build_params(limit=limit)
|
|
141
142
|
return await self._get("screener/congress/senate", params, as_dataframe)
|
|
@@ -41,9 +41,9 @@ class AsyncSenateTradesAPI:
|
|
|
41
41
|
bracket; ``amountFlag`` is ``"review"`` or ``"ambiguous"`` when the
|
|
42
42
|
amount could not be safely normalized (``None`` otherwise).
|
|
43
43
|
|
|
44
|
-
``disclosureDate`` and ``owner`` are
|
|
45
|
-
|
|
46
|
-
branch on newer pandas — use ``pandas.isna``).
|
|
44
|
+
``disclosureDate`` and ``owner`` are nullable; historical rows were
|
|
45
|
+
backfilled upstream, so missing values are rare but possible (``NaN``
|
|
46
|
+
in the DataFrame branch on newer pandas — use ``pandas.isna``).
|
|
47
47
|
|
|
48
48
|
``date_from``/``date_to`` bound the transaction date, not the
|
|
49
49
|
disclosure date.
|
|
@@ -72,12 +72,12 @@ class HouseTradesAPI:
|
|
|
72
72
|
or ``"ambiguous"``; on all other rows ``amountRaw`` and
|
|
73
73
|
``amountFlag`` are ``None``.
|
|
74
74
|
|
|
75
|
-
``disclosureDate`` and ``owner`` are
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
``NaN`` depending on the
|
|
80
|
-
:func:`pandas.isna`.
|
|
75
|
+
``disclosureDate`` and ``owner`` are nullable; historical rows
|
|
76
|
+
were backfilled in place by the upstream pipeline, so missing
|
|
77
|
+
values are rare but possible. In the DataFrame branch ``date``
|
|
78
|
+
becomes the index and the remaining fields are columns whose
|
|
79
|
+
missing values read as ``None`` or ``NaN`` depending on the
|
|
80
|
+
pandas version — test them with :func:`pandas.isna`.
|
|
81
81
|
|
|
82
82
|
Notes
|
|
83
83
|
-----
|
finbrain/endpoints/screener.py
CHANGED
|
@@ -119,7 +119,8 @@ class ScreenerAPI:
|
|
|
119
119
|
``transactionType``, ``amount``, ``owner`` (beneficial owner of the
|
|
120
120
|
account: ``"SELF"``, ``"SP"``, ``"DC"``, ``"JT"``, or an account
|
|
121
121
|
code) and ``disclosureDate`` (the public disclosure date). ``owner``
|
|
122
|
-
and ``disclosureDate`` are
|
|
122
|
+
and ``disclosureDate`` are nullable, though rare — historical rows
|
|
123
|
+
were backfilled upstream.
|
|
123
124
|
"""
|
|
124
125
|
params = self._build_params(limit=limit)
|
|
125
126
|
return self._get("screener/congress/house", params, as_dataframe)
|
|
@@ -140,7 +141,7 @@ class ScreenerAPI:
|
|
|
140
141
|
account: ``"SELF"``, ``"SP"``, ``"DC"``, ``"JT"``, an account code,
|
|
141
142
|
or ``"UNKNOWN"`` for blank Senate filings) and ``disclosureDate``
|
|
142
143
|
(the public disclosure date). ``owner`` and ``disclosureDate`` are
|
|
143
|
-
|
|
144
|
+
nullable, though rare — historical rows were backfilled upstream.
|
|
144
145
|
"""
|
|
145
146
|
params = self._build_params(limit=limit)
|
|
146
147
|
return self._get("screener/congress/senate", params, as_dataframe)
|
|
@@ -71,12 +71,12 @@ class SenateTradesAPI:
|
|
|
71
71
|
or ``"ambiguous"``; on all other rows ``amountRaw`` and
|
|
72
72
|
``amountFlag`` are ``None``.
|
|
73
73
|
|
|
74
|
-
``disclosureDate`` and ``owner`` are
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
``NaN`` depending on the
|
|
79
|
-
:func:`pandas.isna`.
|
|
74
|
+
``disclosureDate`` and ``owner`` are nullable; historical rows
|
|
75
|
+
were backfilled in place by the upstream pipeline, so missing
|
|
76
|
+
values are rare but possible. In the DataFrame branch ``date``
|
|
77
|
+
becomes the index and the remaining fields are columns whose
|
|
78
|
+
missing values read as ``None`` or ``NaN`` depending on the
|
|
79
|
+
pandas version — test them with :func:`pandas.isna`.
|
|
80
80
|
|
|
81
81
|
Notes
|
|
82
82
|
-----
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: finbrain-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Official Python client for the FinBrain API
|
|
5
5
|
Author-email: Ahmet Salim Bilgin <ahmet@finbrain.tech>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -192,15 +192,35 @@ kept as filed. A filing with no usable amount at all reports `amount` as
|
|
|
192
192
|
column blank report `owner` as `UNKNOWN`; House filings that leave it blank
|
|
193
193
|
report `SELF`, per the House PTR-form instructions.
|
|
194
194
|
|
|
195
|
-
`disclosureDate` and `owner` are
|
|
196
|
-
the
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
`
|
|
200
|
-
|
|
195
|
+
`disclosureDate` and `owner` are nullable. Historical rows were backfilled
|
|
196
|
+
in place by the pipeline's reconcile upload, so nulls are rare — but code
|
|
197
|
+
should still handle them. With `as_dataframe=True`, `date` is the **index**
|
|
198
|
+
and the other fields are columns whose missing values read as `None` or
|
|
199
|
+
`NaN` depending on your pandas version — test them with `pandas.isna()`
|
|
200
|
+
rather than `is None`. Note that `.dropna()` on such a frame will discard
|
|
201
|
+
every row with any missing field — use `.dropna(subset=[...])`.
|
|
201
202
|
`disclosureDate` and `owner` are also present on
|
|
202
203
|
`fb.screener.congress_house()` and `fb.screener.congress_senate()` rows.
|
|
203
204
|
|
|
205
|
+
### Company identifier (`cik`)
|
|
206
|
+
|
|
207
|
+
Rows from the four SEC/government datasets — `fb.insider_transactions`,
|
|
208
|
+
`fb.government_contracts`, `fb.corporate_lobbying`, and `fb.patent_filings`
|
|
209
|
+
(ticker endpoints and their async equivalents) — carry `cik`, the SEC
|
|
210
|
+
**Central Index Key** of the company as of that record:
|
|
211
|
+
|
|
212
|
+
| Field | Meaning |
|
|
213
|
+
| ----- | ------------------------------------------------------------------------------------------- |
|
|
214
|
+
| `cik` | SEC Central Index Key of the company, as a 10-digit zero-padded string (`"0000320193"`) |
|
|
215
|
+
|
|
216
|
+
`cik` is a **string, not a number** — the leading zeros are part of the
|
|
217
|
+
identifier, so keep the column as text when loading into other tools. Rows
|
|
218
|
+
without an entity resolution (for example, records of companies absent from
|
|
219
|
+
the SEC's public company file) carry `null`; with `as_dataframe=True` the
|
|
220
|
+
column stays object-typed and missing values read as `None`. Use it to join
|
|
221
|
+
FinBrain rows to SEC-keyed datasets (EDGAR filings, financial statements,
|
|
222
|
+
13F holdings) or to your own security master.
|
|
223
|
+
|
|
204
224
|
`date_from` / `date_to` bound the **transaction** date, not the disclosure
|
|
205
225
|
date — a trade executed inside the window is returned even if it was disclosed
|
|
206
226
|
after `date_to`.
|
|
@@ -12,7 +12,7 @@ finbrain/aio/endpoints/app_ratings.py,sha256=QrJoLc7roTPRfInAEMwlr9vtxzruFJulGdB
|
|
|
12
12
|
finbrain/aio/endpoints/available.py,sha256=rQuffHowNF7FrVV5Ds-KE5iFjdz0I_vD7Qk2_zY2WLo,2315
|
|
13
13
|
finbrain/aio/endpoints/corporate_lobbying.py,sha256=4rILB9-W91n6v2UwOnlVeH-ulk4D8onamzdEJf--wko,1429
|
|
14
14
|
finbrain/aio/endpoints/government_contracts.py,sha256=-jKXMHWrdG-4PszBSTQpK-i4SHpVZufPDBABMDB56Gk,1540
|
|
15
|
-
finbrain/aio/endpoints/house_trades.py,sha256=
|
|
15
|
+
finbrain/aio/endpoints/house_trades.py,sha256=0z9F2KvG2Virbz0bDugxKYyh56NcG2EH0qqr3dO0Op4,2602
|
|
16
16
|
finbrain/aio/endpoints/insider_transactions.py,sha256=EBqHdvapYWvI53PM_sQy0caN2rbl7Qul4OmqzItMUR0,1437
|
|
17
17
|
finbrain/aio/endpoints/linkedin_data.py,sha256=ucnkyNc1waiFHLxas1onPhxh9Y7ekcI_gOfUJ5gu1hI,1469
|
|
18
18
|
finbrain/aio/endpoints/news.py,sha256=NJkcpoP8ngNsJdCzQab8yaXJzNe5ypYstzq3-mEHfqU,1446
|
|
@@ -21,8 +21,8 @@ finbrain/aio/endpoints/patent_filings.py,sha256=Wumihz2X7knKZNF36X9t0UJ8mk0ydg6H
|
|
|
21
21
|
finbrain/aio/endpoints/predictions.py,sha256=BrUSmqy0v7ngXyoE_UHgqdght8qtJ8IRxAhk_s9UeR0,1285
|
|
22
22
|
finbrain/aio/endpoints/recent.py,sha256=TSaAwf5w86O1plSmm4eg_gKSjSap2Z8rd2i7FAvgm90,2302
|
|
23
23
|
finbrain/aio/endpoints/reddit_mentions.py,sha256=P9ToZRaRN521RJ9W2J8cBCySUsNT47ROe-8TTdVtlqA,1508
|
|
24
|
-
finbrain/aio/endpoints/screener.py,sha256=
|
|
25
|
-
finbrain/aio/endpoints/senate_trades.py,sha256=
|
|
24
|
+
finbrain/aio/endpoints/screener.py,sha256=Uib06bYGlielrUC0sQfGZqExIe1lJ1galdq-t0yFyrQ,11158
|
|
25
|
+
finbrain/aio/endpoints/senate_trades.py,sha256=PVdp08M82fInANyUrLqrxvM8qY5QPisnN-THnORaexY,2602
|
|
26
26
|
finbrain/aio/endpoints/sentiments.py,sha256=BXFT0jr5j0MnB65MXGxZK36BJLXMTuggkFF9A9eenEQ,1532
|
|
27
27
|
finbrain/endpoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
finbrain/endpoints/_utils.py,sha256=wY8SKthpVernWlKwZfWoM8zZtQ3GS_hBQioH1Fk7RK4,1190
|
|
@@ -31,7 +31,7 @@ finbrain/endpoints/app_ratings.py,sha256=mbeKiJ87nNibnz9AT2kmH4fVFA4goEcld910abm
|
|
|
31
31
|
finbrain/endpoints/available.py,sha256=3cXjDK1qE38RHAfQ2C14oD7l7dR8mhDtUcva3LzlK5s,3911
|
|
32
32
|
finbrain/endpoints/corporate_lobbying.py,sha256=K4jFcgx2_PqxFSlSm2E0rxuunl7FjWEwk_S4nfjsMuw,2213
|
|
33
33
|
finbrain/endpoints/government_contracts.py,sha256=jb96byPNK32AsEQWgCHMU7kAue9BFC539TH10JGfY7I,2343
|
|
34
|
-
finbrain/endpoints/house_trades.py,sha256=
|
|
34
|
+
finbrain/endpoints/house_trades.py,sha256=AeNeA37xV0juZUZn95-Qr9fa0N0aNLDZuTtlR8fJQgc,4558
|
|
35
35
|
finbrain/endpoints/insider_transactions.py,sha256=TU6EsSHIeams4OLJ9s8BpNuXeBnWPHghlp4enqkEFe8,2244
|
|
36
36
|
finbrain/endpoints/linkedin_data.py,sha256=zcNboQ-Ejt_7Ncu3p9WCd-PsjEBFbojVaJZdkbaGT8Q,2215
|
|
37
37
|
finbrain/endpoints/news.py,sha256=q4aaEiunrUbl1FF0JZuX9__cZWxm2r1-B9x-c8g4Ia8,1913
|
|
@@ -40,11 +40,11 @@ finbrain/endpoints/patent_filings.py,sha256=496m-3lnGc3twMAdcIDOyMWs3KwHD2W8c_vz
|
|
|
40
40
|
finbrain/endpoints/predictions.py,sha256=og1RY68p4O71smogrx-M5FyGk8FVclBGP18BvttzbZk,2026
|
|
41
41
|
finbrain/endpoints/recent.py,sha256=7D36oVRJKF5hkR42y6M6CiEMYksuFleZou1v86SbEfA,3004
|
|
42
42
|
finbrain/endpoints/reddit_mentions.py,sha256=WiePVAyUbA0VpWOd22M2YTlDWOQITp8qUBraI29y6d4,2305
|
|
43
|
-
finbrain/endpoints/screener.py,sha256=
|
|
44
|
-
finbrain/endpoints/senate_trades.py,sha256=
|
|
43
|
+
finbrain/endpoints/screener.py,sha256=EPVy5F16rM9aQNVprnKcNhpyvH7Z_WkmweLilQQmZF4,11052
|
|
44
|
+
finbrain/endpoints/senate_trades.py,sha256=qtpuGe_M3dE2vVsol9R6bw1Xqt7XY2rHVrf6ElTc4wE,4484
|
|
45
45
|
finbrain/endpoints/sentiments.py,sha256=sGGPaxzGGFvMOaYv3VSCmnG7H9v7OVlX7Vsndct8jhA,2606
|
|
46
|
-
finbrain_python-0.2.
|
|
47
|
-
finbrain_python-0.2.
|
|
48
|
-
finbrain_python-0.2.
|
|
49
|
-
finbrain_python-0.2.
|
|
50
|
-
finbrain_python-0.2.
|
|
46
|
+
finbrain_python-0.2.9.dist-info/licenses/LICENSE,sha256=x71LjIUPbK7Y8YBulH_AXzEIX7BK90dgFL2zA6LBT-A,1069
|
|
47
|
+
finbrain_python-0.2.9.dist-info/METADATA,sha256=jBl7xSwK_fzu-MmKYZDkr0WSSy4-IMWhRp36csxk69E,21217
|
|
48
|
+
finbrain_python-0.2.9.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
49
|
+
finbrain_python-0.2.9.dist-info/top_level.txt,sha256=dCiQtTx3z2TtO_yQI6q3yODcdb-pABB-iEReJegVAv0,9
|
|
50
|
+
finbrain_python-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|