예제 #1
0
        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>());
        }
예제 #2
0
 public static async Task <Dictionary <int, HistoricCoinPrice> > GetAllHistoricPrice_BTC_ETH(string serverMapPath = null, bool useHomeUrl = false)
 {
     return(await FetchAPIRepository.GetAllHistoricPrice_BTC_ETH(serverMapPath, useHomeUrl));
 }
예제 #3
0
 // 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));
 }
예제 #4
0
 public static async Task <List <MarketCoin> > GetAllCoinsFromApiAsync()
 {
     return(await FetchAPIRepository.GetAllCoinsFromApiAsync());
 }