diff --git a/IntrinioRealTimeClient.nuspec b/IntrinioRealTimeClient.nuspec index 80dd4aa..a4a21f0 100644 --- a/IntrinioRealTimeClient.nuspec +++ b/IntrinioRealTimeClient.nuspec @@ -2,7 +2,7 @@ IntrinioRealTimeClient - 9.2.0 + 10.0.0 Intrinio SDK for Real-Time Stock Prices Intrinio Intrinio @@ -10,11 +10,11 @@ https://licenses.nuget.org/MIT https://github.com/intrinio/intrinio-realtime-csharp-sdk Intrinio provides real-time stock prices via a two-way WebSocket connection. - Version 9.2.0 release. + Version 10.0.0 release. Copyright 2024 Intrinio fintech stocks prices websocket real-time market finance - + @@ -30,14 +30,14 @@ - - - - - - - - + + + + + + + + diff --git a/IntrinioRealTimeSDK/IntrinioRealTimeSDK.csproj b/IntrinioRealTimeSDK/IntrinioRealTimeSDK.csproj index 0537564..0242817 100644 --- a/IntrinioRealTimeSDK/IntrinioRealTimeSDK.csproj +++ b/IntrinioRealTimeSDK/IntrinioRealTimeSDK.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 en diff --git a/IntrinioRealtimeMultiExchange/Client.fs b/IntrinioRealtimeMultiExchange/Client.fs index 07987d9..9c051ad 100644 --- a/IntrinioRealtimeMultiExchange/Client.fs +++ b/IntrinioRealtimeMultiExchange/Client.fs @@ -62,7 +62,7 @@ type Client( let useOnQuote : bool = not (obj.ReferenceEquals(onQuote,null)) let logPrefix : string = String.Format("{0}: ", config.Provider.ToString()) let clientInfoHeaderKey : string = "Client-Information" - let clientInfoHeaderValue : string = "IntrinioDotNetSDKv9.2" + let clientInfoHeaderValue : string = "IntrinioDotNetSDKv10.0" let messageVersionHeaderKey : string = "UseNewEquitiesFormat" let messageVersionHeaderValue : string = "v2" let mainThreadPriority = Thread.CurrentThread.Priority //this is set outside of our scope - let's not interfere. @@ -219,13 +219,10 @@ type Client( let getToken() : string = tLock.EnterUpgradeableReadLock() try - if (DateTime.Now - TimeSpan.FromDays(1.0)) > (snd token) - then (fst token) - else - tLock.EnterWriteLock() - try doBackoff(trySetToken) - finally tLock.ExitWriteLock() - fst token + tLock.EnterWriteLock() + try doBackoff(trySetToken) + finally tLock.ExitWriteLock() + fst token finally tLock.ExitUpgradeableReadLock() let makeJoinMessage(tradesOnly: bool, symbol: string) : byte[] = @@ -381,13 +378,8 @@ type Client( wsLock.EnterWriteLock() try wsState.IsReconnecting <- true finally wsLock.ExitWriteLock() - if (DateTime.Now - TimeSpan.FromDays(5.0)) > (wsState.LastReset) - then - let _token : string = getToken() - resetWebSocket(_token) - else - try wsState.WebSocket.Open() - with _ -> () + let _token : string = getToken() + resetWebSocket(_token) false doBackoff(reconnectFn) let _token : string = getToken() diff --git a/IntrinioRealtimeMultiExchange/IntrinioRealtimeMultiExchange.fsproj b/IntrinioRealtimeMultiExchange/IntrinioRealtimeMultiExchange.fsproj index 58955a5..641e672 100644 --- a/IntrinioRealtimeMultiExchange/IntrinioRealtimeMultiExchange.fsproj +++ b/IntrinioRealtimeMultiExchange/IntrinioRealtimeMultiExchange.fsproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 true