Bitsgap logo
 Search
Crypto Bot Returns: Account for Deposits and Withdrawals

Crypto Bot Returns: Account for Deposits and Withdrawals

Deposits can make a bot’s balance look more profitable than it is. Work through cash profit, time-weighted return and the timing of your contributions.

A crypto bot's balance can rise because it traded well, because you deposited money, or because the assets it already held increased in price. To evaluate the strategy, you need to separate those effects.

Deposits and withdrawals make a simple start-to-finish percentage unreliable. They also create two different questions: how did the strategy perform through time, and what return did your particular money experience? Those questions can produce different answers without either calculation being wrong.

This guide walks through currency profit, time-weighted return and money-weighted return using a small, reproducible example. You can apply the method to exchange records and bot balances in a spreadsheet.

Define the portfolio before calculating its return

Choose what belongs inside the measurement: one bot, one exchange account or all of your trading accounts. Then choose a reporting currency and consistent valuation times.

A transfer can be external at one boundary and internal at another. Moving 500 USDT from a reserve account into a bot is a deposit into that bot's measured portfolio. If both accounts belong to your broader measured portfolio, the same transfer is internal and does not add new capital overall.

Buying a coin with cash already inside the portfolio is also internal. It changes the holdings, not the amount contributed. Count the resulting fees and changes in asset value in performance rather than recording the trade as a deposit or withdrawal.

For every valuation, include open holdings at market value, cash and relevant liabilities. Counting only completed trades misses unrealized losses and gains. Use the same pricing source and method throughout the comparison, especially for assets with thin markets.

Start with currency profit

For a portfolio with no other unexplained adjustments:

Currency profit = ending value − starting value − deposits + withdrawals.

Suppose you start with 1,000 USDT, deposit 900 USDT during the period and finish with 1,900 USDT. With no withdrawals, profit is zero:

1,900 − 1,000 − 900 = 0 USDT.

The account grew by 90%, but that growth came entirely from additional capital. This is why “my balance increased” is not enough to describe a trading result.

Currency profit is useful because it answers a concrete question: how much did the measured activity add or subtract in the reporting currency? It does not, by itself, account for how long each contribution was invested.

Follow a deposit through two trading periods

Here is the complete hypothetical sequence. Fees are assumed to be reflected in the stated portfolio values, and there are no additional external costs in this example.

EventPortfolio valueExternal cash flow
Start1,000 USDT—
End of first trading period, before deposit1,100 USDT—
Immediately after deposit2,000 USDT+900 USDT
End of second trading period1,900 USDT—

The first period earned 10%: 1,100 divided by 1,000, minus one.

The second period lost 5%: 1,900 divided by 2,000, minus one.

The currency gain in the first period was 100 USDT. The currency loss in the second was also 100 USDT because more capital was exposed. Together they produce the zero currency profit calculated above.

Calculate time-weighted return

Time-weighted return, or TWR, separates the investment periods at external cash flows and links their returns geometrically. It is useful when you want to evaluate the strategy without allowing the size of your contributions to dominate the result.

For the two periods above:

TWR = (1 + 10%) × (1 − 5%) − 1 = 4.5%.

Adding 10% and −5% would give 5%, which ignores compounding. The geometric calculation reflects a unit of capital experiencing both returns in sequence.

There is no contradiction between a 4.5% TWR and zero currency profit. The strategy's percentage gain occurred on less money than its subsequent percentage loss.

The GIPS handbook discusses performance measurement and time-weighted methods in a professional reporting context. For a personal bot worksheet, the practical principle is to value the portfolio around external flows and link consistently calculated subperiod returns. Using this calculation does not make your reporting GIPS compliant.

What changes when you withdraw money?

Use a separate hypothetical example: start with 1,000 USDT, grow to 1,100, withdraw 400, then finish at 735 USDT.

The withdrawal leaves 700 USDT invested. The second-period return is therefore 735 ÷ 700 − 1 = 5%. Linked TWR is:

