Skip to content

Commit

Permalink
new cancel order support
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 31, 2016
1 parent f0eee7f commit b501a3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/budy/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,8 @@ def end_pay_order(self, key, payload):
url = self.base_url + "orders/%s/end_pay" % key
contents = self.put(url, data_j = payload)
return contents

def cancel_order(self, key, payload):
url = self.base_url + "orders/%s/cancel" % key
contents = self.put(url, data_j = payload)
return contents

0 comments on commit b501a3b

Please sign in to comment.