public override double SetBidPrice(ExchangePricesEventArgs e) { _bidPrice = e.BchPrice[0]; return(_bidPrice); }
public override void InitExchangePrice(BaseExchange ex, ExchangePricesEventArgs args) { args.IotaPrice = new double[] { GetBidOrder(ex).Price, GetAskOrder(ex).Price }; args.IotaAmount = new double[2][] { GetBidOrder(ex).Amount, GetAskOrder(ex).Amount }; }
public override double GetPrice(ExchangePricesEventArgs args, int index) { return(args.IotaPrice[index]); }
public override double[] GetAmount(ExchangePricesEventArgs args, int index) { return(args.IotaAmount[index]); }
public override double SetAskPrice(ExchangePricesEventArgs e) { _askPrice = e.XrpPrice[1]; return(_askPrice); }