Market.buy returns a rich dict with the order_id, Market.sell just returns None
very simple fix
diff --git a/bitshares/market.py b/bitshares/market.py
index 37aa827..cb385c6 100644
--- a/bitshares/market.py
+++ b/bitshares/market.py
@@ -518,6 +518,8 @@ class Market(dict):
tx["orderid"] = tx["operation_results"][0][1]
self.bitshares.blocking = prevblocking
+ return tx
+
def cancel(self, orderNumber, account=None):
""" Cancels an order you have placed in a given market. Requires
only the "orderNumber". An order number takes the form
Reactions are currently unavailable
Market.buy returns a rich dict with the order_id, Market.sell just returns None
very simple fix
diff --git a/bitshares/market.py b/bitshares/market.py index 37aa827..cb385c6 100644 --- a/bitshares/market.py +++ b/bitshares/market.py @@ -518,6 +518,8 @@ class Market(dict): tx["orderid"] = tx["operation_results"][0][1] self.bitshares.blocking = prevblocking + return tx + def cancel(self, orderNumber, account=None): """ Cancels an order you have placed in a given market. Requires only the "orderNumber". An order number takes the form