Skip to content

Commit 57b978d

Browse files
committed
fix: wrong value of time if timeseriessubscription
1 parent b4d574f commit 57b978d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DXFeedFramework/Native/Subscription/NativeTimeSeriesSubscription.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class NativeTimeSeriesSubscription {
2929
_ = try ErrorCheck.nativeCall(thread, dxfg_DXFeedTimeSeriesSubscription_setFromTime(
3030
thread,
3131
native,
32-
0))
32+
fromTime))
3333
}
3434

3535
}

DXFeedFrameworkTests/DXTimeSeriesSubscriptionTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ final class DXTimeSeriesSubscriptionTest: XCTestCase {
3636
return anonymCl
3737
}
3838
try subscription?.add(listener: listener)
39-
try subscription?.set(fromTime: 10000)
40-
try subscription?.addSymbols(["ETH/USD:GDAX", "IBM"])
39+
try subscription?.set(fromTime: 1717045200)
40+
try subscription?.addSymbols(["AAPL{=8h}"])
4141
wait(for: [receivedEventsExpectation], timeout: 3.0)
4242
try endpoint.closeAndAwaitTermination()
4343
}

0 commit comments

Comments
 (0)