You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add batch metadata retrieval example to README
Add concise documentation for get_filing_metadatas_batch() method:
- Shows example with multiple accession numbers
- Highlights optimization (2 API calls for 3 filings)
- Explains use case clearly without bloat
Updated both index.ipynb notebook and README.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: nbs/index.ipynb
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -315,6 +315,30 @@
315
315
"```"
316
316
]
317
317
},
318
+
{
319
+
"cell_type": "markdown",
320
+
"metadata": {},
321
+
"source": [
322
+
"Efficiently retrieve metadata for multiple specific accession numbers:\n",
323
+
"\n",
324
+
"Useful when you've downloaded filings in bulk and want metadata for specific accession numbers without making individual requests or fetching all filings for each company."
325
+
]
326
+
},
327
+
{
328
+
"cell_type": "code",
329
+
"execution_count": null,
330
+
"metadata": {},
331
+
"outputs": [],
332
+
"source": [
333
+
"# Groups by CIK - makes only 2 API calls (one for AAPL, one for MSFT)\n",
334
+
"metadatas = dl.get_filing_metadatas_batch([\n",
335
+
"\"AAPL/0000320193-23-000077\",\n",
336
+
"\"AAPL/0000320193-24-000123\",\n",
337
+
"\"MSFT/0000950170-24-087843\",\n",
338
+
"])\n",
339
+
"print(f\"Retrieved {len(metadatas)} filings with {len(set(m.cik for m in metadatas))} API calls\")"
0 commit comments