mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-04 08:32:23 +00:00
A gate asks for an account's orders on a session of its own, on behalf of the client behind it, and names that client in the request's client code. The request for positions carried it across in the Parties block; the two order status requests had no such block, so the code was dropped on the way and the server answered for the gate's own login. Both records now hold the parties of the request, and the converter writes the client code into them and reads it back, as it does for the request for positions and for every order command.
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
namespace StockSharp.Fix.Native;
|
|
|
|
/// <summary>
|
|
/// Data from OrderStatusRequest FIX message.
|
|
/// </summary>
|
|
/// <param name="OrdStatusReqId">Order status request identifier.</param>
|
|
/// <param name="SubscriptionRequestType">Subscription request type (0=Snapshot, 1=Subscribe, 2=Unsubscribe).</param>
|
|
/// <param name="OrderId">Our numeric order primary key (null when the order is identified by its exchange id).</param>
|
|
/// <param name="OrderStringId">Exchange order identifier (string), when identified by it instead of the PK.</param>
|
|
/// <param name="ClOrdId">Client order identifier.</param>
|
|
public record struct FixOrderStatusRequest(
|
|
FixId OrdStatusReqId,
|
|
char? SubscriptionRequestType,
|
|
long? OrderId,
|
|
string OrderStringId,
|
|
string ClOrdId)
|
|
{
|
|
/// <summary>
|
|
/// Owning user's numeric id (broker extension, not a standard FIX tag). Carried over the
|
|
/// SBE wire so a targeted per-user status request scopes the StopOrder snapshot to that
|
|
/// user (0 = the OrderRouter's mass feed).
|
|
/// </summary>
|
|
public long UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Parties of the request. A gate that asks on behalf of a client names that client here under
|
|
/// <see cref="PartyRole.ClientId"/>, which is what tells the server whose orders are asked for.
|
|
/// </summary>
|
|
public FixParty[] Parties { get; set; }
|
|
}
|