quan-digital / ftx

Library for connecting to the FTX API.
MIT License
164 stars 59 forks source link

Update api.py for take_profit and trailing_stop #9

Closed zombiegriff closed 3 years ago

zombiegriff commented 3 years ago

edited def place_conditional_order

Line 159. Changed: "'type': stop" to "'type': type" to allow use of stop, take_profit and trailing_stop types.

Line 160. Added: "'trailValue': trail_value" to add a trail_value when entering a trailing_stop type order.