├── .gitignore ├── LICENSE ├── README.md ├── adhoc ├── README.md ├── docker │ ├── Dockerfile │ ├── build-image.sh │ ├── docker-compose.yml │ └── run-image.sh ├── gap │ └── main.go ├── populate-news-sources │ └── news_sources.go ├── populate-users │ └── users.go └── test-strategy │ ├── main.go │ └── strategy │ ├── hold.go │ ├── portfolio.go │ ├── rsi.go │ ├── trade.go │ ├── trailing_stop.go │ └── utils.go ├── dash ├── .eslintrc ├── .gitignore ├── .prettierrc ├── CRA.md ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt ├── src │ ├── components │ │ ├── App.jsx │ │ ├── App.test.jsx │ │ ├── Layout.jsx │ │ ├── NotFound.jsx │ │ ├── Settings.jsx │ │ ├── account │ │ │ ├── Login.jsx │ │ │ ├── Watchlist.jsx │ │ │ ├── WatchlistStock.jsx │ │ │ └── Watchlists.jsx │ │ ├── common │ │ │ ├── CandlestickChart.jsx │ │ │ ├── DeleteButton.jsx │ │ │ ├── ExternalLink.jsx │ │ │ ├── OverflowDiv.jsx │ │ │ └── StockLookup.jsx │ │ ├── market │ │ │ ├── EconomicCalendar.jsx │ │ │ └── Market.jsx │ │ └── stocks │ │ │ ├── Articles.jsx │ │ │ ├── Snapshots.jsx │ │ │ ├── StockInfo.jsx │ │ │ ├── StockPage.jsx │ │ │ └── Stocks.jsx │ ├── data │ │ ├── stocks.js │ │ └── watchlists.js │ ├── index.jsx │ ├── serviceWorker.js │ ├── setupTests.js │ ├── state │ │ ├── settings.js │ │ ├── stocks.js │ │ ├── store.js │ │ ├── title-context.js │ │ └── watchlists.js │ └── utils │ │ ├── function.js │ │ ├── http.js │ │ ├── number.js │ │ └── time.js └── yarn.lock ├── go.mod ├── go.sum ├── jobs ├── README.md ├── earnings-ipo-news │ ├── email-template.html │ └── main.go ├── populate-stocks │ └── main.go ├── populate-watchlist-stock-candles │ └── main.go └── watchlist-news │ ├── email-template.html │ └── main.go ├── lib ├── README.md ├── alpaca │ ├── README.md │ ├── client.go │ ├── types.go │ └── ws.go ├── binance │ └── README.md ├── candle │ ├── candle.go │ └── candle_test.go ├── finviz │ ├── README.md │ └── client.go ├── iex │ └── client.go ├── newsapi │ ├── README.md │ └── client.go ├── options │ └── client.go ├── technical-analysis │ ├── README.md │ ├── atr.go │ ├── atr_test.go │ ├── bollingerbands.go │ ├── bollingerbands_test.go │ ├── ema.go │ ├── ema_test.go │ ├── keltnerchannels.go │ ├── keltnerchannels_test.go │ ├── macd.go │ ├── macd_test.go │ ├── rateofchange.go │ ├── rateofchange_test.go │ ├── rsi.go │ ├── rsi_test.go │ ├── sma.go │ ├── sma_test.go │ ├── ttmsqueeze.go │ ├── ttmsqueeze_test.go │ ├── types.go │ ├── utils.go │ ├── vwap.go │ └── vwap_test.go ├── traderdb │ ├── README.md │ ├── connection.go │ ├── news_sources.go │ ├── stock_candles.go │ ├── stocks.go │ ├── users.go │ └── watchlists.go ├── utils │ ├── cast.go │ ├── crypto.go │ ├── http.go │ ├── math.go │ ├── news.go │ ├── postgres.go │ ├── stock.go │ ├── time.go │ └── types.go └── yahoo-finance │ ├── README.md │ └── client.go ├── quant ├── .gitignore ├── DailyGapFill.ipynb ├── README.md ├── data │ ├── QQQ.csv.gz │ └── SPY.csv.gz └── requirements.txt ├── trader ├── .gitignore ├── README.md ├── account_routes.go ├── auth_routes.go ├── main.go ├── middleware.go ├── news_routes.go └── stock_routes.go └── traderdb ├── README.md └── migrations ├── 1_add_users.down.sql ├── 1_add_users.up.sql ├── 2_add_stocks.down.sql ├── 2_add_stocks.up.sql ├── 3_add_watchlists.down.sql ├── 3_add_watchlists.up.sql ├── 4_add_news_sources.down.sql └── 4_add_news_sources.up.sql /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/README.md -------------------------------------------------------------------------------- /adhoc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/README.md -------------------------------------------------------------------------------- /adhoc/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/docker/Dockerfile -------------------------------------------------------------------------------- /adhoc/docker/build-image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/docker/build-image.sh -------------------------------------------------------------------------------- /adhoc/docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/docker/docker-compose.yml -------------------------------------------------------------------------------- /adhoc/docker/run-image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/docker/run-image.sh -------------------------------------------------------------------------------- /adhoc/gap/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/gap/main.go -------------------------------------------------------------------------------- /adhoc/populate-news-sources/news_sources.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/populate-news-sources/news_sources.go -------------------------------------------------------------------------------- /adhoc/populate-users/users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/populate-users/users.go -------------------------------------------------------------------------------- /adhoc/test-strategy/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/main.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/hold.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/hold.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/portfolio.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/portfolio.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/rsi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/rsi.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/trade.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/trade.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/trailing_stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/trailing_stop.go -------------------------------------------------------------------------------- /adhoc/test-strategy/strategy/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/adhoc/test-strategy/strategy/utils.go -------------------------------------------------------------------------------- /dash/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/.eslintrc -------------------------------------------------------------------------------- /dash/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/.gitignore -------------------------------------------------------------------------------- /dash/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/.prettierrc -------------------------------------------------------------------------------- /dash/CRA.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/CRA.md -------------------------------------------------------------------------------- /dash/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/README.md -------------------------------------------------------------------------------- /dash/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/package.json -------------------------------------------------------------------------------- /dash/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/favicon.ico -------------------------------------------------------------------------------- /dash/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/index.html -------------------------------------------------------------------------------- /dash/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/logo192.png -------------------------------------------------------------------------------- /dash/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/logo512.png -------------------------------------------------------------------------------- /dash/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/manifest.json -------------------------------------------------------------------------------- /dash/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/public/robots.txt -------------------------------------------------------------------------------- /dash/src/components/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/App.jsx -------------------------------------------------------------------------------- /dash/src/components/App.test.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/App.test.jsx -------------------------------------------------------------------------------- /dash/src/components/Layout.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/Layout.jsx -------------------------------------------------------------------------------- /dash/src/components/NotFound.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/NotFound.jsx -------------------------------------------------------------------------------- /dash/src/components/Settings.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/Settings.jsx -------------------------------------------------------------------------------- /dash/src/components/account/Login.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/account/Login.jsx -------------------------------------------------------------------------------- /dash/src/components/account/Watchlist.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/account/Watchlist.jsx -------------------------------------------------------------------------------- /dash/src/components/account/WatchlistStock.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/account/WatchlistStock.jsx -------------------------------------------------------------------------------- /dash/src/components/account/Watchlists.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/account/Watchlists.jsx -------------------------------------------------------------------------------- /dash/src/components/common/CandlestickChart.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/common/CandlestickChart.jsx -------------------------------------------------------------------------------- /dash/src/components/common/DeleteButton.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/common/DeleteButton.jsx -------------------------------------------------------------------------------- /dash/src/components/common/ExternalLink.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/common/ExternalLink.jsx -------------------------------------------------------------------------------- /dash/src/components/common/OverflowDiv.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/common/OverflowDiv.jsx -------------------------------------------------------------------------------- /dash/src/components/common/StockLookup.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/common/StockLookup.jsx -------------------------------------------------------------------------------- /dash/src/components/market/EconomicCalendar.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/market/EconomicCalendar.jsx -------------------------------------------------------------------------------- /dash/src/components/market/Market.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/market/Market.jsx -------------------------------------------------------------------------------- /dash/src/components/stocks/Articles.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/stocks/Articles.jsx -------------------------------------------------------------------------------- /dash/src/components/stocks/Snapshots.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/stocks/Snapshots.jsx -------------------------------------------------------------------------------- /dash/src/components/stocks/StockInfo.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/stocks/StockInfo.jsx -------------------------------------------------------------------------------- /dash/src/components/stocks/StockPage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/stocks/StockPage.jsx -------------------------------------------------------------------------------- /dash/src/components/stocks/Stocks.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/components/stocks/Stocks.jsx -------------------------------------------------------------------------------- /dash/src/data/stocks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/data/stocks.js -------------------------------------------------------------------------------- /dash/src/data/watchlists.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/data/watchlists.js -------------------------------------------------------------------------------- /dash/src/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/index.jsx -------------------------------------------------------------------------------- /dash/src/serviceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/serviceWorker.js -------------------------------------------------------------------------------- /dash/src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/setupTests.js -------------------------------------------------------------------------------- /dash/src/state/settings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/state/settings.js -------------------------------------------------------------------------------- /dash/src/state/stocks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/state/stocks.js -------------------------------------------------------------------------------- /dash/src/state/store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/state/store.js -------------------------------------------------------------------------------- /dash/src/state/title-context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/state/title-context.js -------------------------------------------------------------------------------- /dash/src/state/watchlists.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/state/watchlists.js -------------------------------------------------------------------------------- /dash/src/utils/function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/utils/function.js -------------------------------------------------------------------------------- /dash/src/utils/http.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/utils/http.js -------------------------------------------------------------------------------- /dash/src/utils/number.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/utils/number.js -------------------------------------------------------------------------------- /dash/src/utils/time.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/src/utils/time.js -------------------------------------------------------------------------------- /dash/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/dash/yarn.lock -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/go.sum -------------------------------------------------------------------------------- /jobs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/README.md -------------------------------------------------------------------------------- /jobs/earnings-ipo-news/email-template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/earnings-ipo-news/email-template.html -------------------------------------------------------------------------------- /jobs/earnings-ipo-news/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/earnings-ipo-news/main.go -------------------------------------------------------------------------------- /jobs/populate-stocks/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/populate-stocks/main.go -------------------------------------------------------------------------------- /jobs/populate-watchlist-stock-candles/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/populate-watchlist-stock-candles/main.go -------------------------------------------------------------------------------- /jobs/watchlist-news/email-template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/watchlist-news/email-template.html -------------------------------------------------------------------------------- /jobs/watchlist-news/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/jobs/watchlist-news/main.go -------------------------------------------------------------------------------- /lib/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/README.md -------------------------------------------------------------------------------- /lib/alpaca/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/alpaca/README.md -------------------------------------------------------------------------------- /lib/alpaca/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/alpaca/client.go -------------------------------------------------------------------------------- /lib/alpaca/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/alpaca/types.go -------------------------------------------------------------------------------- /lib/alpaca/ws.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/alpaca/ws.go -------------------------------------------------------------------------------- /lib/binance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/binance/README.md -------------------------------------------------------------------------------- /lib/candle/candle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/candle/candle.go -------------------------------------------------------------------------------- /lib/candle/candle_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/candle/candle_test.go -------------------------------------------------------------------------------- /lib/finviz/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/finviz/README.md -------------------------------------------------------------------------------- /lib/finviz/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/finviz/client.go -------------------------------------------------------------------------------- /lib/iex/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/iex/client.go -------------------------------------------------------------------------------- /lib/newsapi/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/newsapi/README.md -------------------------------------------------------------------------------- /lib/newsapi/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/newsapi/client.go -------------------------------------------------------------------------------- /lib/options/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/options/client.go -------------------------------------------------------------------------------- /lib/technical-analysis/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/README.md -------------------------------------------------------------------------------- /lib/technical-analysis/atr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/atr.go -------------------------------------------------------------------------------- /lib/technical-analysis/atr_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/atr_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/bollingerbands.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/bollingerbands.go -------------------------------------------------------------------------------- /lib/technical-analysis/bollingerbands_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/bollingerbands_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/ema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/ema.go -------------------------------------------------------------------------------- /lib/technical-analysis/ema_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/ema_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/keltnerchannels.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/keltnerchannels.go -------------------------------------------------------------------------------- /lib/technical-analysis/keltnerchannels_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/keltnerchannels_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/macd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/macd.go -------------------------------------------------------------------------------- /lib/technical-analysis/macd_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/macd_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/rateofchange.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/rateofchange.go -------------------------------------------------------------------------------- /lib/technical-analysis/rateofchange_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/rateofchange_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/rsi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/rsi.go -------------------------------------------------------------------------------- /lib/technical-analysis/rsi_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/rsi_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/sma.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/sma.go -------------------------------------------------------------------------------- /lib/technical-analysis/sma_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/sma_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/ttmsqueeze.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/ttmsqueeze.go -------------------------------------------------------------------------------- /lib/technical-analysis/ttmsqueeze_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/ttmsqueeze_test.go -------------------------------------------------------------------------------- /lib/technical-analysis/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/types.go -------------------------------------------------------------------------------- /lib/technical-analysis/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/utils.go -------------------------------------------------------------------------------- /lib/technical-analysis/vwap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/vwap.go -------------------------------------------------------------------------------- /lib/technical-analysis/vwap_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/technical-analysis/vwap_test.go -------------------------------------------------------------------------------- /lib/traderdb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/README.md -------------------------------------------------------------------------------- /lib/traderdb/connection.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/connection.go -------------------------------------------------------------------------------- /lib/traderdb/news_sources.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/news_sources.go -------------------------------------------------------------------------------- /lib/traderdb/stock_candles.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/stock_candles.go -------------------------------------------------------------------------------- /lib/traderdb/stocks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/stocks.go -------------------------------------------------------------------------------- /lib/traderdb/users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/users.go -------------------------------------------------------------------------------- /lib/traderdb/watchlists.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/traderdb/watchlists.go -------------------------------------------------------------------------------- /lib/utils/cast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/cast.go -------------------------------------------------------------------------------- /lib/utils/crypto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/crypto.go -------------------------------------------------------------------------------- /lib/utils/http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/http.go -------------------------------------------------------------------------------- /lib/utils/math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/math.go -------------------------------------------------------------------------------- /lib/utils/news.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/news.go -------------------------------------------------------------------------------- /lib/utils/postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/postgres.go -------------------------------------------------------------------------------- /lib/utils/stock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/stock.go -------------------------------------------------------------------------------- /lib/utils/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/time.go -------------------------------------------------------------------------------- /lib/utils/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/utils/types.go -------------------------------------------------------------------------------- /lib/yahoo-finance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/yahoo-finance/README.md -------------------------------------------------------------------------------- /lib/yahoo-finance/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/lib/yahoo-finance/client.go -------------------------------------------------------------------------------- /quant/.gitignore: -------------------------------------------------------------------------------- 1 | # Jupyter Notebook 2 | .ipynb_checkpoints 3 | -------------------------------------------------------------------------------- /quant/DailyGapFill.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/quant/DailyGapFill.ipynb -------------------------------------------------------------------------------- /quant/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/quant/README.md -------------------------------------------------------------------------------- /quant/data/QQQ.csv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/quant/data/QQQ.csv.gz -------------------------------------------------------------------------------- /quant/data/SPY.csv.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/quant/data/SPY.csv.gz -------------------------------------------------------------------------------- /quant/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/quant/requirements.txt -------------------------------------------------------------------------------- /trader/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/.gitignore -------------------------------------------------------------------------------- /trader/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/README.md -------------------------------------------------------------------------------- /trader/account_routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/account_routes.go -------------------------------------------------------------------------------- /trader/auth_routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/auth_routes.go -------------------------------------------------------------------------------- /trader/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/main.go -------------------------------------------------------------------------------- /trader/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/middleware.go -------------------------------------------------------------------------------- /trader/news_routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/news_routes.go -------------------------------------------------------------------------------- /trader/stock_routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/trader/stock_routes.go -------------------------------------------------------------------------------- /traderdb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/README.md -------------------------------------------------------------------------------- /traderdb/migrations/1_add_users.down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS users CASCADE; 2 | -------------------------------------------------------------------------------- /traderdb/migrations/1_add_users.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/1_add_users.up.sql -------------------------------------------------------------------------------- /traderdb/migrations/2_add_stocks.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/2_add_stocks.down.sql -------------------------------------------------------------------------------- /traderdb/migrations/2_add_stocks.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/2_add_stocks.up.sql -------------------------------------------------------------------------------- /traderdb/migrations/3_add_watchlists.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/3_add_watchlists.down.sql -------------------------------------------------------------------------------- /traderdb/migrations/3_add_watchlists.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/3_add_watchlists.up.sql -------------------------------------------------------------------------------- /traderdb/migrations/4_add_news_sources.down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/4_add_news_sources.down.sql -------------------------------------------------------------------------------- /traderdb/migrations/4_add_news_sources.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t73liu/trading-bot/HEAD/traderdb/migrations/4_add_news_sources.up.sql --------------------------------------------------------------------------------