public void SellAlert(string symbolName, double price) { IPortfolioManager pm = new PortfolioManager(); PositionMessage pos = pm.GetPosition(symbolName); UserAgent ua = new UserAgent(); ua.generateAlert(symbolName, tradeTypes.Sell, pos.Quantity, price); }
public void BuyAlert(string symbolName, int quantity, double price) { PortfolioManager pm = new PortfolioManager(); IUserAgent ua = new UserAgent(); ua.generateAlert(symbolName, tradeTypes.Buy, pm.DefaultBuySize(price), price); }