harwee / IQOption-Api

** Unmaintained ** I have rewritten some of the functionality using async if you are want to use the updated code you can use the code from `async` branch
Apache License 2.0
53 stars 54 forks source link

how to sell an option? #25

Closed incafox closed 5 years ago

incafox commented 6 years ago

pls help me

harwee commented 6 years ago

You can check this

api.open_position(direction="put",
                expiration_time=api.binary_expiration_list["EURUSD"][-1]["time"],
                market_name="EURUSD",
                price=5,
                type="turbo"
                )

If this doesn't work for you, then the feature is not implemented yet in the current code. This library has only binary options implemented.