Пример #1
0
        public static Enums.OrderType ToCoreEquivalent(this BinanceNet.Objects.OrderType input)
        {
            switch (input)
            {
            case BinanceNet.Objects.OrderType.Limit:
                return(Enums.OrderType.Limit);

            case BinanceNet.Objects.OrderType.LimitMaker:
                return(Enums.OrderType.LimitMaker);

            case BinanceNet.Objects.OrderType.Market:
                return(Enums.OrderType.Market);

            case BinanceNet.Objects.OrderType.StopLoss:
                return(Enums.OrderType.StopLoss);

            case BinanceNet.Objects.OrderType.StopLossLimit:
                return(Enums.OrderType.StopLossLimit);

            case BinanceNet.Objects.OrderType.TakeProfit:
                return(Enums.OrderType.TakeProfit);

            case BinanceNet.Objects.OrderType.TakeProfitLimit:
                return(Enums.OrderType.TakeProfitLimit);
            }

            throw new ArgumentException($"{input} is an unknown OrderType");
        }
Пример #2
0
 public static core.OrderType ConvertOrderType(binance.Objects.OrderType orderType)
 {
     throw new NotImplementedException();
 }