com.fluxtion.server.lib.pnl.PositionSnapshot Maven / Gradle / Ivy
/*
* SPDX-FileCopyrightText: © 2024 Gregory Higgins
* SPDX-License-Identifier: AGPL-3.0-only
*/
package com.fluxtion.server.lib.pnl;
import lombok.Data;
import java.util.ArrayList;
import java.util.Collection;
@Data
public class PositionSnapshot {
public static PositionSnapshot of(InstrumentPosition... positions) {
PositionSnapshot positionSnapshot = new PositionSnapshot();
for (InstrumentPosition position : positions) {
positionSnapshot.getPositions().add(position);
}
return positionSnapshot;
}
private Collection positions = new ArrayList<>();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy