Example #1
0
 private CryptoTradeSide ConvertSide(BitmexSide tradeSide)
 {
     if (tradeSide == BitmexSide.Undefined)
     {
         return(CryptoTradeSide.Undefined);
     }
     return(tradeSide == BitmexSide.Buy ? CryptoTradeSide.Buy : CryptoTradeSide.Sell);
 }
        private CryptoOrderSide ConvertSide(BitmexSide side)
        {
            switch (side)
            {
            case BitmexSide.Buy:
                return(CryptoOrderSide.Bid);

            case BitmexSide.Sell:
                return(CryptoOrderSide.Ask);

            default:
                return(CryptoOrderSide.Undefined);
            }
        }