insighta-sdk
Insighta Cloud SDK — API client and data models for portfolio management.
Installation
pip install insighta-sdk
Authentication
You can obtain an API key from the Developer tab at insight.cloud/settings.
Save the key in a credentials.yaml file:
api_key: "your-api-key-here"
endpoint: "https://openapi.insighta.cloud"
Load it in your code:
from insighta_sdk import Credentials
creds = Credentials.from_file("credentials.yaml")
Quick Start
from insighta_sdk import Credentials, InsightaClient
creds = Credentials.from_file("credentials.yaml")
client = InsightaClient(creds)
# List portfolios
portfolios = client.get_portfolios()
# Create a portfolio
from insighta_sdk import UploadConfig
config = UploadConfig.from_file("upload.yaml")
portfolio_id = client.create_portfolio(config)
Features
- API Client — Full coverage of Insighta OpenAPI (portfolios, orders, metrics)
- Data Models —
Trade,Holding,Deposit,OrderGroup,CashDeposit,RateEntry - Utilities — Rate lookup, order grouping, deposit merging
- Workspace Management —
Dirsclass for consistent file path resolution
Use Cases
- AI Agent-driven portfolio automation — Integrate with LLM agents (e.g., LangChain, CrewAI) to build autonomous rebalancing, signal-based trading, or research-to-execution pipelines using the SDK as the execution layer.
- Backtesting dashboards — Pull NAV/metrics history and visualize portfolio performance programmatically.
- Multi-portfolio management — Automate creation, monitoring, and teardown of simulation portfolios at scale.
API Reference
Client
| Method | Description |
|---|---|
create_portfolio(config) |
Create a new portfolio |
get_portfolios() |
List own portfolios |
search_portfolios(...) |
Search public portfolios |
delete_portfolio(id) |
Delete a portfolio |
send_order(portfolio_id, group, currency) |
Submit an order group |
get_nav_history(id) |
Get NAV history |
get_metrics_history(id, ...) |
Get metrics (TWR, etc.) |
Utilities
| Function | Description |
|---|---|
load_order_groups(path) |
Parse order.csv into OrderGroup list |
load_cash_deposits(path) |
Parse cash_deposits.csv |
merge_and_sort_groups(orders, deposits, memos) |
Merge and sequence order groups |
load_rate_file(path) |
Load exchange rate CSV |
lookup_rate(entries, dt, cur, base) |
Find applicable rate for a trade |
fetch_ticker_info(tickers) |
Query ticker metadata from API |
API Endpoint
Base URL: https://openapi.insighta.cloud
OpenAPI spec: insighta-app/openapi-docs/
Development
pip install -e .
pytest
See CONTRIBUTING.md for guidelines.
License
CC-BY-NC-4.0 — See LICENSE
Metadata
Release files for insighta-sdk 0.2.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 |
|---|---|---|---|---|
| insighta_sdk-0.2.0.tar.gz | 20.9 kB | With provenance | Details for insighta_sdk-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| insighta_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for insighta_sdk-0.2.0-py3-none-any.whl |
Total release size: 33.2 kB
Release files / insighta_sdk-0.2.0.tar.gz
| Download URL | insighta_sdk-0.2.0.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc9453e6b6654c5e5af3099efaee2e6049ad065e17b998f3f1694836ba3b7bc8
|
|
BLAKE2b-256 checksum How to use checksums |
926899344f045b80b4eb80b4bc37e964bb5dc9756ca9aa63699101b3517eb9ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 29, 2026.
Transparency logRelease files / insighta_sdk-0.2.0-py3-none-any.whl
| Download URL | insighta_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05388b0bdd658efc49827377dd33986459aa81f85e4a36a0a33ad59c8ee5cc1b
|
|
BLAKE2b-256 checksum How to use checksums |
dd99394e62c8b2deafbb0b5496d279ba2d9ef633c66e6f2b3c5f39f010f15a42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 29, 2026.
Transparency logSecurity for insighta-sdk 0.2.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for insighta_sdk-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 29, 2026.
Transparency logA 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.