Skip to content

Commit f395f89

Browse files
pi314xxeroc
authored andcommitted
Update operations.py
1 parent d416313 commit f395f89

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

bitsharesbase/operations.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,27 @@ def __init__(self, *args, **kwargs):
12241224
]
12251225
)
12261226
)
1227-
1227+
1228+
class Limit_order_update(GrapheneObject):
1229+
def __init__(self, *args, **kwargs):
1230+
if isArgsThisClass(self, args):
1231+
self.data = args[0].data
1232+
else:
1233+
if len(args) == 1 and len(kwargs) == 0:
1234+
kwargs = args[0]
1235+
super().__init__(
1236+
OrderedDict(
1237+
[
1238+
("fee", Asset(kwargs["fee"])),
1239+
("seller", ObjectId(kwargs["seller"], "account")),
1240+
("order", ObjectId(kwargs["order"], "limit_order")),
1241+
("new_price", Optional(Price(kwargs["new_price"]))),
1242+
("delta_amount_to_sell", Optional(Asset(kwargs["delta_amount_to_sell"]))),
1243+
("new_expiration", Optional(None)),
1244+
("on_fill", Optional(None)),
1245+
("extensions", Optional(None)),
1246+
]
1247+
)
1248+
)
12281249

12291250
fill_classmaps()

0 commit comments

Comments
 (0)