Esempio n. 1
0
 def handle_bid(self, bid):
     ask = match_incoming_bid(bid)
     if ask:
         return trade_offer(bid, ask)
     else:
         offers.append(bid)
         return "Your bid got processed!"
Esempio n. 2
0
 def handle_bid(self, bid):
     ask = match_incoming_bid(bid)
     if ask:
         return trade_offer(bid, ask)
     else:
         offers.append(bid)
         return "Your bid got processed!"
Esempio n. 3
0
 def handle_ask(self, ask):
     bid = match_incoming_ask(ask)
     if bid:
         return trade_offer(ask, bid)
     else:
         offers.append(ask)
         return 'Your ask got processed!'
Esempio n. 4
0
 def handle_ask(self, ask):
     bid = match_incoming_ask(ask)
     if bid:
         return trade_offer(ask, bid)
     else:
         offers.append(ask)
         return "Your ask got processed!"