Skip to content

Commit

Permalink
use groupedSubaccounts to get correct validationErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu committed May 23, 2024
1 parent 4972452 commit bb1e319
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ open class TradingStateMachine(
for (subaccountNumber in subaccountNumbers) {
val subaccountText = "$subaccountNumber"
val subaccount =
parser.asNativeMap(parser.value(this.account, "subaccounts.$subaccountNumber"))
parser.asNativeMap(parser.value(this.account, "groupedSubaccounts.$subaccountNumber")) ?: parser.asNativeMap(parser.value(this.account, "subaccounts.$subaccountNumber"))

if (changes.changes.contains(Changes.historicalPnl)) {
val now = ServerTime.now()
Expand Down

0 comments on commit bb1e319

Please sign in to comment.