Connected accounts
Connect an exchange account read-only, and any of your API keys can read it: balances, positions, orders and activity.
Read it through the REST routes or the MCP server.
#Connect an account
Three steps in the dashboard.
- Open Exchanges and pick the exchange.
- Paste a read-only key. For Hyperliquid, paste the public wallet address: no key, no secret.
- BytNode checks the key. A key that can trade, withdraw or transfer is refused, and nothing is kept.
The account then appears in /v1/portfolio/accounts, under the name you gave it.
#What BytNode reads
One row per kind of data, with the REST route and the MCP tool that return it.
| Data | REST route | MCP tool |
|---|---|---|
| Connected accounts, their status and what each history covers | /v1/portfolio/accounts | get_my_portfolio |
| The portfolio now: total value, by account, wallet and asset | /v1/portfolio | get_my_portfolio |
| Balances: total, free, used and debt per asset | /v1/portfolio/balances | get_my_portfolio |
| Open positions, with their unrealized PnL | /v1/portfolio/positions | get_my_portfolio |
| Open orders | /v1/portfolio/orders | get_my_portfolio |
| Portfolio value over time, one point per day | /v1/portfolio/history | get_my_portfolio_history |
| Executed trades | /v1/portfolio/trades | get_my_activity |
| Deposits and withdrawals | /v1/portfolio/transfers | get_my_activity |
| Funding paid and received | /v1/portfolio/funding | get_my_activity |
| Every balance movement the exchange reports, fees included | /v1/portfolio/ledger | get_my_activity |
- Values are in US dollars, at BytNode prices.
- An asset BytNode has no price for is never estimated: its
value_usdisnulland it stays out of the totals. - The value curve starts the day you connect: BytNode does not rebuild earlier balances.
- Activity comes newest first, paged with
cursor.
Parameters, fields and examples: Portfolio routes.
#Supported exchanges
Centralized exchanges connect with a read-only key, Hyperliquid with its public address.
| Exchange | Type | Connection | What differs |
|---|---|---|---|
| Binance | Centralized | Read-only key | Open orders are re-read when spot funds are locked, otherwise every 10 minutes. |
| Bybit | Centralized | Read-only key | Unified account: the futures balance is not read apart, everything shows under spot. |
| OKX | Centralized | Read-only key | Global site only (www.okx.com), not my.okx.com or app.okx.com. Futures share the spot account. |
| Bitget | Centralized | Read-only key | Classic account only, not the unified account (UTA). No funding payments. |
| Coinbase | Centralized | Read-only key | ECDSA key with the “View” permission (“Receive” allowed, never “Trade” or “Transfer”). History is trades only: no ledger, deposits, withdrawals or funding. |
| Kraken | Centralized | Read-only key | Kraken Spot only, not Kraken Futures. “Query funds” is required. Withdrawals may be refused to a read-only key. |
| Hyperliquid | Decentralized | Public wallet address | Read from the public address. Open orders are re-read every 5 minutes when the read budget is tight. |
Across every exchange
- A trade is read only for a market you hold, have a position in or an order on, quoted in USDT (USD on Coinbase and Kraken).
- A market sold before you connected, or quoted in USDC or BTC, is not caught up.
- How far back each history goes differs by exchange and is not confirmed for all of them: read
coveragein/v1/portfolio/accounts, never assume it. - What cannot be read is named in
unavailable, never left as a silent gap. - Earn and staking are not read.
#What is never exposed
The API and the MCP server never return any of these.
- Your exchange keys and secrets.
- Withdrawal addresses and transaction ids.
- The exchanges’ raw
infopayloads and the order ids you set yourself. - Accounts you removed.
- Any text you typed, except the name you gave an account.
#Security and quota
- Read-only. BytNode can neither place an order nor withdraw funds, and no route or tool writes to an exchange.
- Nothing is cached. Every response carries
Cache-Control: no-store, and the API keeps no copy of your holdings. - Any of your API keys opens your portfolio. Keep your keys secret and revoke a leaked one in the dashboard. See Authentication.
- Quota. One request is one unit, on every plan, Free included. A refused request does not count.
- The AI model sees your holdings. The three MCP tools send them to the model you use. To hide the tools, connect with this address:
https://api.bytnode.com/mcp?portfolio=offThe tools then disappear from the list, and are refused if called (portfolio_tools_disabled). The setting is read on every request: it applies to the address you configured.
What you get back
| Situation | Response |
|---|---|
| An account is connected | The data. |
| No account is connected | An empty data and unavailable: no_exchange_account, not an error. |
| A system or legacy key, with no customer behind it | 403 portfolio_no_account. |
An account_id that is not one of your accounts | 404 unknown_account. |
| Portfolios temporarily unavailable | 503 portfolio_unavailable: retry after Retry-After. |
#Go further
Portfolio routesYour balances, positions, open orders and activity across your connected accounts: ten read-only routes.MCP serverTwenty-one tools for AI agents, with no bespoke integration. Connection and examples.AuthenticationOne API key for the three channels. Where to put it, how to protect it, how to rotate it.