AI & API
Connecting your own AI, API keys for your own scripts, the apps you connected, and where the API is described.
For connecting your own AI, and for people who write their own scripts. It lives in Settings → AI & API.
Connect your AI
The first card. Ask Claude, ChatGPT, Gemini or another AI about your myTraderDash data, and have it add to it for you, within what you allow.
- The card shows the connector address; the copy button copies it.
- Add the address to your AI: in Claude, Settings → Connectors → Add custom connector; in ChatGPT, Plugins → Add → Add custom MCP server (paste the address, Authentication OAuth, tick "I understand", then create it as a plugin); in Gemini, in a browser, not the Gemini app, open gemini.google.com/customize/connectors (Customize → Connectors), then Custom (paste the address, then Next; once connected, it works in the Gemini app too); other AIs take it where they add a custom connector or MCP server.
- Your AI opens a myTraderDash page: sign in, choose what it may do and for how long, then Allow. It then appears under Connected apps below.
- Where connecting your AI isn't offered yet, the card says so. A script uses an API key either way.
API keys
For people who write their own scripts. An API key is a password a program uses to reach your account without you signing in.
- Generate API Key: give the key a name, tick what it may do (the next section), and pick how long it lasts under Expires (1 day, 7 days, 30 days, 90 days, 1 year or Never expires; 90 days unless you pick another). Then Generate Key. The key is shown once: copy it and keep it somewhere safe.
- The list shows each key's name, its first characters, what it may do, when it was created and last used, and when it expires.
- The trash icon revokes a key: scripts using it stop working right away. An expired or revoked key is refused.
- A key can't manage keys (create, list or revoke them), delete your account or all your data, or invite anyone: that takes you, signed in.
- API docs, under the keys, opens this page.
A program sends its key in the Authorization header: Authorization: Bearer <your key>.
What a key or an app may do
You choose it when you make a key, and again when you connect an app:
- Read your trading data: it looks, and changes nothing.
- Add, change and delete your data: it also writes.
A new key may do both unless you untick one; a key that may do nothing can't be made. The list of keys shows it as Read only, Write only or Read & write.
What a key reaches. Your own records: accounts, trades and positions, performance, dividends, the calendar, the journal, watchlists, the tax report and the exports.
- A Read only key can also ask for what only reads but isn't a plain lookup: the tax report and its comparisons with your broker's documents, and a backup of your data.
- A key can delete trades one by one or a chosen set, never every trade at once.
- You get an email for every import a key sends, whether it worked or failed.
What your assistant can do. With Read it can look at your accounts, today's figures, positions, trades, performance and the portfolio over time, dividends and income, strategies, the calendar and what's coming up, your journal and your watchlists, and get your exports as CSV or JSON text. With Add, change and delete it can also:
- record trades (one, or many at once as an import), and change or delete trades;
- group, merge and tag positions;
- add, change and delete accounts;
- write, change and delete journal entries, stories and templates;
- manage watchlists and their alerts, and follow tickers on the calendar;
- set how a dividend is taxed, make a tax estimate and start a backup.
What is refused to both. These need you signed in, in the app:
- Market data: quotes, option chains, the screener, ticker lookups, the market lists and the contents of your stock lists. Your AI sees prices only as the stored values of your own positions and watchlists.
- Brokerage syncs, and your settings.
- Deleting every trade at once, or all your data.
- Files: your AI doesn't send or download one (a broker file, a PDF, a backup).
What the API offers
Published at two addresses, both open without a key:
- To read yourself: https://api.mytraderdash.com/v1/openapi.txt. One line per request: what it does and what a key needs for it. Short enough to read through, or to paste into a chat with an AI.
- For your AI or your tools, as the reference: https://api.mytraderdash.com/v1/openapi.json. Every field of every request and answer, in the standard OpenAPI 3.1 format. Give this address to an AI coding tool or an API tool; it is too long to read or to paste into a chat.
Connected apps
Under the keys: the apps you allowed to use myTraderDash on your behalf, such as your own AI. An app asks to connect; you sign in, see what it asks for, untick what you don't want, and Allow or Don't allow. You also choose Stay connected for: Until I disconnect it (the default), or 7, 30 or 90 days.
The page shows where the app comes from: verified when myTraderDash checked its address itself, or Says it's from … (not verified) when only the app says so. It also says where allowing sends you back to: a site's address, or this computer for an app running on your own machine. An app picks its own name, but not that address, so if it isn't the app you were connecting, choose Don't allow.
The list shows each app (a check mark beside a verified one), what it may do, when you connected it, when it last called and when it expires. Past that moment the app stops working and has to ask again; it stays listed, marked expired, until you disconnect it. Disconnect stops it at once; it can ask again later and you decide again. An app never gets your sign-in or your keys, whatever you allow.