Skip to content

Commit

Permalink
Merge pull request #158 from nkasimova/update-time-in-force
Browse files Browse the repository at this point in the history
Fixed bug in setting 'time in force' in order update
  • Loading branch information
robertkowalski authored Jul 19, 2021
2 parents 4b9cb8f + 4f07ba0 commit 62501ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bfxapi/rest/bfx_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ async def submit_update_order(self, orderId, price=None, amount=None, delta=None
if price_trailing != None:
payload['price_trailing'] = str(price_trailing)
if time_in_force != None:
payload['time_in_force'] = str(time_in_force)
payload['tif'] = str(time_in_force)
if leverage != None:
payload["lev"] = str(leverage)
flags = calculate_order_flags(
Expand Down
2 changes: 1 addition & 1 deletion bfxapi/websockets/order_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def update_order(self, orderId, price=None, amount=None, delta=None, price
if price_trailing != None:
payload['price_trailing'] = str(price_trailing)
if time_in_force != None:
payload['time_in_force'] = str(time_in_force)
payload['tif'] = str(time_in_force)
if leverage != None:
payload['lev'] = str(leverage)
flags = calculate_order_flags(
Expand Down

0 comments on commit 62501ed

Please sign in to comment.