diff --git a/Intrinio.Realtime/Equities/Tick.cs b/Intrinio.Realtime/Equities/Tick.cs index c5d318f..9f9e58e 100644 --- a/Intrinio.Realtime/Equities/Tick.cs +++ b/Intrinio.Realtime/Equities/Tick.cs @@ -88,7 +88,7 @@ public static bool GetTradeBytes(Span bufferToWriteTo, Trade trade, out in bufferToWriteTo[26 + symbolLength] = Convert.ToByte(conditionLength); bool success = BitConverter.TryWriteBytes(bufferToWriteTo.Slice(4 + symbolLength, 2), trade.MarketCenter); - success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(6 + symbolLength, 4), trade.Price); + success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(6 + symbolLength, 4), Convert.ToSingle(trade.Price)); success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(10 + symbolLength, 4), trade.Size); success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(14 + symbolLength, 8), Convert.ToUInt64((trade.Timestamp - DateTime.UnixEpoch).Ticks) * 100UL); success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(22 + symbolLength, 4), Convert.ToUInt32(trade.TotalVolume)); @@ -163,7 +163,7 @@ public static bool GetQuoteBytes(Span bufferToWriteTo, Quote quote, out in bufferToWriteTo[22 + symbolLength] = Convert.ToByte(conditionLength); bool success = BitConverter.TryWriteBytes(bufferToWriteTo.Slice(4 + symbolLength, 2), quote.MarketCenter); - success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(6 + symbolLength, 4), quote.Price); + success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(6 + symbolLength, 4), Convert.ToSingle(quote.Price)); success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(10 + symbolLength, 4), quote.Size); success = success && BitConverter.TryWriteBytes(bufferToWriteTo.Slice(14 + symbolLength, 8), Convert.ToUInt64((quote.Timestamp - DateTime.UnixEpoch).Ticks) * 100UL); diff --git a/Intrinio.Realtime/WebSocketClient.cs b/Intrinio.Realtime/WebSocketClient.cs index 463ece6..77d27be 100644 --- a/Intrinio.Realtime/WebSocketClient.cs +++ b/Intrinio.Realtime/WebSocketClient.cs @@ -36,7 +36,7 @@ public abstract class WebSocketClient private readonly Func _tryReconnect; private readonly HttpClient _httpClient = new (); private const string ClientInfoHeaderKey = "Client-Information"; - private const string ClientInfoHeaderValue = "IntrinioDotNetSDKv12.6"; + private const string ClientInfoHeaderValue = "IntrinioDotNetSDKv12.7"; private readonly ThreadPriority _mainThreadPriority; private readonly Thread[] _threads; private Thread? _receiveThread; diff --git a/IntrinioRealTimeClient.nuspec b/IntrinioRealTimeClient.nuspec index 4d4bc5b..4b9f1e2 100644 --- a/IntrinioRealTimeClient.nuspec +++ b/IntrinioRealTimeClient.nuspec @@ -2,7 +2,7 @@ IntrinioRealTimeClient - 12.6.0 + 12.7.0 Intrinio SDK for Real-Time Stock and Option Prices Intrinio Intrinio @@ -10,7 +10,7 @@ https://licenses.nuget.org/MIT https://github.com/intrinio/intrinio-realtime-csharp-sdk Intrinio provides real-time stock and option prices via a two-way WebSocket connection. - Version 12.6.0 release. + Version 12.7.0 release. Copyright 2024 Intrinio fintech stocks options prices websocket real-time market finance