public ExchangeOrderResult PlaceOrder(IExchangeAPI api, string symbol, CryptoTools.OrderSide side, decimal price, decimal amount, string strategyId = null)
        {
            var res = ApiHelper.PlaceOrder(api, symbol, side, price, amount);
            var xo  = ApiHelper.CreateXOrder(api.Name, res, strategyId); //new XOrder(api, res, strategyId);

            m_orders.Add(xo);
            return(res);
        }
Beispiel #2
0
 // Helper method for SELL orders
 public static ExchangeOrderResult Sell(this IExchangeAPI api, string symbol, decimal price, decimal amount)
 {
     return(ApiHelper.PlaceOrder(api, symbol, OrderSide.Sell, price, amount));
 }