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