Exemplo 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!"
Exemplo 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!"
Exemplo 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!'
Exemplo 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!"