Insighta Cloud CLI - portfolio upload framework
Project description
insighta-cli
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
insighta-sbi-tool— SBI Securities (Japan)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insighta_cli-0.1.3.tar.gz.
File metadata
- Download URL: insighta_cli-0.1.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
135df54f41ff2583be441a73c772d251ca686d3eff90634145692150be912a6c
|
|
| MD5 |
158f58c91b3aa82867fbeab87904dd14
|
|
| BLAKE2b-256 |
b0d1a24ab2cedbd52197c6626256f9d44c9f4592f08a376fc1f005f664723140
|
File details
Details for the file insighta_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: insighta_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf35aa0090d335afdf1c2bf155b9bd13db6394f278e8477f0d61ff0cb606887d
|
|
| MD5 |
9858c644014fa70cf229a7a09b2e3c1f
|
|
| BLAKE2b-256 |
a4c0e025354a1d7bbfe0c799a9ee2ff00ef72e4762c2b7246750485b279bf346
|