Beispiel #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!"
Beispiel #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!"
Beispiel #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!'
Beispiel #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!"