PyQuant News 🐍
PyQuant News 🐍

@pyquantnews

5 Tweets 2 reads Jul 08, 2024
A conservative options strategy that generates income?
Covered calls.
And you can trade them with Python:
A covered call involves owning a stock and selling a call option on that same stock.
Using the Alpaca API, use Python to execute covered calls commission-free.
Here's how:
Once you get your API and import the libraries, executing a trade for the underlying is 2 lines of code.
Here we buy 100 shares of SPY.
Now the options leg.
Enter a limit order for 1 contract with 1 line of code.

Loading suggestions...