Beispiel #1
0
        public static Quote ToQuote(jsonQuote _Quote)
        {
            Quote tmp = new Quote {
                BaseAmount    = decimal.Parse(_Quote.base_amount, System.Globalization.NumberFormatInfo.InvariantInfo),
                CounterAmount = decimal.Parse(_Quote.counter_amount, System.Globalization.NumberFormatInfo.InvariantInfo),
                CreatedAt     = JSON.FromEpoch(_Quote.created_at),
                Discareded    = _Quote.discarded,
                Exercised     = _Quote.exercised,
                ExpiresAt     = JSON.FromEpoch(_Quote.expires_at),
                ID            = _Quote.id,
                Pair          = _Quote.pair,
                Type          = _Quote.type
            };

            return(tmp);
        }
Beispiel #2
0
 public static Quote FromJsonQuote(jsonQuote _Quote)
 {
     return(_Quote.ToQuote());
 }