|
| 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. |
0 commit comments