robin_stocks
robin_stocks copied to clipboard
How to Place a Trailing Stop Loss on an Options Position
Hello,
I'm wondering how I might go about executing a Trailing Stop Loss Order to SELL my Options Contracts.
I see that there are two potential function that might be able to do it, but I'm not quite sure:
-
robin_stocks.robinhood.orders.order_sell_trailing_stop(symbol, quantity, trailAmount, trailType='percentage', timeInForce='gtc', extendedHours=False, jsonify=True)
(Source: https://robin-stocks.readthedocs.io/en/latest/_modules/robin_stocks/robinhood/orders.html#order_sell_trailing_stop) -
robin_stocks.robinhood.orders.order_trailing_stop(symbol, quantity, side, trailAmount, trailType='percentage', timeInForce='gtc', extendedHours=False, jsonify=True)
(Source: https://robin-stocks.readthedocs.io/en/latest/_modules/robin_stocks/robinhood/orders.html#order_trailing_stop)
Has anyone used these functions to issue a Trailing Stop Loss Order to Sell Options Contracts?
If so, a working example would be appreciated.
Thank you!