corrent function from_raw_order not found error

This commit is contained in:
swsong
2019-12-21 22:16:16 +09:00
committed by Jacob Plaster
parent b2df93e9ad
commit 7db6b5d73f

View File

@@ -558,7 +558,7 @@ class BfxRest:
""" """
endpoint = "auth/w/order/cancel" endpoint = "auth/w/order/cancel"
raw_notification = await self.post(endpoint, { 'id': orderId }) raw_notification = await self.post(endpoint, { 'id': orderId })
return Notification.from_raw_order(raw_notification) return Notification.from_raw_notification(raw_notification)
async def submit_update_order(self, orderId, price=None, amount=None, delta=None, price_aux_limit=None, async def submit_update_order(self, orderId, price=None, amount=None, delta=None, price_aux_limit=None,
price_trailing=None, hidden=False, close=False, reduce_only=False, price_trailing=None, hidden=False, close=False, reduce_only=False,
@@ -602,7 +602,7 @@ class BfxRest:
payload['flags'] = flags payload['flags'] = flags
endpoint = "auth/w/order/update" endpoint = "auth/w/order/update"
raw_notification = await self.post(endpoint, payload) raw_notification = await self.post(endpoint, payload)
return Notification.from_raw_order(raw_notification) return Notification.from_raw_notification(raw_notification)
################################################## ##################################################