Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from leonarduschen/master
Browse files Browse the repository at this point in the history
Rework `FtxClient.place_trigger_order`
  • Loading branch information
thomgabriel committed Nov 30, 2021
2 parents f30cb67 + d176eae commit 1e30814
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ftx/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ def place_conditional_order(self,
type: str,
limit_price: Optional[float] = None,
reduce_only: bool = False,
cancel: bool = True,
trigger_price: Optional[float] = None,
trail_value: Optional[float] = None) -> dict:
trail_value: Optional[float] = None,
retry_until_filled: bool = None,
) -> dict:
"""
To send a Stop Market order, set type='stop' and supply a trigger_price
To send a Stop Limit order, also supply a limit_price
Expand All @@ -216,8 +217,9 @@ def place_conditional_order(self,
'size': size,
'reduceOnly': reduce_only,
'type': type,
'cancelLimitOnTrigger': cancel,
'orderPrice': limit_price
'orderPrice': limit_price,
'trailValue': trail_value,
'retryUntilFilled': retry_until_filled
})

@authentication_required
Expand Down

0 comments on commit 1e30814

Please sign in to comment.