openbb-arkleon
OpenBB Platform provider extension that serves SEC filing facts from Arkleon /v1 as the arkleon provider.
Install
Requires Python 3.10 or later, below 4. The package depends on openbb-core (>=1.6.10,<3) and registers the entry point arkleon in the openbb_provider_extension group.
Install it from PyPI, then rebuild the OpenBB Python interface as the OpenBB docs require after installing a provider extension:
pip install openbb-arkleon
openbb-build
For the latest unreleased code, run pip install git+https://github.com/jushuea/openbb-arkleon instead of the PyPI install, then run openbb-build.
Credentials
Set the ARKLEON_API_KEY environment variable to an issued Arkleon ak_ key:
export ARKLEON_API_KEY=ak_...
Or set it from Python:
obb.user.credentials.arkleon_api_key = "ak_..."
Requests go to https://arkleon.com/v1/facts with the header Authorization: Bearer <key>.
Example
from openbb import obb
# ARKLEON_API_KEY is set in the environment
obb.equity.fundamental.balance(symbol="320193", provider="arkleon", as_of="2020-01-01")
This returns balance sheet records for CIK 320193 from filings filed on or before 2020-01-01. The as_of date filters on the filing date, never on the period a fact describes, so a period ending in 2019 whose 10-K was filed after 2020-01-01 is not included.
Commands
The provider serves 3 commands, each with provider="arkleon":
obb.equity.fundamental.balanceobb.equity.fundamental.incomeobb.equity.fundamental.cash
Parameters
| Parameter | Commands | Description |
|---|---|---|
symbol |
all | The company's SEC CIK, digits only. Arkleon /v1 does not serve tickers. |
as_of |
all | Required, no default. Format YYYY-MM-DD. Only facts from filings filed on or before this date are returned. Filters on the filing date, never on the period end. |
limit |
all | Keeps the most recent N distinct period end dates. Every filing for those dates is kept. |
period |
income, cash |
"annual" returns 4-quarter durations. "quarter" returns 1-quarter durations. Values are exactly as filed. Year-to-date values are not converted into quarters. |
balance does not take period. Balance sheet facts are instantaneous.
What each record contains
Each record is 1 (filing, period end) pair. Every record carries:
period_endingaccession_idformfiledsource_urlduration_quarters- the mapped fields for the statement, listed in the tables below
A period end appears in 1 record for each filing that reported it. A value first filed in a 10-K and reported again as a prior-year comparative in the next year's 10-K appears as 2 records, each with its own filed date.
Only consolidated facts are used. Segment and co-registrant rows are excluded.
Where a field lists 2 tags, the first tag the filing reports is used. A field the filing did not report is empty. Nothing is summed, derived, or synthesized.
Field maps
The listed tags are us-gaap element names. Requests match on the element name alone and do not filter on taxonomy, so a company extension element with the same name would also be returned.
Balance sheet
Instantaneous facts, unit USD.
| Field | Tags |
|---|---|
total_assets |
Assets |
total_current_assets |
AssetsCurrent |
cash_and_cash_equivalents |
CashAndCashEquivalentsAtCarryingValue |
total_liabilities |
Liabilities |
total_current_liabilities |
LiabilitiesCurrent |
long_term_debt |
LongTermDebtNoncurrent |
total_equity |
StockholdersEquity |
total_liabilities_and_equity |
LiabilitiesAndStockholdersEquity |
Income statement
Unit USD. The eps_basic and eps_diluted fields are USD/shares. Where 2 tags are listed, they are tried in order.
| Field | Tags |
|---|---|
revenue |
RevenueFromContractWithCustomerExcludingAssessedTax, Revenues |
cost_of_revenue |
CostOfGoodsAndServicesSold, CostOfRevenue |
gross_profit |
GrossProfit |
operating_income |
OperatingIncomeLoss |
net_income |
NetIncomeLoss |
eps_basic |
EarningsPerShareBasic |
eps_diluted |
EarningsPerShareDiluted |
Cash flow statement
Unit USD.
| Field | Tags |
|---|---|
net_cash_from_operating_activities |
NetCashProvidedByUsedInOperatingActivities |
net_cash_from_investing_activities |
NetCashProvidedByUsedInInvestingActivities |
net_cash_from_financing_activities |
NetCashProvidedByUsedInFinancingActivities |
capital_expenditure |
PaymentsToAcquirePropertyPlantAndEquipment |
Tests
The tests run offline:
pytest
Fixtures are built by tests/build_fixtures.py from a SEC EDGAR companyfacts recording for CIK 320193, reshaped to the /v1/facts response shape. They are not recorded /v1 responses.
License
MIT.
Metadata
Release files for openbb-arkleon 0.1.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 |
|---|---|---|---|---|
| openbb_arkleon-0.1.0.tar.gz | 8.6 kB | Without provenance | Details for openbb_arkleon-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openbb_arkleon-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for openbb_arkleon-0.1.0-py3-none-any.whl |
Total release size: 21.0 kB
Release files / openbb_arkleon-0.1.0.tar.gz
| Download URL | openbb_arkleon-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e855172c81d757c75d98f4e6ad91f0455f3c1796161b45614c2d14fa6d59ba66
|
|
BLAKE2b-256 checksum How to use checksums |
7ae4d702d2e0caa02918caef3aebd770bb259c87e521c84e240f25f882578f49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / openbb_arkleon-0.1.0-py3-none-any.whl
| Download URL | openbb_arkleon-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
749772c428285a23b2fefd0b5e7bcac51400c8841ec299008e4e93043d280875
|
|
BLAKE2b-256 checksum How to use checksums |
531f34dbda02348afccc631cbb1ffbdacaf6493f01236e45a69b37e15494dd90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for openbb-arkleon 0.1.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.