jmfernandes / robin_stocks

This is a library to use with Robinhood Financial App. It currently supports trading crypto-currencies, options, and stocks. In addition, it can be used to get real time ticker information, assess the performance of your portfolio, and can also get tax documents, total dividends paid, and more. More info at
http://www.robin-stocks.com
MIT License
1.69k stars 458 forks source link

Q: use order_buy_option_limit() to buy_to_close (a position that is sell_to_open earlier), what should be the creditOrDebit paramter? #478

Open mw66 opened 3 months ago

mw66 commented 3 months ago

Hi,

I want to close a position that is sell_to_open earlier, to use the order_buy_option_limit() function:

https://robin-stocks.readthedocs.io/en/latest/robinhood.html#robin_stocks.robinhood.orders.order_buy_option_limit

should the creditOrDebit paramter be passed as ‘debit’ or ‘credit’?

Thanks.