1
vote
2answers
950 views

Calculate Average Price, Cost, (Un)Realized P&L of a position based on executed trades

We have built an algorithmic trading software and need to calculate the following parameters for each position in our portfolio. Average Price Cost Realized Profit & Loss Unrealized Profit & ...
5
votes
2answers
362 views

Which interest rate should I use for the discount rate in real-world pricing?

Suppose I want to compute the time value of money (present value, future value, etc). I need to put an interest rate into the calculation. Which real world interest rate would best be used here, ...