I've created an Insomnia workspace to make it easier to debug your stock trading code and learn the Alpaca API. You can read about how here:
<a href="https://medium.com/automation-generation/using-alpacas-stock-trading-api-with-insomnia-client-a796f064a5d7" rel="nofollow">https://medium.com/automation-generation/using-alpacas-stock...</a><p>The actual workspace JSON for you to import into Insomnia can be found here: <a href="https://github.com/alpacahq/insomnia-workspace" rel="nofollow">https://github.com/alpacahq/insomnia-workspace</a>
I've been playing with the Alpaca streaming API's in Node to get quotes. I have it working, the next step is figure out a trading algorithm.<p>I am a pretty traditional long term investor, $AAPL, Berkshire, Bank of America, Ford, Amazon, AMD, $SPY, with 10+ years in the market. However with the crazy volatility, I have been toying with the idea of buying ProShares UltraPro Short $SQQQ to hedge my losses on big pre-market open down days. Today for example would have been a good day to own $SQQQ for the day (up 7.3%). Any insight on how to go about this hedge strategy using Alpaca? Can I get pre-market quotes for the Nasdaq?
Seems inherit the same limitation of RobinHood: you can't do short selling. Not sure how actually they could do a free commission order, so not sure why short selling is not supported, but it limits the use of long only strategy.
Open question: If, for one stock, you could predict tomorrow's closing price today (with 80% accuracy within 2% of the actual price), how would you trade that stock?