This is the code used in Alpaca Trading API Guide published on the Algotrading101 Blog
- What is the Alpaca Trading API?
- Why should I use the Alpaca Trading API?
- Does the Alpaca API allow backtesting?
- How do I get started with the Alpaca API?
- Testing for connectivity
- How do I get historical data from the Alpaca API?
- How do I use WebSockets to stream data with the Alpaca API?
- How can I use indicators with the Alpaca API?
- How can I fire order in the Alpaca API?
- How do I set a stop loss or take profit?
- Which stocks can you trade with Alpaca?
- How do I find out what time the market closes?
- Putting it all together – a fully functioning trading script
- Final thoughts on the Alpaca API
- python >= 2.7, 3.4+
- alpaca_trade_api (tested to work with >= 0.46 )
- author
Jignesh Davda
- author page
- published
2020-04-07