MAPPING = {} # TICKER ######################################################################### # DEFAULT # TICKER = {LOW: 'low', # HIGH: 'high', # ASK: 'ask', # BID: 'bid', # LAST: 'last', # VOLUME24H: 'volume24h', # TIMESTAMP: 'timestamp'} MAPPING[constants.TICKER] = {} default.complete(default.TICKER, MAPPING[constants.TICKER]) # TRADES ######################################################################### # DEFAULT # TRADE = {TID: "tid", # PRICE: "price", # AMOUNT: "amount", # TIMESTAMP: "timestamp"} MAPPING[constants.TRADE] = {} default.complete(default.TRADE, MAPPING[constants.TRADE]) MAPPING[constants.TRADE_TYPE] = "" #{constants.BUY: "buy", constants.SELL: "sell"} # ORDERBOOK #######################################################################
MAPPING = {} # TICKER ######################################################################### # DEFAULT # TICKER = {LOW: 'low', # HIGH: 'high', # ASK: 'ask', # BID: 'bid', # LAST: 'last', # VOLUME24H: 'volume24h', # TIMESTAMP: 'timestamp'} MAPPING[constants.TICKER] = {} default.complete(default.TICKER, MAPPING[constants.TICKER]) # TRADES ######################################################################### # DEFAULT # TRADE = {TID: "tid", # PRICE: "price", # AMOUNT: "amount", # TIMESTAMP: "timestamp"} MAPPING[constants.TRADE] = {} default.complete(default.TRADE, MAPPING[constants.TRADE]) MAPPING[ constants.TRADE_TYPE] = "" #{constants.BUY: "buy", constants.SELL: "sell"}