/// <summary> /// Internal: Output this request. Can't use the Abstract Subscription Request because it needs to append two separate subscriptions. /// </summary> /// <param name="writer">The destination for the request content</param> public void WriteTo(IStructuredWriter writer) { writer.StartElement("req").StartElement("body"); writer.StartElement("subscription"); writer.ValueOrEmpty("type", "historicMarketData"); writer.EndElement("subscription").EndElement("body").EndElement("req"); }
protected override void WriteSubscriptionBodyTo(IStructuredWriter writer) { writer.ValueOrEmpty("ob2", _instrumentId); }
protected override void WriteSubscriptionBodyTo(IStructuredWriter writer) { writer.ValueOrEmpty("type", "position"); }
protected override void WriteSubscriptionBodyTo(IStructuredWriter writer) { writer.ValueOrEmpty("orderBookStatus", _instrumentId); }
protected override void WriteSubscriptionBodyTo(IStructuredWriter writer) { writer.ValueOrEmpty("orderBookStatus", new long?(this._instrumentId)); }