This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socketio | |
sio = socketio.Client() | |
@sio.on('connect', namespace='/all-filings') | |
def on_connect(): | |
print("Connected to https://api.sec-api.io:3334/all-filings") | |
@sio.on('filing', namespace='/all-filings') | |
def on_filings(filing): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { streamApi } = require('sec-api'); | |
const client = streamApi.connect('YOUR_API_KEY'); | |
client.on('filing', (filing) => console.log(filing)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "3f1416b68de0b25cfaa0bf21842d3691", | |
"accessionNo": "0001185348-20-000015", | |
"cik": "1185348", | |
"ticker": "PRAA", | |
"companyName": "PRA GROUP INC", | |
"companyNameLong": "PRA GROUP INC (Filer)", | |
"formType": "8-K", | |
"description": "Form 8-K - Current report", | |
"filedAt": "2020-06-09T08:05:40-04:00", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total": { | |
"value": 10000, | |
"relation": "gte" | |
}, | |
"filings": [ | |
{ | |
"id": "9bb018bb35b26df92204a0afba52c30a", | |
"accessionNo": "0001437749-20-002201", | |
"cik": "924383", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sec_api import QueryApi | |
queryApi = QueryApi(api_key="YOUR_API_KEY") | |
query = { | |
"query": { "query_string": { | |
"query": "ticker:TSLA AND filedAt:[2020-01-01 TO 2020-12-31] AND formType:\"10-Q\"", | |
"time_zone": "America/New_York" | |
} }, | |
"from": "0", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST -H "Content-type: application/json" -d '{ | |
"query": { | |
"query_string": { | |
"query": "cik:320193 AND filedAt:{2016-01-01 TO 2016-12-31} AND formType:\"10-Q\"" | |
} | |
}, | |
"from": "0", | |
"size": "10", | |
"sort": [{ "filedAt": { "order": "desc" } }] | |
}' 'https://api.sec-api.io?token=YOUR_API_KEY' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"query_string": { | |
"query": "cik:320193 AND filedAt:{2016-01-01 TO 2016-12-31} AND formType:\"10-Q\"" | |
} | |
}, | |
"from": "0", | |
"size": "10", | |
"sort": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total": 3, | |
"filings": [ | |
{ | |
"cik": "320193", | |
"ticker": "AAPL", | |
"companyName": "APPLE INC", | |
"formType": "10-Q", | |
"filedAt": "2016-07-27", | |
"linkToTxt": "https://www.sec.gov/...16-017809.txt", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python-socketio[client] |
OlderNewer