diff --git a/DXFeedFramework/Native/Subscription/NativeTimeSeriesSubscription.swift b/DXFeedFramework/Native/Subscription/NativeTimeSeriesSubscription.swift index 1eba384e6..153803c75 100644 --- a/DXFeedFramework/Native/Subscription/NativeTimeSeriesSubscription.swift +++ b/DXFeedFramework/Native/Subscription/NativeTimeSeriesSubscription.swift @@ -29,7 +29,7 @@ class NativeTimeSeriesSubscription { _ = try ErrorCheck.nativeCall(thread, dxfg_DXFeedTimeSeriesSubscription_setFromTime( thread, native, - 0)) + fromTime)) } } diff --git a/DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift b/DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift index ce7579c29..d7b825561 100644 --- a/DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift +++ b/DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift @@ -36,8 +36,8 @@ final class DXTimeSeriesSubscriptionTest: XCTestCase { return anonymCl } try subscription?.add(listener: listener) - try subscription?.set(fromTime: 10000) - try subscription?.addSymbols(["ETH/USD:GDAX", "IBM"]) + try subscription?.set(fromTime: 1717045200) + try subscription?.addSymbols(["AAPL{=8h}"]) wait(for: [receivedEventsExpectation], timeout: 3.0) try endpoint.closeAndAwaitTermination() }