invinite-data-api
Typed Python client for the Invinite Data API /v1 at
api.data.invinite.com — instruments (stocks, ETFs, closed-end funds, ETNs), companies, funds
and their holdings, standardized and as-reported financials, metrics, SEC filings and documents,
holders (13F, N-PORT, issuer files), insider trades, IPOs, earnings events and
transcripts, guidance, investor documents and news. It is generated from the API's own
OpenAPI document, so its request and response models match the
reference.
The client is built on urllib3 + pydantic, needs Python 3.9+, and imports as
invinite_data_api.
Install
pip install invinite-data-api
Authentication
Create a Configuration with your invd_ Data API key (or an Invinite Data OAuth
access token) as the access token. The client sends it as an
Authorization: Bearer <token> header on every request.
import os
import invinite_data_api
config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])
Quickstart
import os
import invinite_data_api
from invinite_data_api import CompaniesApi
config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])
with invinite_data_api.ApiClient(config) as client:
api = CompaniesApi(client)
page = api.list_companies(q="NVDA", limit=5)
for company in page.data:
print(company.ticker, company.name, company.cik)
nvidia = api.get_company(company="NVDA")
Every API class is named after a docs group (CompaniesApi, FinancialsApi,
FilingsApi, EventsApi, …) and every method after the operation's verb-first
operationId in snake_case (list_filings, get_company). Arguments keep the wire's
snake_case names; a range filter's dot becomes _ (filed_at_gte for filed_at.gte)
and a Python keyword gets a var_ prefix. A company family takes company (a ticker or
a CIK of an operating company, or a comma list of up to 50); the families every listed
security has (filings, dividends, splits, holders) take symbol (any instrument). Date
parameters take a datetime.date.
Instruments, companies and funds
Every exchange-traded US symbol is an instrument with a type (stock, etf,
closed_end_fund, etn) and datasets, the data families served for it. A stock
belongs to a company (CompaniesApi); an ETF or closed-end fund is a fund (FundsApi,
with its structure: registered_fund, or exchange_traded_trust for GLD-type ETFs
without a holdings report); an ETN is an instrument only. Ask the instrument first when
you do not know what a symbol is:
import os
import invinite_data_api
from invinite_data_api import FundsApi, InstrumentsApi
config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])
with invinite_data_api.ApiClient(config) as client:
tqqq = InstrumentsApi(client).get_instrument(symbol="TQQQ")
print(tqqq.type, tqqq.structure, tqqq.fund.fund_key if tqqq.fund else None, ", ".join(tqqq.datasets))
List ETFs (or closed-end funds with type="closed_end_fund"):
with invinite_data_api.ApiClient(config) as client:
for fund in FundsApi(client).list_funds(type="etf", exchange="XNAS", limit=25).data:
print(fund.symbol, fund.name, fund.structure, fund.net_assets_usd)
A fund's holdings come from the freshest source, always named in meta and on every row
(the issuer's daily / monthly file, else the fund's latest N-PORT report):
with invinite_data_api.ApiClient(config) as client:
page = FundsApi(client).list_fund_positions(fund="SPY", limit=10)
print(page.meta.source, page.meta.as_of)
for position in page.data:
print(position.security.name, position.security.symbol, position.weight_pct)
Who holds a stock or a fund is HoldersApi.list_holders(symbol=…, source=…) (13f,
nport, issuer_file; without source an overview with one section per source).
An earnings event and its filings
Every event names its two SEC filings: results_filing (the earnings 8-K / 6-K) and
periodic_report (the 10-Q / 10-K of the event's fiscal period), each with
edgar_index_url, or None while unknown:
from invinite_data_api import EventsApi
with invinite_data_api.ApiClient(config) as client:
api = EventsApi(client)
page = api.list_events(company="AAPL", fiscal_year=2026, fiscal_quarter=4)
event = api.get_event(event_id=page.data[0].event_id)
if event.results_filing:
print(event.results_filing.accession, event.results_filing.form)
if event.periodic_report:
print(event.periodic_report.form, event.periodic_report.period_end, event.periodic_report.edgar_index_url)
Speaker images
Every person and participation carries image_url (a permanent public URL: a photo, else
the company or firm logo) and image_kind (photo, company_logo, firm_logo); both are
None while no image is known or speaker images are not yet published. Draw initials then:
from invinite_data_api import CompaniesApi
with invinite_data_api.ApiClient(config) as client:
for person in CompaniesApi(client).list_people(company="AAPL", limit=10).data:
initials = "".join(part[0] for part in person.name.split()[:2])
print(person.name, person.image_url or initials)
Lists, cursors and the pager
Every list answers ONE envelope: data, has_more, next_cursor, meta. Pass
next_cursor back as cursor with the SAME filters (changed filters answer
400 cursor_mismatch) until has_more is false — or let the pager do it:
from invinite_data_api import FilingsApi
from invinite_data_api.pagination import iterate_items, iterate_pages
with invinite_data_api.ApiClient(config) as client:
api = FilingsApi(client)
for filing in iterate_items(api.list_filings, symbol="AAPL", form="10-K", limit=100):
print(filing.accession, filing.form, filing.filed_at)
for page in iterate_pages(api.list_filings, symbol="AAPL", max_pages=3):
print(len(page.data), page.meta.coverage.state if page.meta.coverage else None)
Each page is one billed call. meta.coverage.state is pending / partial /
complete: a scope the store is still filling answers 200 with data: [] and
pending, never an error.
Reading credits
Each call reports what it cost in the X-Credits-Charged and X-Credits-Remaining
response headers. Every method has a …_with_http_info twin that returns the headers
beside the parsed value. response.headers is a plain dict keyed as the server sent the
names, so look them up case-insensitively:
response = api.list_filings_with_http_info(symbol="AAPL")
headers = {name.lower(): value for name, value in response.headers.items()}
print(headers["x-credits-charged"])
print(headers["x-credits-remaining"])
page = response.data
Error handling
On a non-2xx response the client raises ApiException (with per-status subclasses).
The body is an RFC 9457 application/problem+json document with a stable code
(not_covered, invalid_parameter, cursor_mismatch, rate_limited, …), a detail
(what happened), a remedy (what to do next, one sentence) and a request_id.
as_api_error turns the exception into an InviniteApiError (an ApiException) with
status, code, detail, remedy, param, errors, request_id, docs_url,
retry_after_ms (the Retry-After header of a 429 / 503) and the parsed problem;
it returns None for anything that is not a problem answer.
from invinite_data_api.exceptions import ApiException
from invinite_data_api.errors import as_api_error
try:
api.list_filings(symbol="AAPL", limit=500)
except ApiException as exc:
problem = as_api_error(exc)
if problem is None:
raise
print(problem.detail) # limit: must be <= 200.
print(problem.remedy) # Pass a limit of at most 200, or walk the pages with next_cursor.
Verifying alert webhooks
Alert deliveries are signed per Standard Webhooks with the
destination's whsec_… secret. verify_webhook checks the webhook-id / webhook-timestamp /
webhook-signature headers (5-minute tolerance, every v1, signature of a rotation, standard
library only) and returns the parsed event; anything else raises WebhookVerificationError.
Pass the RAW body, never a re-serialised object. A list of secrets is accepted (your own rotation).
from invinite_data_api.webhooks import WebhookVerificationError, verify_webhook
try:
event = verify_webhook(request.get_data(), request.headers, os.environ["INVINITE_WEBHOOK_SECRET"])
except WebhookVerificationError:
abort(400)
if event["type"] == "alert.fired":
print(event["data"]["reason"]["summary"])
Managing alerts and destinations is in the client too (AlertsApi, AlertEventsApi,
DestinationsApi): alerts docs.
End users (alerts for your own customers)
Alerts you create for your customers name them in external_user_id. Each id is an end user
with its own limits (max_active_alerts, max_script_alerts, max_fires_per_day; unset = the
account default, else none), a pause switch and erasure. A create beyond a limit answers 403 alert_user_limit_reached; validate_only=True runs every check of a create and writes nothing.
import os
import invinite_data_api
from invinite_data_api import (
AccountApi,
AlertUsersApi,
AlertsApi,
CreateAlertRequest,
UpdateAlertUserDefaultsRequest,
UpdateAlertUserRequest,
)
config = invinite_data_api.Configuration(access_token=os.environ["INVINITE_DATA_API_KEY"])
with invinite_data_api.ApiClient(config) as client:
users = AlertUsersApi(client)
# Every end user without its own value may hold 10 alerts.
AccountApi(client).update_alert_user_defaults(UpdateAlertUserDefaultsRequest(max_active_alerts=10))
# This one gets 50 and at most 20 fires a day.
users.update_alert_user("user_8812", UpdateAlertUserRequest(max_active_alerts=50, max_fires_per_day=20))
# Would this create pass? Nothing is written; a refusal raises like a real create.
AlertsApi(client).create_alert(
CreateAlertRequest.from_dict({
"type": "filing",
"condition": {"symbols": ["AAPL"], "form_types": ["8-K"], "stage": "detected"},
"external_user_id": "user_8812",
}),
validate_only=True,
)
users.pause_alert_user("user_8812") # no fires, no creates
users.resume_alert_user("user_8812")
users.delete_alert_user("user_8812") # erases the user's alerts and events
Upgrading from 9.x
10.0.0 changes no method and removes no field: the API re-cut which plan reaches which operation, and Me.plan
gains the value payg. LITE now also reaches filings (with facts, notes, holdings and review chains, the SEC
document versions), facts, as-reported financials, ratios / growth / CAGR, guidance, news items and their text,
announcements, press releases, holders and filer holdings, fund positions and weights, people, participants, IPOs and
offerings. Transcripts (text, Q&A, call stats), transcript search and investor documents with their search are now
PRO. Pay-as-you-go credits (a prepaid balance without a plan) reach every PRO data operation except live audio, the
/v1/stream socket and dataset releases, and get_me reports their plan as payg. A call below its plan raises the
API error plan_required (403), which names the plan it needs. Display and in-product redistribution of the data
start at STANDARD (/status/licensing); LITE is internal use.
Upgrading from 8.x
9.0.0 changes no method, parameter or field: the API re-cut which plan reaches which operation. FREE keeps companies,
instruments, the catalog, fiscal periods, market holidays, events and /v1/me; standardized financials, dividends,
splits, news, funds and the whole alerts platform need LITE (or a prepaid balance); event comparison, transcript diff
and versions, prosody, price attribution, KPIs and the two holder-change lists need PRO; dataset releases need
ENTERPRISE. A call below its plan raises the API error plan_required (403), which names the plan it needs.
Upgrading from 7.x
8.0.0 removes fama_sector / fama_industry from Company (they were never populated); read sector, industry or sic instead.
Nothing else changes: every 7.x call keeps working after the version bump unless it reads those two fields.
Upgrading from 6.x
7.0.0 gives every exchange-traded symbol one identity (InstrumentsApi), moves ETFs and
closed-end funds out of CompaniesApi into FundsApi and replaces the five ownership lists
of the 6.x holdings class with HoldersApi (one row schema for every source) and
FundsApi.list_fund_positions / list_fund_weights. list_dividends, list_splits,
list_filings and search_filings take symbol instead of company. The full old → new
table is in the repository's
sdks/README.md.
Upgrading from 4.x
5.0.0 calls the same contract at its final paths: the API designed as v2 moved from /v2/... to /v1/... on
2026-11-11, when the old v1 API was deleted (/v2/* answers 404 since). Classes, methods, models, the list
envelope, problem codes and parameters are unchanged; only the request paths changed, so upgrading is a version bump.
4.x clients stop working because their /v2 paths are gone.
Upgrading from 3.x
4.0.0 (and 5.0.0) are generated from the redesigned contract only; the 3.x classes are gone (the 3.x routes were
deleted on 2026-11-11). Lists use the cursor envelope above instead of
offset / next_url, errors are problem documents instead of {"error", "message"}, and
booleans are real booleans.
| 3.x | 4.0.0 / 5.0.0 |
|---|---|
CompanyApi |
CompaniesApi (list_companies, get_company, filers, people) |
Standardized…Api, AsReported…Api (24 classes) |
FinancialsApi (6 operations: basis × plain / detailed / presentation, statement filter) |
FinancialMetricsApi, SegmentedFinancialsApi |
MetricsApi |
SECApi, InstitutionalOwnershipApi |
FilingsApi, DocumentsApi, HoldersApi |
InsiderTradesApi, IPOsApi, NewsApi |
same class names, /v1 operations |
EarningsCallsApi |
EventsApi, TranscriptsApi, CallAnalyticsApi, GuidanceApi, InvestorDocumentsApi |
MarketApi, MetadataApi |
ReferenceApi, CatalogApi |
AccountApi |
AccountApi (get_me, get_my_usage) |
HealthApi, StatusApi |
not in 4.0.0 / 5.0.0 (plain GET /health, /status) |
Not in this client
- The realtime stream at
/v1/stream(WebSocket) — realtime docs.
Regeneration
This client is a generated artifact; if a type looks wrong, the fix belongs in the API's
contract, and regenerating re-derives every model. Releases are published on
data-sdk-v* tags.
Links
License
MIT
Metadata
Release files for invinite-data-api 10.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| invinite_data_api-10.0.0.tar.gz | 513.8 kB | Without provenance | Details for invinite_data_api-10.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invinite_data_api-10.0.0-py3-none-any.whl | Python 3 | none | any | Details for invinite_data_api-10.0.0-py3-none-any.whl |
Total release size: 2.4 MB
Release files / invinite_data_api-10.0.0.tar.gz
| Download URL | invinite_data_api-10.0.0.tar.gz |
|---|---|
| Size | 513.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
121156eb63bc75e134d4fadb1e3cdba9ed83f1520c0a8042c0ace179215b7ce3
|
|
BLAKE2b-256 checksum How to use checksums |
f1854595923d4348b8f681dc295e3ffc4513ae1ff0697072c0409998d6f3c6f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / invinite_data_api-10.0.0-py3-none-any.whl
| Download URL | invinite_data_api-10.0.0-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21f76b6c3ae09fcef04ba35582966dee8dff99c2db347481cb7f8d479d03b0bc
|
|
BLAKE2b-256 checksum How to use checksums |
5a0e026d187cc0d8410cafae63ce8afbbd689f790b5ec00ea7f4973f977c4dab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for invinite-data-api 10.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.