Skip to content
DDavinchu TradeOS
FeaturesProductsDashboardWho it's forPricingPartnersFAQBlog
EnglishEspañolРусскийУкраїнська中文PolskiDeutsch
Log inSign up
FeaturesProductsDashboardWho it's forPricingPartnersFAQBlogLog inSign up
Davinchu blog

Crypto portfolio tracking: cost basis, FIFO and return

How to track crypto across several exchanges and wallets: average cost vs FIFO with an example, transfers and staking, return with deposits, allocation and rebalancing.

PublishedOctober 11, 2026UpdatedOctober 13, 2026AuthorDavinchu teamReading time6 min

Articles

All articlesDavinchu TradeOS overviewHow to use MT5Compound interestForex trading sessionsFunding rateCopy trading: picking a traderGrid and martingale riskMT5 tester vs live accountYour first 30 days in tradingStop loss and take profit in MT5Margin, margin call, stop outMT4 vs MT5Edgewonk vs DavinchuTradezella, TradesViz, DavinchuFX Blue vs DavinchuIntelinvest, Snowball, DavinchuLiquidation price: Bybit, BinanceInvestment tracking: Excel or appChecking an EA before buyingSelling EAs and signalsMT5 alerts in TelegramWhy an EA isn't tradingVPS for an EAPassing a prop challengeEvaluating a strategyTrading plan and checklistTilt and overtradingMT5 investor passwordInstalling an EA in MT5Showing results to investorsReturn: TWR and XIRRBybit trade historyCrypto portfolio trackingReviewing students' journalsTrading teamProfit factorTrading expectancyRisk/reward ratioThe 1% ruleSharpe, Z-score, AHPR, GHPRTrailing vs static drawdownLimiting losses in MT5Crypto trading journalRead-only API keyLot size calculationTrading journal templateMT5 account monitoringMyfxbook alternativesTrading journal for MT5Prop firm risk managementCalculating drawdownStocks from IBKR and T-BankJournals and monitoring compared

In short. Tracking a crypto portfolio answers three questions: what all your coins on all exchanges and wallets are worth, how much you made on them given the purchase price, and how much of that is your own deposits. You need a cost basis for each coin (average or FIFO), every operation including transfers and staking, and a return that does not confuse deposits with profit.

What to track

  • Balances — per exchange and wallet, in one currency.
  • Cost basis — the price the coins were bought at; without it you cannot calculate profit or breakeven.
  • Operations — buys, sells, deposits, withdrawals, fees, staking rewards.
  • Transfers — from an exchange to a wallet and back. This is not a sale: the coin changed place, its cost basis stays the same.
  • Stablecoins — also a portfolio position: money «in USDT» is part of the allocation and of the return.

Average cost or FIFO

Example: you bought 1 ETH at $2,000, then another 1 ETH at $3,000; then sold 1 ETH at $3,500, and the current price is also $3,500.

FIFO (first bought is sold first)Average cost
Cost of the ETH sold$2,000$2,500
Realized profit+$1,500+$1,000
Cost of the remaining ETH$3,000$2,500
Unrealized profit+$500+$1,000
Total result+$2,000+$2,000

The total is the same — the method only changes which part of the profit counts as realized. Average cost is handier for decisions («where is my breakeven»), FIFO is often required by tax rules. Which method you need for taxes depends on the rules of your country.

Return with deposits

If you added money to the exchange, growth of the portfolio value is not a return. TWR (quality of the investments, ignoring deposits) and XIRR (what happened to your money, given when you contributed it) show it honestly — a worked example is in «Portfolio return with deposits: TWR and XIRR».

Allocation and rebalancing

Set target shares — for example 50% BTC, 30% ETH, 20% stablecoins — and once a month, or when the deviation exceeds a set threshold, bring the portfolio back: sell what grew above its share and buy what lags. Watch concentration separately: if one coin is more than half of the portfolio, the portfolio result is that coin's result.

Crypto portfolio tracking in Davinchu

In «Investments», one or several portfolios combine:

  • spot balances from Bybit, Binance, OKX, BingX and HTX via a read-only API key — refreshed every 15 minutes. BingX also supplies spot trades for 365 days, and the cost basis is calculated from them where the history explains the balance. For coins on other exchanges you enter the average price in the position — syncing does not overwrite it;
  • Interactive Brokers and T-Bank securities and cash — in the same portfolio, with the broker's average price;
  • manual assets — a coin on a cold wallet or in DeFi: ticker, average price, network, wallet, target share, sell target and staking yield;
  • operations — buy, sell, staking, transfer, deposit, withdrawal, fee; CSV import of up to 2,000 rows at a time, and export of the whole register.

The accounting method is «Average» or «FIFO», the base currency is USD, EUR, GBP, JPY, CHF, CAD or AUD. The «Overview» shows value, total P/L (unrealized + realized + staking income − fees), TWR and XIRR returns, drawdown and volatility; allocation by asset, class, source and network; the «Rebalance» tab calculates what to buy and sell to reach target shares — no orders are sent. Alerts — a target price reached, concentration exceeded (60% by default) and a sharp 24-hour move. A portfolio can be shared by link — composition in percent, TWR, drawdown and volatility, amounts optional — or downloaded as an «Investor report» PDF. The «Investments» section is on every plan, and the Free plan connects two accounts at no cost.

Futures accounts are not moved into the portfolio: their trades are in the trading journal. More about connecting exchanges — on the «Davinchu for crypto traders» page and in «Read-only API key».

Journal, risk manager and analytics in one dashboard

Free forever: 2 accounts, a journal and AI reviews. Setup takes 5–10 minutes.

Start for free
DDavinchu TradeOS

Analytics platform for traders and teams.

Products

Trading journalAccount analyticsAccount monitoringMT5 risk managerAI analyticsTrading calculators and toolsAll featuresWho Davinchu is for

Company

About usPricingSecurityPartnersBlogTrading glossaryDocumentationHelp centerContacts

Support

DocumentationHelp centerTelegram supportTelegram channel[email protected]

Legal

Privacy policyTerms of serviceRefund policyAML policy
© 2026 Davinchu. All rights reserved.Premium trading analytics platform
Davinchu dashboard demoOpen the live dashboard →