Files
spark/src/client/spark_api/MarketData/TradeMessageExtensions.cs
T
John Colvin 4499a3751f refactor: Move TradesSource to spark_api
So it can be used in the new websocket api
2023-02-06 19:42:43 -05:00

11 lines
231 B
C#

using bts.co2;
using System;
namespace mbts.spark {
static class TradeMessageExtensions {
public static double price(this TradeMessageImmutable trade) =>
trade.Mantissa * Math.Pow(10, trade.Exponent);
}
}