From 57b978daadb096b0ba86cb508c35a52d9b48cd11 Mon Sep 17 00:00:00 2001 From: kosyloa Date: Wed, 5 Jun 2024 09:04:49 +0200 Subject: [PATCH] fix: wrong value of time if timeseriessubscription --- .../Native/Subscription/NativeTimeSeriesSubscription.swift | 2 +- DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() }