Exchange API sync

Register a read-only API key and your fills flow into your trading journal automatically.

What it does

Once you register a read-only API key issued from your exchange account, we automatically pull your fills and compute average price, P&L, and ending balance to fill in your trading journal. No downloading and uploading CSV files — a single sync button is all it takes.

Supported exchanges are Bybit, MEXC, and Bitget, and on all three you can choose to import spot and futures.

Exchange API sync is available on the paid plan, with up to 5 connections.

Connecting

In the trade log, open Import CSV·API and choose Exchange API sync, or manage it from the Settings → API sync tab. Press Add connection to open the Connect exchange window, which takes four steps.

  1. Pick an exchange — Choose Bybit, MEXC, or Bitget. For an exchange or broker that isn't listed, you can switch to Import from CSV instead.
  2. Key guide and entry — Expand the API Key Guide in the window for each exchange's issuing steps. Enter your API Key and Secret Key and press Continue; the key is verified right away, and you move on only once it passes. For Bitget, also enter the Passphrase you set when creating the key. MEXC keys can't be permission-checked, so you must tick a box confirming the key is read-only.
  3. Import settings — Choose the products to import (at least one of spot and futures), the target wallet, start date, and starting balance, then press Connect.
  4. Done and first sync — Press Sync now to import right away, or Later to sync from the connection list afterward.
  • Read-only keys only — Keys with trade or withdrawal permissions are rejected. Always issue keys with read-only permission.
  • Start date & time (optional) — Only fills after this time are imported. Leave the time blank to start at 00:00 that day. Leave the date blank to import from the oldest history the exchange allows.
  • Deleted entries — Connected trades you delete from the journal are not imported again on the next sync. Disconnecting clears this memory, so reconnecting re-imports every fill after the start time.
  • Target wallet (optional) — Choose the wallet to place imported trades in. If you don't choose one, a "Crypto" USD wallet is created automatically and used. Fill amounts are in USD (USDT), so a USD wallet is recommended. The sample wallet is not offered as a choice.
  • Starting balance (recommended) — The first sync accumulates your ending balance from this amount. If you leave it blank it starts from 0, which can distort balance and drawdown stats. If your trade log already has a running balance, that value is used instead.
  • You can change the wallet later — In the connection list, click the wallet name shown on each connection to pick a different wallet from the dropdown. The change applies from the next sync; trades already imported stay in their original wallet.

Sync

  • Manual sync — Press the sync button on the connection card to pull new fills. There is a 60-second cooldown to prevent back-to-back runs.
  • Automatic sync — New fills are also pulled automatically every hour without pressing anything. You can run it right away with the sync button next to the dashboard title.
  • Resume — If there is a lot of history, only part is imported at once; sync again a moment later to continue where it left off.
  • Deduplication — Fills already imported are filtered out automatically and never saved twice.

The historical query window the API provides differs by exchange.

ExchangeQueryable window
BybitLast 2 years
MEXCSpot: last 30 days (coins you hold or imported before) · Futures: last 90 days
BitgetLast 90 days

For history older than that, download a CSV from the exchange and fill it in with CSV import.

When a position stays "Open"

For positions entered before the queryable window, the entry fills may be missing while only the exit fills come in, so early after connecting your buy and sell quantities can be mismatched. If the quantities don't match and the net position never reaches zero, a symbol you already closed can keep showing as Open.

Fills imported from an exchange are kept as-is, so their quantity, price, and status can't be edited in the journal (journal fields such as strategy and memo are free to write). If the position was entered before you connected, download that period's fills from the exchange and upload them as CSV to the same wallet. The sync won't add fills again for the period the CSV covers, and later fills are calculated with matching quantities. Rows already saved as Open aren't recalculated, though.

Security and disconnecting

  • Registered API keys are stored encrypted and shown only partially masked on screen.
  • Keys are used only to query fills. For Bybit and Bitget we check the key's permissions at registration and reject keys that can trade or withdraw; MEXC has no permission-check API, so we ask you to confirm the key is read-only. Always issue read-only keys.
  • When you disconnect, the stored key is destroyed immediately. Journal entries already imported are kept as they are.

For the number of connections and pricing per plan, see Plans & billing.