Connect your portfolio.
Use the PortfolioSharing API to work with your own portfolio records, or connect a compatible assistant through the MCP server. These integrations update records only; they do not place trades.
Get started
- Create an account or sign in.
- Open API keys and create a read-only key for retrieval, or a read-and-write key to change records. The key is shown once.
- Use the bearer key with the API reference, or follow the MCP connection guide.
First request
Set PORTFOLIOSHARING_API_KEY in your local environment, keeping it private, then run:
curl https://api.portfoliosharing.com/v1/portfolios \
-H "Authorization: Bearer $PORTFOLIOSHARING_API_KEY"Never paste your key into a chat. Revoke keys in the app when they are no longer needed. Write keys can also delete records. A separate sandbox is not currently provided; use a test portfolio and take care with changes.
Reference
Review the OpenAPI document for operations and request schemas. API errors use HTTP status codes and generally return an error message. The API uses /v1/ paths; clients should check the reference when integrating. Values and returns are estimates, and market prices may be delayed.