| name | sharesight |
| version | 1.0.0 |
| description | Manage Sharesight portfolios, holdings, and custom investments via the API |
| metadata | {"openclaw":{"category":"finance","requires":{"env":["SHARESIGHT_CLIENT_ID","SHARESIGHT_CLIENT_SECRET"]},"optional_env":["SHARESIGHT_ALLOW_WRITES"]}} |
Sharesight Skill
Manage Sharesight portfolios, holdings, custom investments, prices, and coupon rates. Supports full CRUD operations.
Prerequisites
Set these environment variables:
SHARESIGHT_CLIENT_ID - Your Sharesight API client ID
SHARESIGHT_CLIENT_SECRET - Your Sharesight API client secret
SHARESIGHT_ALLOW_WRITES - Set to true to enable create, update, and delete operations (disabled by default for safety)
Commands
Authentication
sharesight auth login
sharesight auth status
sharesight auth clear
Portfolios
sharesight portfolios list
sharesight portfolios list --consolidated
sharesight portfolios get <portfolio_id>
sharesight portfolios holdings <portfolio_id>
sharesight portfolios performance <portfolio_id>
sharesight portfolios performance <portfolio_id> --start-date 2024-01-01 --end-date 2024-12-31
sharesight portfolios performance <portfolio_id> --grouping market --include-sales
sharesight portfolios chart <portfolio_id>
sharesight portfolios chart <portfolio_id> --benchmark SPY.NYSE
Holdings
sharesight holdings list
sharesight holdings get <holding_id>
sharesight holdings get <holding_id> --avg-price --cost-base
sharesight holdings get <holding_id> --values-over-time true
sharesight holdings update <holding_id> --enable-drp true --drp-mode up
sharesight holdings delete <holding_id>
Custom Investments
sharesight investments list
sharesight investments list --portfolio-id <portfolio_id>
sharesight investments get <investment_id>
sharesight investments create --code TEST --name "Test Investment" --country AU --type ORDINARY
sharesight investments update <investment_id> --name "New Name"
sharesight investments delete <investment_id>
Prices (Custom Investment Prices)
sharesight prices list <instrument_id>
sharesight prices list <instrument_id> --start-date 2024-01-01 --end-date 2024-12-31
sharesight prices create <instrument_id> --price 100.50 --date 2024-01-15
sharesight prices update <price_id> --price 101.00
sharesight prices delete <price_id>
Coupon Rates (Fixed Interest)
sharesight coupon-rates list <instrument_id>
sharesight coupon-rates list <instrument_id> --start-date 2024-01-01
sharesight coupon-rates create <instrument_id> --rate 5.5 --date 2024-01-01
sharesight coupon-rates update <coupon_rate_id> --rate 5.75
sharesight coupon-rates delete <coupon_rate_id>
Reference Data
sharesight countries
sharesight countries --supported
Output Format
All commands output JSON. Example portfolio list response:
{
"portfolios": [
{
"id": 12345,
"name": "My Portfolio",
"currency_code": "AUD",
"country_code": "AU"
}
]
}
Date Format
All dates use YYYY-MM-DD format (e.g., 2024-01-15).
Grouping Options
Performance reports support these grouping options:
country - Group by country
currency - Group by currency
market - Group by market (default)
portfolio - Group by portfolio
sector_classification - Group by sector
industry_classification - Group by industry
investment_type - Group by investment type
ungrouped - No grouping
Write Protection
Write operations (create, update, delete) are disabled by default for safety. To enable them:
export SHARESIGHT_ALLOW_WRITES=true
Without this, write commands will fail with:
{"error": "Write operations are disabled by default. Set SHARESIGHT_ALLOW_WRITES=true to enable create, update, and delete operations.", "hint": "export SHARESIGHT_ALLOW_WRITES=true"}
Common Workflows
View Portfolio Performance
sharesight portfolios performance 12345 --start-date 2024-01-01
sharesight portfolios chart 12345 --benchmark SPY.NYSE
Analyze Holdings
sharesight holdings get 67890 --avg-price --cost-base
Track Custom Investments
sharesight investments create --code REALESTATE --name "Property Investment" --country AU --type PROPERTY
sharesight prices create 123456 --price 500000.00 --date 2024-01-01
sharesight prices create 123456 --price 520000.00 --date 2024-06-01
Manage Fixed Interest Investments
sharesight investments create --code TD001 --name "Term Deposit ANZ" --country AU --type TERM_DEPOSIT
sharesight coupon-rates create 123456 --rate 4.5 --date 2024-01-01
sharesight coupon-rates update 789 --rate 4.75
Configure Dividend Reinvestment
sharesight holdings update 67890 --enable-drp true --drp-mode up
sharesight holdings update 67890 --enable-drp false