public Contracts.PairPrice CoinbaseProFillConverter(CoinbaseProApi.NetCore.Entities.Fill fill) { var pairPrice = new Contracts.PairPrice { Pair = fill.product_id, Price = fill.price }; return(pairPrice); }
public Contracts.PairPrice CoinbaseProTickerConverter(CoinbaseProApi.NetCore.Entities.Ticker ticker, string pair) { var pairPrice = new Contracts.PairPrice { Pair = pair, Price = ticker.price }; return(pairPrice); }
public Contracts.PairPrice BittrexMarketSummaryToPairPriceConverter(BittrexApi.NetCore.Entities.MarketSummary marketSummary) { var pairPrice = new Contracts.PairPrice { Pair = marketSummary.pair, Price = marketSummary.last }; return(pairPrice); }
public Contracts.PairPrice BinanceTickerConverter(Binance.NetCore.Entities.Ticker ticker) { var pairPrice = new Contracts.PairPrice { Pair = ticker.Symbol, Price = ticker.Price }; return(pairPrice); }
public Contracts.PairPrice KuCoinStatsToPairPrice(KuCoinApi.Net.Entities.TradingPairStats stats) { var pairPrice = new Contracts.PairPrice { Pair = stats.Pair, Price = stats.Close }; return(pairPrice); }
public Contracts.PairPrice KuCoinTickToPairPrice(KuCoinApi.NetCore.Entities.Tick tick) { var pairPrice = new Contracts.PairPrice { Pair = tick.coinType + "-" + tick.coinTypePair, Price = tick.lastDealPrice }; return(pairPrice); }