예제 #1
0
 /// <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");
 }
 /// <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");
 }
예제 #3
0
 protected override void WriteSubscriptionBodyTo(IStructuredWriter writer)
 {
     writer.ValueOrEmpty("ob2", _instrumentId);
 }
예제 #4
0
 protected override void WriteSubscriptionBodyTo(IStructuredWriter writer)
 {
     writer.ValueOrEmpty("type", "position");
 }
 protected override void WriteSubscriptionBodyTo(IStructuredWriter writer)
 {
     writer.ValueOrEmpty("orderBookStatus", _instrumentId);
 }
예제 #6
0
 protected override void WriteSubscriptionBodyTo(IStructuredWriter writer)
 {
     writer.ValueOrEmpty("orderBookStatus", new long?(this._instrumentId));
 }