public void Bind(ITradeAccount account, Marketplace marketplace) { _account = account; _account.Updated += TradeAccountOnUpdated; _marketplace = marketplace; UpdateAll(); }
public AutoTrader( ITradeAccount buyAccount, ITradeAccount sellAccount, TradeInfo tradeInfo) { this.BuyAccount = buyAccount; this.BuyAccount = sellAccount; this.TradeInfo = tradeInfo; }
public TradeFlowAnalyzer( TradeFlow tradeFlow, ITradeAccount binanceAccount, ITradeAccount bittrexAccount) { AnalyzeTheTradeFlow( tradeFlow, binanceAccount, bittrexAccount); }
public AutoTrader( ITradeAccount buyAccount, ITradeAccount sellAccount, TradeInfo tradeInfo, bool testMode, string trans, ILogger <AutoTrader> logger) { this._buyAccount = buyAccount; this._sellAccount = sellAccount; this._tradeInfo = tradeInfo; this._testMode = testMode; this._trans = trans; this._logger = logger; }
private void AnalyzeTheTradeFlow( TradeFlow tradeFlow, ITradeAccount binanceAccount, ITradeAccount bittrexAccount) { switch (tradeFlow) { case TradeFlow.BuyAtBinanceSellAtBittrex: this.SellAccount = bittrexAccount; this.BuyAccount = binanceAccount; break; case TradeFlow.SellAtBinanceBuyAtBittrex: this.SellAccount = binanceAccount; this.BuyAccount = bittrexAccount; break; default: break; } }
public static ITradeBotBuilder WithBuyAccount(this ITradeBotBuilder tradeBotBuilder, ITradeAccount buyAccount) { tradeBotBuilder.SetBuyAccount(buyAccount); return(tradeBotBuilder); }
public static ITradeBotBuilder WithSellAccount(this ITradeBotBuilder tradeBotBuilder, ITradeAccount sellAccount) { tradeBotBuilder.SetSellAccount(sellAccount); return(tradeBotBuilder); }
public static List <ITradeAccount> AddTradeAccount(this List <ITradeAccount> tradeAccounts, ITradeAccount tradeAccount) { tradeAccounts.Add(tradeAccount); return(tradeAccounts); }
public ITradeBotBuilder SetSellAccount(ITradeAccount sellAccount) { this._options.SellAccount = sellAccount; return(this); }
public ITradeBotBuilder SetBuyAccount(ITradeAccount buyAccount) { this._options.BuyAccount = buyAccount; return(this); }