Lesson 18 / Costs, Funding Payments, and Execution
Did you deduct the same slippage twice?
Reconcile reference gross profit with actual net results and account for perpetual funding separately. Then check whether the assumptions about execution are credible.
What you will learn
- Account for execution losses once
- Distinguish trading fees from funding payments
- Record funding based on position and direction at settlement
Allow about 30–45 minutes. The exercises use fictional data. The page checks structured answers in your browser. Export your work before refreshing.
Start with the concepts ↓Identify which prices you start from
At reference prices of 100 to buy and 101 to sell, 1,000 units earn a reference gross profit of 1,000. Simulated fills of 100.05 and 100.95 give a gross profit of 900. The fill prices already reflect the 100 difference.
With explicit fees of 40 and financing of 10, net profit is 850. Subtract 100, 40, and 10 from the reference result of 1,000, or subtract only 40 and 10 from the fill-based result of 900.
Funding is a separate cash flow
In the linear perpetual example, funding for this settlement = position notional at settlement × funding rate. At a positive rate, longs pay shorts. At a negative rate, shorts pay longs. Opening and closing fees are recorded separately.
The lab has one settlement, with a notional of 2,000 if the position is still open. The long's cash change is −2,000 × the rate, and the short's is the opposite. Enter the rate as a percent. For example, 0.1% equals 0.001.
Spot and perpetual positions use different accounting
A fully funded spot purchase exchanges cash for the asset. A linear perpetual does not deduct the full notional as a purchase. Equity reflects starting funds, price P&L, fees, and funding. Margin requirements are a separate constraint.
The lab starts with 1,000 in equity and a notional of 2,000. Price is constant, opening and closing fees total 2, and the model omits liquidation. Check the actual contract's mark price, settlement interval, and funding rules. The interval may differ from eight hours.
Costs can respond to order size
Larger orders may move through more price levels, take longer, or fail to fill. Borrow availability and financing rates can also change. Total buy and sell value divided by starting equity and half that ratio are different turnover conventions. State which one you use.
Preset stress cases such as doubling fees, delaying execution, or reducing market depth, and retain all the results. Correct accounting confirms that costs were counted once. Actual rates and achievable fills need independent evidence.
Costs, Funding Payments, and Execution experiment
At one settlement, notional is 2,000 and the funding rate is +0.1%. The long pays 2 and the short receives 2. Separately subtract 2 in explicit trading fees for either side. Change the rate to negative and check the direction.
One funding settlement for a linear perpetual. Notional while open is 2,000, starting equity is 1,000, price is constant, and the round-trip fee is 2. Closing the position before settlement removes that funding cash flow.
Points follow the order in the example. See the table for exact values.
Try the calculations
Use the values in each question. Enter amounts and percentages in the requested units, including a minus sign where needed.
Explain your reasoning
Lesson work
Complete the cost and funding ledger for your research.
Submit a trading cost and funding ledger
A long position in a linear perpetual contract starts with equity of 1,000. Notional is 3,000 at funding settlement. The funding rate is −0.1%, and the position is still open at settlement. Price P&L based on actual fills is −30. Total round-trip trading fees are 4. Any execution price difference is already reflected in the fills.
Complete the questions below before trying the optional writing exercise. Use the fixed inputs here, even if you changed the experiment above. Enter numbers in the units shown and keep at least two decimal places where needed. Follow the specified precision for tables. You can check one answer at a time or all answers together.
Save your homework to export these results. Check again after changing an answer. Optional writing and self-assessment are ungraded. Save your work before refreshing.
Optional writing (ungraded)
Writing guidance and self-review
Record the inputs, rules, results and open questions in each field. You can cite the earlier calculations and experiments as fictional examples. Tie each conclusion to specific data or events.
Use the checklist to review your own writing. Use evidence from the study to evaluate the strategy.
Save the experiment, the run log, your first and current checks, written work and self-review. Export before refreshing or closing the page.