Exchange accounts

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.

  1. Open Exchanges and pick the exchange.
  2. Paste a read-only key. For Hyperliquid, paste the public wallet address: no key, no secret.
  3. 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.

DataREST routeMCP tool
Connected accounts, their status and what each history covers/v1/portfolio/accountsget_my_portfolio
The portfolio now: total value, by account, wallet and asset/v1/portfolioget_my_portfolio
Balances: total, free, used and debt per asset/v1/portfolio/balancesget_my_portfolio
Open positions, with their unrealized PnL/v1/portfolio/positionsget_my_portfolio
Open orders/v1/portfolio/ordersget_my_portfolio
Portfolio value over time, one point per day/v1/portfolio/historyget_my_portfolio_history
Executed trades/v1/portfolio/tradesget_my_activity
Deposits and withdrawals/v1/portfolio/transfersget_my_activity
Funding paid and received/v1/portfolio/fundingget_my_activity
Every balance movement the exchange reports, fees included/v1/portfolio/ledgerget_my_activity
  • Values are in US dollars, at BytNode prices.
  • An asset BytNode has no price for is never estimated: its value_usd is null and 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.

ExchangeTypeConnectionWhat differs
BinanceCentralizedRead-only keyOpen orders are re-read when spot funds are locked, otherwise every 10 minutes.
BybitCentralizedRead-only keyUnified account: the futures balance is not read apart, everything shows under spot.
OKXCentralizedRead-only keyGlobal site only (www.okx.com), not my.okx.com or app.okx.com. Futures share the spot account.
BitgetCentralizedRead-only keyClassic account only, not the unified account (UTA). No funding payments.
CoinbaseCentralizedRead-only keyECDSA key with the “View” permission (“Receive” allowed, never “Trade” or “Transfer”). History is trades only: no ledger, deposits, withdrawals or funding.
KrakenCentralizedRead-only keyKraken Spot only, not Kraken Futures. “Query funds” is required. Withdrawals may be refused to a read-only key.
HyperliquidDecentralizedPublic wallet addressRead 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 coverage in /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 info payloads 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:
MCP
https://api.bytnode.com/mcp?portfolio=off

The 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

SituationResponse
An account is connectedThe data.
No account is connectedAn empty data and unavailable: no_exchange_account, not an error.
A system or legacy key, with no customer behind it403 portfolio_no_account.
An account_id that is not one of your accounts404 unknown_account.
Portfolios temporarily unavailable503 portfolio_unavailable: retry after Retry-After.

#Go further