public static async Task <List <ImportedCoin> > ImportAPI_Coins(ExchangeApiInfo exchangeApiInfo, PegaUser user) { switch (exchangeApiInfo.Exchange) { case Types.Exchanges.BitTrex: return(await FetchAPIRepository.ApiImport_BitTrex(exchangeApiInfo.ApiPublic, exchangeApiInfo.ApiPrivate, user)); case Types.Exchanges.GDax: return(await FetchAPIRepository.ApiImport_GDax(exchangeApiInfo.ApiPublic, exchangeApiInfo.ApiPrivate, exchangeApiInfo.ApiThirdKey, user)); } return(new List <ImportedCoin>()); }
public static async Task <Dictionary <int, HistoricCoinPrice> > GetAllHistoricPrice_BTC_ETH(string serverMapPath = null, bool useHomeUrl = false) { return(await FetchAPIRepository.GetAllHistoricPrice_BTC_ETH(serverMapPath, useHomeUrl)); }
// API Imports public static async Task <ResultsPair <List <CryptoCoin> > > ApiImport_EtherAddress(List <MarketCoin> marketCoins, string etherAddress, int portfolioId, PegaUser user) { return(await FetchAPIRepository.ApiImport_EtherAddress(marketCoins, etherAddress, portfolioId, user)); }
public static async Task <List <MarketCoin> > GetAllCoinsFromApiAsync() { return(await FetchAPIRepository.GetAllCoinsFromApiAsync()); }