Beispiel #1
0
from binascii import hexlify
from tabulate import tabulate
import hashlib

from base58 import b58decode_check

from .core import (AutoFallbackFetcher, enforce_service_mode,
                   get_optimal_services, get_magic_bytes, RevertToPrivateMode,
                   CurrencyNotSupported, NoService, NoServicesDefined, Service)
from .historical_price import Quandl
from .crypto_data import crypto_data
from bitcoin import sha256, pubtoaddr, privtopub, encode_privkey, encode_pubkey, privkey_to_address
from socketIO_client import SocketIO
from moneywagon.services import _get_all_services

ALL_SERVICES = _get_all_services()
EXCHANGE_SERVICES = _get_all_services(just_exchange=True)

is_py2 = False
if sys.version_info <= (3, 0):
    is_py2 = True


class CompositeResponse(object):
    def __init__(self, service1, service2):
        self.service1 = service1
        self.service2 = service2

    def json(self):
        return {
            self.service1.name: self.service1.last_raw_response.json(),
Beispiel #2
0
from binascii import hexlify
from tabulate import tabulate
import hashlib

from base58 import b58decode_check, b58encode_check

from .core import (
    AutoFallbackFetcher, enforce_service_mode, get_optimal_services, get_magic_bytes,
    RevertToPrivateMode, CurrencyNotSupported, NoService, NoServicesDefined, Service
)
from .historical_price import Quandl
from .crypto_data import crypto_data
from bitcoin import sha256, pubtoaddr, privtopub, encode_privkey, encode_pubkey, privkey_to_address
from moneywagon.services import _get_all_services

ALL_SERVICES = _get_all_services()
EXCHANGE_SERVICES = _get_all_services(just_exchange=True)

is_py2 = False
if sys.version_info <= (3,0):
    is_py2 = True

class CompositeResponse(object):
    def __init__(self, service1, service2):
        self.service1 = service1
        self.service2 = service2

    def json(self):
        return {
            self.service1.name: self.service1.last_raw_response.json(),
            self.service2.name: self.service2.last_raw_response.json(),
Beispiel #3
0
from binascii import hexlify
from tabulate import tabulate
import hashlib

from base58 import b58decode_check

from .core import (AutoFallbackFetcher, enforce_service_mode,
                   get_optimal_services, get_magic_bytes, RevertToPrivateMode,
                   CurrencyNotSupported, NoService, NoServicesDefined)
from .historical_price import Quandl
from .crypto_data import crypto_data
from bitcoin import sha256, pubtoaddr, privtopub, encode_privkey, encode_pubkey, privkey_to_address
from socketIO_client import SocketIO
from moneywagon.services import _get_all_services

ALL_SERVICES = _get_all_services()

is_py2 = False
if sys.version_info <= (3, 0):
    is_py2 = True


class CompositeResponse(object):
    def __init__(self, service1, service2):
        self.service1 = service1
        self.service2 = service2

    def json(self):
        return {
            self.service1.name: self.service1.last_raw_response.json(),
            self.service2.name: self.service2.last_raw_response.json(),