private TickerPairResponse(TickerPair ticketPair) { this.mid = ticketPair.mid; this.bid = ticketPair.bid; this.ask = ticketPair.ask; this.last_price = ticketPair.last_price; this.low = ticketPair.low; this.high = ticketPair.high; this.volume = ticketPair.volume; this.timestamp = ticketPair.timestamp; }
public string timestamp; //[time] The timestamp at which this information was valid public static TickerPairResponse FromJSON(string response) { TickerPair tickerPair = JsonConvert.DeserializeObject <TickerPair>(response); return(new TickerPairResponse(tickerPair)); }