Ejemplo n.º 1
0
 def setUp(self):
     # Object creation
     self.proposed_trade = Trade.propose(MessageId(TraderId('0'), MessageNumber('message_number')),
                                         OrderId(TraderId('0'), OrderNumber(1)),
                                         OrderId(TraderId('1'), OrderNumber(2)),
                                         Price(63400, 'BTC'), Quantity(30, 'MC'), Timestamp(1462224447.117))
     self.declined_trade = Trade.decline(MessageId(TraderId('0'), MessageNumber('message_number')),
                                         Timestamp(1462224447.117), self.proposed_trade)
Ejemplo n.º 2
0
 def setUp(self):
     # Object creation
     self.proposed_trade = Trade.propose(TraderId('0'),
                                         OrderId(TraderId('0'), OrderNumber(1)),
                                         OrderId(TraderId('1'), OrderNumber(2)),
                                         AssetPair(AssetAmount(60, 'BTC'), AssetAmount(30, 'MB')),
                                         Timestamp(1462224447.117))
     self.declined_trade = Trade.decline(TraderId('0'),
                                         Timestamp(1462224447.117), self.proposed_trade,
                                         DeclinedTradeReason.ORDER_COMPLETED)
Ejemplo n.º 3
0
 def setUp(self):
     # Object creation
     self.proposed_trade = Trade.propose(
         TraderId(b'0'), OrderId(TraderId(b'0'), OrderNumber(1)),
         OrderId(TraderId(b'1'), OrderNumber(2)),
         AssetPair(AssetAmount(60, 'BTC'), AssetAmount(30, 'MB')),
         Timestamp(1462224447.117))
     self.declined_trade = Trade.decline(
         TraderId(b'0'), Timestamp(1462224447.117), self.proposed_trade,
         DeclinedTradeReason.ORDER_COMPLETED)