public RealRobot(TradingBaseStrategy tradingBaseStrategy, string token) { var connection = ConnectionFactory.GetConnection(token); _context = connection.Context; _tradingBaseStrategy = tradingBaseStrategy; _tradingBaseStrategy.Context = _context; _tradePositions = new List <TradePosition>(); }
public SandboxRobot(TradingBaseStrategy tradingBaseStrategy, string token) { var connection = ConnectionFactory.GetSandboxConnection(token); _context = connection.Context; _tradingBaseStrategy = tradingBaseStrategy; _tradingBaseStrategy.Context = _context; _tradingBaseStrategy.OnActionOperation += ProcessEventOperation; _tradePositions = new List <TradePosition>(); }