Constructor Ticker
- Namespace
- WhalesSecret.TradeScriptLib.Entities.MarketData
- Assembly
- WhalesSecret.TradeScriptLib.dll
Ticker(ExchangeSymbolPair, long, DateTime, decimal, decimal, decimal, decimal, decimal?, decimal?)
Creates a new instance of the object.
[JsonConstructor]
public Ticker(ExchangeSymbolPair exchangeSymbolPair, long lastUpdateId, DateTime lastUpdate, decimal bestBidPrice, decimal bestBidQuantity, decimal bestAskPrice, decimal bestAskQuantity, decimal? lastPrice, decimal? lastQuantity)
Parameters
exchangeSymbolPair
ExchangeSymbolPairExchange symbol pair of the ticker.
lastUpdateId
longID of the last applied update to this ticker.
lastUpdate
DateTimeUTC time when the latest piece of information for this instance was received.
bestBidPrice
decimalBest bid price.
bestBidQuantity
decimalBest bid quantity.
bestAskPrice
decimalBest ask price.
bestAskQuantity
decimalBest ask quantity.
lastPrice
decimal?Price of the last trade, or
null
if the last quantity is not available.lastQuantity
decimal?Quantity of the last trade, or
null
if the last quantity is not available.