Update bch lib from minipos project
Simon Volpert
6 years ago
15 | 15 | TIMEOUT = 5 |
16 | 16 | exchanges = [ |
17 | 17 | { |
18 | 'url': 'https://api.coinmarketcap.com/v1/ticker/bitcoin-cash/?convert={cur}', | |
18 | 'url': 'https://api.coinmarketcap.com/v2/ticker/1831/?convert={cur}', | |
19 | 19 | 'price_key': '0.price_{cur_lower}', |
20 | 20 | }, |
21 | 21 | { |
54 | 54 | 'prefixes': '13', |
55 | 55 | }, |
56 | 56 | { |
57 | 'url': 'https://blockdozer.com/api/addr/bitcoincash:{address}', | |
57 | 'url': 'https://blockdozer.com/api/addr/{address}', | |
58 | 58 | 'tx_url': 'https://blockdozer.com/api/tx/{txid}', |
59 | 59 | 'balance_key': None, |
60 | 60 | 'confirmed_key': 'balance', |
327 | 327 | if prefixes == 'qp13': |
328 | 328 | server = pick_explorer(explorer, ignore_errors=ignore_errors) |
329 | 329 | else: |
330 | server = pick_explorer(explorer, address_prefix=prefixes[0], ignore_erros=ignore_errors) | |
330 | server = pick_explorer(explorer, address_prefix=prefixes[0], ignore_errors=ignore_errors) | |
331 | 331 | # Try to get balance |
332 | 332 | try: |
333 | 333 | # Get and cache the received data for possible future analysis |