All Projects → shirosaidev → stockbot

shirosaidev / stockbot

Licence: Apache-2.0 license
Alpaca algo stock trading bot

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to stockbot

LiuAlgoTrader
Framework for algorithmic trading
Stars: ✭ 514 (+389.52%)
Mutual labels:  algo-trading, trading-algorithms, trade, algorithmic-trading, alpaca-trading-api, alpaca-markets
cira
Cira algorithmic trading made easy. A Façade library for simpler interaction with alpaca-trade-API from Alpaca Markets.
Stars: ✭ 21 (-80%)
Mutual labels:  algo-trading, stock-market, stocks, alpaca, alpaca-trading-api, alpaca-markets
robinhood.tools
📈🤑💰 Advanced trading tools and resources for Robinhood Web.
Stars: ✭ 27 (-74.29%)
Mutual labels:  stock-market, stocks, nasdaq, algorithmic-trading, stock-trading
TradeTheEvent
Implementation of "Trade the Event: Corporate Events Detection for News-Based Event-Driven Trading." In Findings of ACL2021
Stars: ✭ 64 (-39.05%)
Mutual labels:  stock-market, trade, stock-prediction, stock-trading
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (+116.19%)
Mutual labels:  algo-trading, trading-algorithms, stocks, algorithmic-trading
Robinhood
Unofficial Documentation of Robinhood Trade's Private API
Stars: ✭ 1,569 (+1394.29%)
Mutual labels:  stock-market, stocks, nasdaq, algorithmic-trading
Turingtrader
The Open-Source Backtesting Engine/ Market Simulator by Bertram Solutions.
Stars: ✭ 132 (+25.71%)
Mutual labels:  trading-algorithms, stocks, algorithmic-trading
TradeAlgo
Stock trading algorithm written in Python for TD Ameritrade.
Stars: ✭ 147 (+40%)
Mutual labels:  stock-market, stocks, stock-trading
plutus-algo-backtesting
Algorithmic Trading : A python framework to run backtest on stocks using your own custom algorithmic strategies
Stars: ✭ 28 (-73.33%)
Mutual labels:  stock-market, trading-algorithms, algorithmic-trading
alpaca
A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
Stars: ✭ 100 (-4.76%)
Mutual labels:  stocks, alpaca, alpaca-markets
Pyex
Python interface to IEX and IEX cloud APIs
Stars: ✭ 311 (+196.19%)
Mutual labels:  stock-market, stocks, algorithmic-trading
Algobot
A C++ stock market algorithmic trading bot
Stars: ✭ 78 (-25.71%)
Mutual labels:  stock-market, stocks, algorithmic-trading
NSE-Stock-Scanner
National Stock Exchange (NSE), India based Stock screener program. Supports Live Data, Swing / Momentum Trading, Intraday Trading, Connect to online brokers as Zerodha Kite, Risk Management, Emotion Control, Screening, Strategies, Backtesting, Automatic Stock Downloading after closing, live free day trading data and much more
Stars: ✭ 78 (-25.71%)
Mutual labels:  stock-market, stocks, algorithmic-trading
Backtesting.py
🔎 📈 🐍 💰 Backtest trading strategies in Python.
Stars: ✭ 1,124 (+970.48%)
Mutual labels:  trading-algorithms, stocks, algorithmic-trading
Jesse
An advanced crypto trading bot written in Python
Stars: ✭ 1,038 (+888.57%)
Mutual labels:  trading-algorithms, trade, algorithmic-trading
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (+136.19%)
Mutual labels:  stock-market, trading-algorithms, stocks
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+287.62%)
Mutual labels:  stock-market, stocks, algorithmic-trading
Sumzerotrading
A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
Stars: ✭ 128 (+21.9%)
Mutual labels:  stock-market, trading-algorithms, stocks
quanttrader
Backtest and live trading in Python
Stars: ✭ 139 (+32.38%)
Mutual labels:  algo-trading, trading-algorithms, algorithmic-trading
FAIG
Fully Automated IG Trading
Stars: ✭ 134 (+27.62%)
Mutual labels:  stock-market, trading-algorithms

stockbot

Alpaca algo stock trading bot

License Release Sponsor Patreon Donate PayPal

Get recommended buy and strong buy stocks daily from Nasdaq.com and get prices from Yahoo and determine which stocks moved the most the previous n days, sort those by largest movers (based on open/close $) and buy those stocks if they are going up. When the stock price goes up enough, or at the end of the market day, sell any purchased stocks.

Options

Trade algo can be set to:

"moved" - uses which stock moved the most in past n days (n days set in config) (default)

"lowtomarket" - uses low price to market price

"lowtohigh" - uses low price to high price

Buy time can bet set to:

"buyatopen" - buy the stocks when market opens and sell when price increases enough or at end of day, whatever comes first

"buyatclose" - buy the stocks before market closes, and hold until next day, if stock price goes up enough sell, or sell at end of next market day

Slack workspace

Join the conversation, get support, etc on stocksight Slack.

Requirements

Uses Alpaca https://alpaca.markets/ for trading. You will need an account with Alpaca to use stockbot.

Set env vars for Alpaca authentication api keys:

export APCA_API_KEY_ID=<key_id>
export APCA_API_SECRET_KEY=<secrect_key>
export APCA_API_BASE_URL=url

url set to:

https://api.alpaca.markets (for live)

https://paper-api.alpaca.markets (for paper)

Install requirements Alpaca python library:

pip3 install -r requirements.txt

Download

$ git clone https://github.com/shirosaidev/stockbot.git
$ cd stockbot

Download latest version

How to use

Copy sample config:

cp config.py.sample config.py

Edit config.py and adjust settings as needed.

Run stockbot:

python3 stockbot.py -t <tradealgo> -b <buytime>

Stockbot runs in an infinite loop and does daily trading. To stop it, press ctrl+c. Stocks will manually have to be sold on Alpaca web site since stockbot does not keep track of stocks when you exit it.

Disclaimer

This software is for educational purposes only. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS. Do not risk money which you are afraid to lose. There might be bugs in the code - this software DOES NOT come with ANY warranty.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].