1.10 × 1.05 − 1 = 15.5%.

Currency profit is 735 − 1,000 + 400 = 135 USDT. That includes both the money still invested and the amount you removed. Looking only at the final 735 USDT would incorrectly suggest a loss.

Record whether the valuation was taken before or after the withdrawal. A mislabeled 1,100 or 700 in the worksheet changes the denominator and can turn a sound formula into a misleading result.

Collect the records behind your bot's return

Bitsgap's GRID performance view includes allocation, open exposure and trading history. Use those records alongside exchange transfers to build a return calculation that explains changes in your balance.

TWR and money-weighted calculations in this guide are external worksheet methods, not claimed built-in Bitsgap metrics.

When money-weighted return is more useful

Money-weighted return, or MWR, considers the amount and timing of your contributions and withdrawals. It answers the investor-experience question: what return did the money you committed actually earn?

A spreadsheet's XIRR function is commonly used with dated cash flows. From your perspective, contributions are negative, withdrawals are positive, and the ending portfolio value is a positive terminal amount at the review date. Include starting capital as an initial negative flow.

In the deposit example, the cash-flow list is an initial −1,000, a later −900 and a final +1,900. With those flows and no other costs, a zero rate balances the equation. The money-weighted result is therefore 0%, while TWR remains 4.5%.

Do not compare an annualized XIRR output with a short-period TWR without aligning the reporting periods. Complex cash-flow patterns can also produce multiple mathematical solutions or no useful solution. Inspect the inputs and the economic meaning rather than accepting any percentage the spreadsheet returns.

Build a worksheet you can maintain

Keep a transaction log and a valuation log. The transaction log records external flows; the valuation log records portfolio values at the necessary times.

Useful columns include UTC timestamp, account boundary, event type, asset quantity, reporting-currency value, valuation before the flow, flow amount and valuation after the flow. Add a source reference so you can trace each row back to an exchange record.

If you do not have valuations around each flow, do not label a rough calculation “exact TWR.” Obtain the missing records or use a clearly identified approximation. Daily snapshots alone may not capture the value at a large intraday deposit.

Check costs as well. Exchange fees already reflected in balances should not be deducted twice. A subscription paid outside the measured account requires an explicit choice: report strategy performance before that cost, or deduct a reasonable documented allocation to show a net result. Use the same treatment for every period you compare.

Choose the number that answers your question

QuestionUseful measure
How much money did the activity add?Currency profit
How did the strategy perform independent of contribution size?Time-weighted return
What return did my timed contributions experience?Money-weighted return
How much did the portfolio fall from a prior peak?Drawdown, measured consistently with flows

Keep at least currency profit and a clearly labeled return measure together. A single percentage without dates, cash-flow treatment and a portfolio boundary is difficult to interpret.

Frequently asked questions

Is a deposit counted as bot profit?

No. It is an external contribution to the measured bot portfolio. Subtract deposits when calculating currency profit and account for their timing when calculating returns.

Can TWR be positive when I made no money?

Yes. In the worked example, a 10% gain on 1,000 USDT is offset by a 5% loss on 2,000 USDT. Currency profit is zero, while the geometrically linked strategy return is 4.5%.

Are transfers between exchanges always external cash flows?

It depends on your measurement boundary. They are external to each individual account, but can be internal to a portfolio that includes both. Transfer fees still affect the portfolio's value.

Does Bitsgap calculate these exact metrics for me?

This guide does not claim built-in TWR or XIRR reporting. Use available bot and exchange records to perform the calculations in a separate worksheet, with consistent valuations and cash-flow treatment.

Want more profit with crypto?

Bitsgap’s automated bots help crypto traders effortlessly make profits 24/7.

Start free trial

*7-days PRO plan trial. No credit card required

Try Bitsgap’s PRO plan free for 7 days, pick a plan later

Done in 3 steps and trades for you.

All your data is secured with high-end encryption