public CoinsEMarket(CoinsEMarketId id, string baseCurrencyCode, string quoteCurrencyCode, string label, MarketStatistics statistics, string status, decimal tradeFee) : base(id, baseCurrencyCode, quoteCurrencyCode, label, statistics) { this.Status = status; this.TradeFee = tradeFee; }
public CoinsEMarketTrade(TradeId tradeId, DateTime dateTime, decimal price, decimal quantity, CoinsEMarketId marketId, CoinsEOrderNumber buyOrderId, CoinsEOrderNumber sellOrderId, string status) : base(tradeId, dateTime, price, quantity, marketId) { this.BuyOrderId = buyOrderId; this.SellOrderId = sellOrderId; this.Status = status; }
public static CoinsEMarketTrade Parse(JObject jObject) { CoinsETradeId tradeId = new CoinsETradeId(jObject.Value <string>("id")); CoinsEMarketId marketId = new CoinsEMarketId(jObject.Value <string>("pair")); CoinsEOrderNumber buyOrderId = new CoinsEOrderNumber(jObject.Value <long>("buy_order_no")); CoinsEOrderNumber sellOrderId = new CoinsEOrderNumber(jObject.Value <long>("sell_order_no")); DateTime dateTime = CoinsEParsers.ParseTime(jObject.Value <int>("created")); return(new CoinsEMarketTrade(tradeId, dateTime, jObject.Value <decimal>("rate"), jObject.Value <decimal>("quantity"), marketId, buyOrderId, sellOrderId, jObject.Value <string>("status"))); }
public static CoinsEMarketTrade Parse(JObject jObject) { CoinsETradeId tradeId = new CoinsETradeId(jObject.Value<string>("id")); CoinsEMarketId marketId = new CoinsEMarketId(jObject.Value<string>("pair")); CoinsEOrderNumber buyOrderId = new CoinsEOrderNumber(jObject.Value<long>("buy_order_no")); CoinsEOrderNumber sellOrderId = new CoinsEOrderNumber(jObject.Value<long>("sell_order_no")); DateTime dateTime = CoinsEParsers.ParseTime(jObject.Value<int>("created")); return new CoinsEMarketTrade(tradeId, dateTime, jObject.Value<decimal>("rate"), jObject.Value<decimal>("quantity"), marketId, buyOrderId, sellOrderId, jObject.Value<string>("status")); }
public static CoinsEMyOrder Parse(JObject json) { DateTime dateTime = CoinsEParsers.ParseTime(json.Value <int>("created")); CoinsEMarketId marketId = new CoinsEMarketId(json.Value <string>("pair")); return(new CoinsEMyOrder(new CoinsEOrderId(marketId, json.Value <string>("id")), CoinsEParsers.ParseOrderType(json.Value <string>("order_type")), dateTime, json.Value <decimal>("rate"), json.Value <decimal>("quantity_remaining"), json.Value <decimal>("quantity"), marketId ) { IsOpen = json.Value <bool>("is_open"), Status = CoinsEParsers.ParseOrderStatus(json.Value <string>("status")) }); }
public static CoinsEMyOrder Parse(JObject json) { DateTime dateTime = CoinsEParsers.ParseTime(json.Value<int>("created")); CoinsEMarketId marketId = new CoinsEMarketId(json.Value<string>("pair")); return new CoinsEMyOrder(new CoinsEOrderId(marketId, json.Value<string>("id")), CoinsEParsers.ParseOrderType(json.Value<string>("order_type")), dateTime, json.Value<decimal>("rate"), json.Value<decimal>("quantity_remaining"), json.Value<decimal>("quantity"), marketId ) { IsOpen = json.Value<bool>("is_open"), Status = CoinsEParsers.ParseOrderStatus(json.Value<string>("status")) }; }
public static MyTrade ParseMyTrade(JObject jObject, CoinsEMarketId marketId) { throw new NotImplementedException(); }
public CoinsEOrderId(CoinsEMarketId setMarketId, string setValue) { this.MarketId = setMarketId; this.Value = setValue; }
private CoinsEMyOrder(CoinsEOrderId orderId, OrderType orderType, DateTime created, decimal price, decimal quantity, decimal originalQuantity, CoinsEMarketId marketId) : base(orderId, orderType, created, price, quantity, originalQuantity, marketId) { }