コード例 #1
0
        public static Enums.TimeInForce ToCoreEquivalent(this BinanceNet.Objects.TimeInForce input)
        {
            switch (input)
            {
            case BinanceNet.Objects.TimeInForce.GoodTillCancel:
                return(Enums.TimeInForce.GoodTilCanceled);

            case BinanceNet.Objects.TimeInForce.ImmediateOrCancel:
                return(Enums.TimeInForce.ImmediateOrCancel);
            }

            throw new ArgumentException($"{input} is an unknown TimeInForce");
        }
コード例 #2
0
 public static core.TimeInForce ConvertTimeInForce(binance.Objects.TimeInForce timeInForce)
 {
     throw new NotImplementedException();
 }