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