Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
Expand Down Expand Up @@ -450,7 +450,7 @@ public override void updateAccountValue(string key, string value, string currenc
/// <param name="realisedPnl">Shows your profit on closed positions, which is the difference between your entry execution cost (execution price + commissions to open the position) and exit execution cost ((execution price + commissions to close the position)</param>
/// <param name="accountName">The name of the account to which the message applies. Useful for Financial Advisor sub-account messages.</param>
public override void updatePortfolio(Contract contract, decimal position, double marketPrice, double marketValue, double averageCost,
double realisedPnl, double unrealisedPnl, string accountName)
double unrealisedPnl, double realisedPnl, string accountName)
{
var positionValue = Convert.ToInt32(position);
OnUpdatePortfolio(new UpdatePortfolioEventArgs(contract, positionValue, marketPrice, marketValue, averageCost, unrealisedPnl, realisedPnl,
Expand Down