Skip to main content

Insighta Cloud CLI - portfolio upload framework

Project description

insighta-cli

CI PyPI Python License

Insighta Cloud CLI — portfolio upload framework with plugin support.

Installation

pip install insighta-cli

Usage

# Prepare upload files from trade history
insighta --work my-portfolio prepare

# Upload to Insighta Cloud
insighta --work my-portfolio upload --config output/upload.yaml

# Portfolio management
insighta list-portfolios
insighta search-portfolios --search "tech"
insighta delete-portfolio <portfolio_id>
insighta nav-history <portfolio_id>
insighta metrics-history <portfolio_id>

# News & search
insighta news --period 7
insighta search "AAPL"

# Order history
insighta orders --portfolio-id <portfolio_id>

# History & backfill
insighta history <portfolio_id>
insighta backfill <portfolio_id>

# Image parsing
insighta image screenshot.png --prompt "Extract trades from this image"

# Configuration
insighta config --credentials credentials.yaml

Commands

Command Description
prepare Generate upload.yaml + order.csv from trade history
upload Send portfolio data to Insighta API
config Save/display default settings
list-portfolios List own portfolios
search-portfolios Search public portfolios
delete-portfolio Delete a portfolio
nav-history Get NAV history
metrics-history Get metrics history
news Fetch recent news
search Search entities by keyword
history Get combined NAV + metrics history
orders List order history
image Upload and parse images with AI
backfill Trigger history backfill
parse Parse brokerage trade history (via plugin)
verify Verify CSV against actual holdings (via plugin)
plugins Show installed broker plugins

All commands support --output-json for machine-readable output.

Plugin System

Brokerage-specific tools register as plugins via entry_points:

[project.entry-points."insighta_cli.plugins"]
sbi = "insighta_sbi"

Broker Commands

Plugins provide parse and verify commands:

# Parse brokerage trade history into CSV
insighta --work my-portfolio parse
insighta --work my-portfolio parse --rate 155.12
insighta --work my-portfolio parse --rate-file rates.csv

# Verify CSV against actual holdings
insighta --work my-portfolio verify

# List installed plugins
insighta plugins

Multiple Plugins

When only one plugin is installed, it is used automatically. With multiple plugins, specify the broker in <work>/input/project.yaml:

broker: sbi

Available Plugins

Development

pip install -e ".[dev]"
pre-commit install
insighta --help

See CONTRIBUTING.md for guidelines.

License

CC-BY-NC-4.0 — See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

insighta_cli-0.2.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insighta_cli-0.2.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file insighta_cli-0.2.0.tar.gz.

File metadata

  • Download URL: insighta_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for insighta_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 241e0bc2b17700cf3b036afe71c29dccd7b2a18df32ef9d79739b66ed53b6d0d
MD5 dc1327b7b298dc7ea549c0b07c92d785
BLAKE2b-256 5ed8c609ea5dd1e5f078e614af328db2f7ffd234b1c523ebb05fd2a6d54c3674

See more details on using hashes here.

Provenance

The following attestation bundles were made for insighta_cli-0.2.0.tar.gz:

Publisher: publish.yml on insighta-cloud/insighta-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file insighta_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: insighta_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for insighta_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 959497c93e1226c57b10625cb05a0046d13fb15d6e7bcf562f6bd7d31dc0664b
MD5 36a727fa52aa5eb3541c75ffec4dde2e
BLAKE2b-256 3aeae65b78f197bfaa58c3ab60e4ae74aa38170f404ca7644c539fbed39c8854

See more details on using hashes here.

Provenance

The following attestation bundles were made for insighta_cli-0.2.0-py3-none-any.whl:

Publisher: publish.yml on insighta-cloud/insighta-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page