fix (pnl ui): Get cash per point from security

Previously, it was hardcoded to 1.
This commit is contained in:
John Colvin committed 2025-03-24 16:54:37 -04:00
1 parent 8e9ab8f2eb
commit e3bad78aef
1 file changed
+2 -1
@@ -4,6 +4,7 @@ using bts.utils;
using mbts;
using mbts.analytics;
using mbts.spark;
using mbts.utils;
using Spark.Api.Data;
@@ -188,7 +189,7 @@ namespace bts.shell.pnl {
public static PNLRowData from_pnl_unit(IPNLUnit u) =>
new(
u.id(),
default_cpp: 1.0,
default_cpp: u.security.spec_or_default().CashPerPoint,
override_cpp: null,
pnl_price: u.theo,
bid_price: double.NaN,