Beispiel #1
0
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     currency_pairs = []
     market_all = self.upbit.get_market_all()
     for market in market_all:
         tmp = market['market'].split('-')
         currency_pairs.append(CurrencyPair(tmp[0], tmp[1]))
     return currency_pairs
Beispiel #2
0
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     currency_pairs = []
     exchange_info = self.binance.get_exchange_info()
     for symbol in exchange_info['symbols']:
         currency = symbol['baseAsset']
         market_currency = symbol['symbol'][len(currency):]
         currency_pairs.append(CurrencyPair(market_currency, currency))
     return currency_pairs
Beispiel #3
0
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     currency_pairs = []
     symbols = self.bitfinex.get_symbols()
     for symbol in symbols:
         currency = symbol[0:3].upper()
         market_currency = symbol[3:].upper()
         currency_pairs.append(CurrencyPair(market_currency, currency))
     return currency_pairs
Beispiel #4
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        pair_list = self._bibox.get_pair_list()

        for pair in pair_list['result']:
            market_currency = pair['pair'].split('_')[1]
            currency = pair['pair'].split('_')[0]
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
Beispiel #5
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        markets = self._zb.get_markets()

        for market in markets.keys():
            market_currency = market.split('_')[1].upper()
            currency = market.split('_')[0].upper()
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
Beispiel #6
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        symbols = self._huobi.get_symbols()

        for symbol_obj in symbols['data']:
            market_currency = symbol_obj['quote-currency'].upper()
            currency = symbol_obj['base-currency'].upper()
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
Beispiel #7
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        pairs = self._lb.get_currency_pairs()

        for pair in pairs:
            market_currency = pair.split('_')[1].upper()
            currency = pair.split('_')[0].upper()
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        symbols = self._bf.get_symbols()

        for symbol in symbols['data']:
            market_currency = symbol['symbol'].split('-')[1].upper()
            currency = symbol['symbol'].split('-')[2].upper()
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
Beispiel #9
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        products = self._coinbase_pro.get_products()

        for product_obj in products:
            market_currency = product_obj['quote_currency']
            currency = product_obj['base_currency']
            currency_pairs.append(CurrencyPair(market_currency, currency))
        return currency_pairs
Beispiel #10
0
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     pairs = self.okex.get_pairs()
     currency_pairs = []
     for pair_line in pairs.split('\n')[1:]:
         pair = pair_line.split(',')[1]
         market_currency = pair.split('_')[1].upper()
         currency = pair.split('_')[0].upper()
         currency_pairs.append(CurrencyPair(market_currency, currency))
     return currency_pairs
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        ticker_all = self._coinone.get_ticker('all')

        for key in ticker_all.keys():
            if key in ['errorCode', 'result', 'timestamp']:
                continue
            currency_pairs.append(CurrencyPair("KRW", key.upper()))
        return currency_pairs
Beispiel #12
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        symbols = self._bene.get_symbols()

        for symbol in symbols['symbol']:
            market_currency = symbol['quoteAsset']
            currency = symbol['baseAsset']
            currency_pairs.append(
                CurrencyPair(market_currency, currency))
        return currency_pairs
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     currency_pairs = []
     ticker_all = self.bithumb.ticker('ALL')
     if int(ticker_all['status']) != 0:
         raise Exception('ticker() failed(%s)' % ticker_all['status'])
     for key in ticker_all['data'].keys():
         if key == 'date':
             continue
         currency_pairs.append(CurrencyPair("KRW", key.upper()))
     return currency_pairs
Beispiel #14
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        trading_pairs = self._gopax.get_trading_pairs()

        for pair_obj in trading_pairs:
            base = pair_obj['baseAsset']
            quote = pair_obj['quoteAsset']
            currency_pairs.append(CurrencyPair(quote, base))

        return currency_pairs
Beispiel #15
0
 def get_currency_pairs(self):
     '''
     Gets currency list supported by exchange
     :return: supported currency pair list
     :rtype: CurrencyPair[]
     '''
     currency_pairs = []
     markets = self._bitflyer.get_markets()
     for market_obj in markets:
         market = market_obj['product_code']
         if len(market) != 7:
             continue
         currency = market[0:3]
         market_currency = market[4:]
         currency_pairs.append(CurrencyPair(market_currency, currency))
     return currency_pairs
Beispiel #16
0
    def get_currency_pairs(self):
        '''
        Gets currency list supported by exchange
        :return: supported currency pair list
        :rtype: CurrencyPair[]
        '''
        currency_pairs = []
        market_list = self._ex.get_market_list()

        markets = ['BCH', 'BTC', 'ETH', 'USDT']

        for market in market_list['data']:
            for m in markets:
                if market.endswith(m):
                    market_currency = m
                    currency = market[0:len(market)-len(m)]
                    currency_pairs.append(
                        CurrencyPair(market_currency, currency))
                    break
        return currency_pairs