def setUp(self): # Object creation self.proposed_trade_payload = TradePayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), OrderNumber(1), TraderId('1'), OrderNumber(2), 1235, Price(63400, 'BTC'), Quantity(30, 'MC'), Timestamp(1462224447.117), '192.168.1.1', 1234)
def setUp(self): # Object creation self.payment_payload = PaymentPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('1'), TraderId('2'), TransactionNumber(2), Quantity(20, 'MC'), Price(10, 'BTC'), WalletAddress('a'), WalletAddress('b'), PaymentId('3'), Timestamp(0.0), True)
def setUp(self): # Object creation self.start_transaction_payload = StartTransactionPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('1'), TraderId('2'), TransactionNumber(2), TraderId('2'), OrderNumber(3), TraderId('0'), OrderNumber(4), 1236, Price(2, 'BTC'), Quantity(3, 'MC'), Timestamp(0.0))
def setUp(self): # Object creation self.offer_payload = OfferPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), OrderNumber(1), Price(63400, 'BTC'), Quantity(30, 'MC'), Timeout(1470004447.117), Timestamp(1462224447.117), 'a', 'b', Ttl(2), "1.1.1.1", 1)
def setUp(self): # Object creation self.match_payload = MatchPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), OrderNumber(1), Price(63400, 'BTC'), Quantity(30, 'MC'), Timeout(1470004447.117), Timestamp(1462224447.117), "1.1.1.1", 1, OrderNumber(2), Quantity(20, 'MC'), TraderId('1'), TraderId('2'), 'a')
def setUp(self): # Object creation self.order_status_request_payload = OrderStatusRequestPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), Timestamp.now(), TraderId('1'), OrderNumber(3), 1234)
def setUp(self): # Object creation self.decline_match_payload = DeclineMatchPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), Timestamp.now(), 'a', DeclineMatchReason.ORDER_COMPLETED)
def setUp(self): # Object creation self.accept_match_payload = AcceptMatchPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), Timestamp.now(), 'a', Quantity(20, 'MC'))
def setUp(self): # Object creation self.declined_trade_payload = DeclinedTradePayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), OrderNumber(1), TraderId('1'), OrderNumber(2), 1234, Timestamp(1462224447.117), DeclinedTradeReason.ORDER_COMPLETED)
def setUp(self): # Object creation self.wallet_info_payload = WalletInfoPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('1'), TraderId('2'), TransactionNumber(2), WalletAddress('a'), WalletAddress('b'), Timestamp(3600.0))
def setUp(self): # Object creation self.cancel_order_payload = CancelOrderPayload.Implementation( MetaObject(), TraderId('0'), MessageNumber('message_number'), Timestamp.now(), OrderNumber(1), Ttl(2))
def setUp(self): # Object creation self.market_intro_payload = MarketIntroPayload.Implementation( MetaObject(), ("a", 1324), ("b", 1234), ("c", 1234), True, u"public", None, 3, "f")