namespace StockSharp.Fix.Native;
///
/// Data from RequestForPositions FIX message.
///
/// Position request identifier.
/// Account identifier (portfolio name only — ClientCode / BrokerCode now ride in ).
/// Subscription request type (0=Snapshot, 1=Subscribe, 2=Unsubscribe).
/// Response destination identifier.
/// Side filter (1=Buy, 2=Sell).
/// Request incremental updates instead of snapshots.
/// User identifier for data filtering.
/// Specific security identifiers for filtering.
/// Party information (ClientCode, BrokerCode).
public record struct FixRequestForPositions(
FixId PosReqId,
string Account,
char? SubscriptionRequestType,
FixId ResponseId,
char? Side,
bool? IsIncremental,
string UserId,
SecurityId[] SecurityIds,
FixParty[] Parties)
{
///
/// Owning user's numeric id (broker extension, distinct from the legacy string
/// FIX field). The gate stamps it from the authenticated session;
/// the Router scopes the positions snapshot to the owner by PK instead of by the
/// login / portfolio name. 0 when unknown (older writer / unauthenticated path).
///
public long OwnerUserId { get; set; }
}