private CryptoFuture ConvertFuture(Instrument instrument) { var isFutures = IsFuturesMarket(instrument.Symbol); if (!isFutures) { return(null); } var future = new CryptoFuture { Expiry = instrument.Expiry, Name = instrument.Symbol, Underlying = instrument.Underlying, Type = FutureType.Future }; return(future); }
private CryptoFuture ConvertFuture(Future future) { if (future == null) { return(null); } var cryptoFuture = new CryptoFuture { Expiry = future.Expiry, Name = future.Name, Underlying = future.Underlying, Perpetual = future.Perpetual, Type = ConvertFutureType(future.Type), Group = ConvertGroup(future.Group), MoveStart = future.MoveStart }; return(cryptoFuture); }