How to issue a refund command?
Closed this issue · 3 comments
MightyMaxSaviorOfTheUniverse commented
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
harwee commented
This method does this for you,
MightyMaxSaviorOfTheUniverse commented
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)
MightyMaxSaviorOfTheUniverse commented
Conformation
This code works