diff --git a/DXFeedFramework/Events/Market/Order.swift b/DXFeedFramework/Events/Market/Order.swift index 8e5b9eed5..7637819fb 100644 --- a/DXFeedFramework/Events/Market/Order.swift +++ b/DXFeedFramework/Events/Market/Order.swift @@ -6,7 +6,25 @@ // import Foundation - +/// Order event is a snapshot for a full available market depth for a symbol. +/// +/// The collection of order events of a symbol represents the most recent information +/// that is available about orders on the market at any given moment of time. +/// Order events give information on several levels of details, called scopes - see ``Scope``. +/// Scope of an order is available via ``OrderBase.Scope``property. +/// +/// [For more details see](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/event/market/Order.html) public class Order: OrderBase { - + /// Gets or sets market maker or other aggregate identifier of this order. + /// This value is defined for ``Scope/aggregate`` and ``Scope/order`` orders. + public var marketMaker: String? + + /// Returns string representation of this candle event. + override func toString() -> String { + return +""" +Order{\(baseFieldsToString()), \ +marketMaker=\(marketMaker ?? "null")} +""" + } } diff --git a/DXFeedFramework/Events/Market/SpreadOrder.swift b/DXFeedFramework/Events/Market/SpreadOrder.swift index a438f86a9..8d1a47d93 100644 --- a/DXFeedFramework/Events/Market/SpreadOrder.swift +++ b/DXFeedFramework/Events/Market/SpreadOrder.swift @@ -13,13 +13,14 @@ import Foundation /// The collection of spread order events of a symbol /// represents the most recent information that is available about spread orders on /// the market at any given moment of time. -/// Spread order is similar to a regular , but it has a -/// property that contains the symbol +/// +/// Spread order is similar to a regular ``Order``, but it has a +/// ``SpreadSymbol`` property that contains the symbol /// of the actual spread that is being represented by spread order object. -/// property contains the underlying symbol +/// ``MarketEvent.EventSymbol`` property contains the underlying symbol /// that was used in subscription. -/// -/// For more details see Javadoc. +/// +/// [For more details see](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/event/market/SpreadOrder.html) public class SpreadOrder: OrderBase { /// Gets or sets spread symbol of this event.