robin_stocks icon indicating copy to clipboard operation
robin_stocks copied to clipboard

How to Place a Trailing Stop Loss on an Options Position

Open alexjavad opened this issue 1 year ago • 0 comments

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:

  1. 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)

  2. 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!

alexjavad avatar May 11 '23 14:05 alexjavad