diff --git a/DXFeedFramework/Events/Market/Candles/Candle.swift b/DXFeedFramework/Events/Market/Candles/Candle.swift index 3e25fdc86..3fb265832 100644 --- a/DXFeedFramework/Events/Market/Candles/Candle.swift +++ b/DXFeedFramework/Events/Market/Candles/Candle.swift @@ -128,7 +128,7 @@ extension Candle { } /// Returns string representation of this candle event. - func toString() -> String { + public func toString() -> String { return "Candle{\(baseFieldsToString())}" } diff --git a/DXFeedFramework/Events/Market/MarketEvent.swift b/DXFeedFramework/Events/Market/MarketEvent.swift index d16459cb2..a62dd23e3 100644 --- a/DXFeedFramework/Events/Market/MarketEvent.swift +++ b/DXFeedFramework/Events/Market/MarketEvent.swift @@ -13,6 +13,7 @@ import Foundation /// property that is defined by this class. public protocol MarketEvent: IEventType { var type: EventCode { get } + func toString() -> String } public struct MarketEventConst { diff --git a/DXFeedFramework/Events/Market/Profile.swift b/DXFeedFramework/Events/Market/Profile.swift index c1805be4e..2eaff0e39 100644 --- a/DXFeedFramework/Events/Market/Profile.swift +++ b/DXFeedFramework/Events/Market/Profile.swift @@ -135,7 +135,7 @@ extension Profile { } /// Returns string representation of this profile event. - func toString() -> String { + public func toString() -> String { return "Profile{\(baseFieldsToString())}" } diff --git a/Samples/PerfTestCL/IpfConnectCommand.swift b/Samples/PerfTestCL/IpfConnectCommand.swift index ff2aa5b0b..3bf998e06 100644 --- a/Samples/PerfTestCL/IpfConnectCommand.swift +++ b/Samples/PerfTestCL/IpfConnectCommand.swift @@ -73,7 +73,7 @@ extension IpfConnectCommand: Hashable { extension IpfConnectCommand: DXEventListener { func receiveEvents(_ events: [DXFeedFramework.MarketEvent]) { events.forEach { mEvent in - print("\(mEvent.eventSymbol): \(mEvent.quote.toString())") + print("\(mEvent.eventSymbol): \(mEvent.toString())") } } }