Skip to content

Commit 39152d1

Browse files
committed
docs
1 parent 649bf47 commit 39152d1

File tree

5 files changed

+164
-4
lines changed

5 files changed

+164
-4
lines changed

datamule/datamule/book/s3transfer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ def transfer_cached_urls_to_s3(urls, s3_credentials, max_workers=4, errors_json_
226226
def s3_transfer(datamule_bucket, s3_credentials, max_workers=4, errors_json_filename='s3_transfer_errors.json', retry_errors=3,
227227
force_daily=True, cik=None, submission_type=None, filing_date=None, datamule_api_key=None,accession_number=None):
228228

229-
if datamule_bucket == 'filings_sgml_r2':
230-
229+
if datamule_bucket in ['filings_sgml_r2','sec_filings_sgml_r2']:
231230

232231
if accession_number is not None:
233232
if any(param is not None for param in [cik, submission_type, filing_date]):

datamule/docs-rewrite/docs/datamule-python/examples/articles.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
- [Extracting html tables from SEC filings](https://medium.com/@jgfriedman99/extracting-html-tables-from-sec-filings-7cb14bcd5945)
77

88
## GitHub
9-
- [Downloading every 10-K MDA + applying Loughran McDonald](https://github.com/john-friedman/Every-10-K-MDA-01-01-1993-12-21-2025.)
9+
- [Downloading every 10-K MDA + applying Loughran McDonald](https://github.com/john-friedman/Every-10-K-MDA-01-01-1993-12-21-2025.)
10+
- [Getting SEC filings minutes faster](https://github.com/john-friedman/The-fastest-way-to-get-SEC-filings)
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
# Products
2+
3+
Some features of datamule require an api_key. See [products](datamule.xyz/product).
4+
5+
## SEC Filings SGML R2
6+
7+
Downloads SEC filings from the SGML archive.
8+
```
9+
from datamule import Portfolio
10+
11+
portfolio = Portfolio('meta')
12+
portfolio.download_submissions(ticker='META', submission_type='10-K', document_type='10-K', provider='datamule-sgml')
13+
```
14+
15+
Transfers SEC filings to your S3 storage.
16+
```
17+
from datamule import Book
18+
import os
19+
20+
book = Book()
21+
22+
book.s3_transfer(datamule_bucket='sec_filings_sgml_r2',s3_credentials=s3_credentials,force_daily=True,filing_date=('2025-09-03','2025-09-11'),
23+
max_workers=128,errors_json_filename='s3_transfer_errors.json',retry_errors=3)
24+
```
25+
26+
27+
## SEC Filings TAR R2
28+
29+
Downloads SEC filings from the TAR archive. Newer than the SGML archive, and generally 20x faster.
30+
```
31+
from datamule import Portfolio
32+
33+
portfolio = Portfolio('meta')
34+
portfolio.download_submissions(ticker='META', submission_type='10-K', document_type='10-K', provider='datamule-tar')
35+
```
36+
37+
Transfers SEC filings to your S3 storage. Not implemented yet.
38+
39+
```
40+
from datamule import Book
41+
import os
42+
43+
book = Book()
44+
45+
book.s3_transfer(datamule_bucket='sec_filings_tar_r2',s3_credentials=s3_credentials,force_daily=True,filing_date=('2025-09-03','2025-09-11'),
46+
max_workers=128,errors_json_filename='s3_transfer_errors.json',retry_errors=3)
47+
```
48+
49+
## SEC Filings Lookup MySQL
50+
51+
Query SEC Filing metadata.
52+
```
53+
from datamule import Sheet
54+
55+
sheet = Sheet('lookup')
56+
sheet.get_table('sec-filings-lookup',
57+
cik=320193,
58+
submissionType=['10-K', '10-Q'],
59+
filingDate=('2024-01-01', '2024-12-31'),
60+
containsXBRL=True,
61+
returnCols=['accessionNumber', 'cik', 'submissionType', 'filingDate', 'detectedTime'])
62+
```
63+
64+
## SEC Filings Websocket
65+
66+
Get notified of new SEC filings in real time.
67+
```
68+
from datamule import Portfolio
69+
70+
portfolio = Portfolio('newfilings')
71+
72+
def data_callback(data):
73+
for item in data:
74+
print(item)
75+
76+
stream_submissions(data_callback=data_callback)
77+
```
78+
79+
## SEC Filings Lookup S3
80+
81+
Not yet implemented.
82+
83+
## SEC Proxy Voting Records MySQL
84+
85+
Query proxy voting records.
86+
```
87+
from datamule import Sheet
88+
89+
sheet = Sheet('proxy')
90+
results = sheet.get_table('proxy-voting-records',
91+
cusip='037833100',
92+
meetingDate=('2024-01-01', '2024-12-31'),
93+
howVoted='For')
94+
print(results)
95+
```
96+
97+
## SEC Proxy Voting Records S3
98+
99+
Not yet implemented.
100+
101+
## SEC Institutional Holdings MySQL
102+
```
103+
from datamule import Sheet
104+
105+
sheet = Sheet('sheet')
106+
results = sheet.get_table('institutional-holdings',
107+
cusip='88160R101',
108+
sharesOrPrincipalAmount=('14000','14300')
109+
)
110+
print(results)
111+
```
112+
113+
## SEC Institutional Holdings S3
114+
115+
Not yet implemented.
116+
117+
## SEC Insider Transactions MySQL
118+
```
119+
from datamule import Sheet
120+
121+
sheet = Sheet('sheet')
122+
results = sheet.get_table('insider-transactions',
123+
table='signature',
124+
signatureDate='2004-01-08')
125+
126+
print(results)
127+
```
128+
129+
## SEC Insider Transactions S3
130+
131+
Not yet implemented.
132+
133+
## SEC XBRL S3
134+
135+
Not yet implemented.
136+
137+
## Simple XBRL S3
138+
139+
Not yet implemented.
140+
141+
## Fundamentals S3
142+
143+
Not yet implemented.
144+
145+
## Simple XBRL MySQL
146+
147+
```
148+
from datamule import Sheet
149+
150+
sheet = Sheet('sheet')
151+
results = sheet.get_table('simple-xbrl',
152+
accessionNumber=95017022000796)
153+
154+
print(results)
155+
```
156+
157+
## Fundamentals MySQL
158+
159+
Not yet implemented.

datamule/docs-rewrite/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ nav:
88
- Overview: datamule-python/index.md
99
- Examples:
1010
- Quickstart: datamule-python/examples/quickstart.md
11+
- Products: datamule-python/examples/products.md
1112
- Articles: datamule-python/examples/articles.md
1213
- Tesla Risk Factor Language Score: datamule-python/examples/tesla_risk_factor_language_score.md
1314
- Meta Risk Factor Semantic Drift: datamule-python/examples/meta_risk_factor_semantic_drift.md

datamule/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
setup(
3333
name="datamule",
3434
author="John Friedman",
35-
version="3.0.4",
35+
version="3.0.5",
3636
description="Work with SEC submissions at scale.",
3737
packages=find_packages(include=['datamule', 'datamule.*']),
3838
url="https://github.com/john-friedman/datamule-python",

0 commit comments

Comments
 (0)