Edit the assumptions to see how the result changes. These example values are hypothetical.
Follow the fractional quantity and its fee
2024-01-01T14:30:00.000Z
PairBTC-USD
SideBuy
Units0.22279508898062086
Submitted price$42640.08
Filled price$42640.08
Fee$66.50
2024-01-14T21:00:00.000Z
PairBTC-USD
SideSell
Units0.22123552335775648
Submitted price$42505.61
Filled price$42505.61
Fee$65.83
2024-01-15T14:30:00.000Z
PairBTC-USD
SideSell
Units0.001559565622864384
Submitted price$42474.15
Filled price$42474.15
Fee$0.46
Recorded rows in source order; spacing does not represent elapsed time.
Show the table · 3 rows, 7 columns
Scroll sideways to compare all columns. Select a heading to sort.
| 2024-01-01T14:30:00.000Z | BTC-USD | Buy | 0.22279508898062086 | $42640.08 | $42640.08 | $66.50 |
| 2024-01-14T21:00:00.000Z | BTC-USD | Sell | 0.22123552335775648 | $42505.61 | $42505.61 | $65.83 |
| 2024-01-15T14:30:00.000Z | BTC-USD | Sell | 0.001559565622864384 | $42474.15 | $42474.15 | $0.46 |
No matching rows. Clear the filter to see all records.
The opening notional is 0.22279508898062086 BTC × $42640.08 = $9,500.00. At the declared 0.7% rate, its calculated fee rounds to $66.50, matching the recorded $66.50. The following sale fills together close 0.22279508898062086 BTC. All three displayed fees sum to $132.79.
The entry uses 95% of buying power, and fees are a separate cash flow. Read both exit fills rather than assuming the first sale closed every fractional unit. The full source retains the remaining orders and their timestamps.
Explore the calculation
The budget includes the purchase fee. Units = budget / (entry price × (1 + fee rate)). Sale proceeds = units × exit price. Subtract the sale fee and the original budget to calculate net P&L. All prices are USD per coin; fractional units are retained.
These editable prices and fees are hypothetical. Compare them with the recorded quantities and fees in a completed backtest.
No comments yet.