Esempio n. 1
0
        public static string ConvertTradeType(TradeType signalTradeType)
        {
            // HACK!!! the direction is inverted
            switch (signalTradeType)
            {
            case TradeType.Sell:
                return("Buy");

            case TradeType.Buy:
                return("Sell");

            default:
                throw new ArgumentOutOfRangeException(nameof(signalTradeType), signalTradeType, null);
            }
        }
 private static Side ConvertSide(TradeType tradeType)
 {
     return(new Side(tradeType == TradeType.Buy ? Side.BUY : Side.SELL));
 }