/* Copyright (C) 2025 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
 * and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */

syntax = "proto3";

package protobuf;

import "Contract.proto";

option java_outer_classname = "PortfolioValueProto";
option java_package = "com.ib.client.protobuf";
option csharp_namespace = "IBApi.protobuf";

message PortfolioValue {
	optional Contract contract = 1;
    optional string position = 2;
    optional double marketPrice = 3;
    optional double marketValue = 4;
    optional double averageCost = 5;
    optional double unrealizedPNL = 6;
    optional double realizedPNL = 7;
    optional string accountName = 8;
}
