harwee/IQOption-Api

How to issue a refund command?

Closed this issue · 3 comments

I'm unsure if there is already a way to trigger this command. To stop the bid mid way and get back some of your money in the process

Please point me in the right direction, or if you have your own code for it I would greatly appreciate if you share it here.

Thank you in advance

This method does this for you,

async def sell(self):

and how do I execute this in code?

I think I figured it out

first import
from iqoption_api import portfolio_item

then execute

Stock = iqoption.options["binary"]["EURUSD"]
portfolio_item.PortfolioItem.sell(Stock)

Conformation

This code works