项目作者: RomainGrx

项目描述 :
stockBot is a gentle automatic trader bot
高级语言: Python
项目地址: git://github.com/RomainGrx/stockBot.git
创建时间: 2020-03-14T17:12:14Z
项目社区:https://github.com/RomainGrx/stockBot

开源协议:

下载


stockBot



How to run scripts

  • You need to create and activate a virtual environment

    1. $ python -m venv StockBot
    2. $ source StockBot/bin/activate
  • Now you need to install librairies from requirements.txt

    1. $ pip install pip --upgrade
    2. $ pip install -r requirements.txt
  • To fetch data from online sources, you need to get your API Key from Quandl and Alpha Vantage

    • So, create an account and get both keys.
    • Then you can launch the command below
      1. python stockBot --config --alphavantage={YOUR ALPHAVANTAGE KEY} --quandl=
      2. {YOUR QUANDL KEY}
    • If everything went well, you can restart your terminal and you’re done.
    • After restarting your terminal, you can check if the keys are set with:
      1. python stockBot --config --check

Then you are able to execute scripts that are in the examples folder

TensorBoard

  • To launch the TensorBoard, execute the command below and follow instructions
    1. $ tensorboard --logdir res/tensorboards/

Examples

naive_LSTM

naive_LSTM is a simple neural network with only one LSTM layer.