项目作者: DanielOchoa

项目描述 :
Horus is a platform to automate various tasks for crypto day trading. It's still on a very early stage.
高级语言: Go
项目地址: git://github.com/DanielOchoa/horus.git
创建时间: 2018-03-31T21:54:26Z
项目社区:https://github.com/DanielOchoa/horus

开源协议:

下载


HORUS

Horus is a platform to automate various tasks for crypto day trading.

Step 1

Build a script that pings GDAX currencies endpoint to see if a new cryptocurrency has been added to their platform.
If so, notify me by msn when this occurs. The script will run this check every 10 minutes by default.

More features coming soon.

Running

You’ll need go installed, then run go build on the project’s root directory.

To run: go run main.go -time 10

The project depends on a .env and .env.test file for running tests. It needs the following settings:

  1. TWILIO_ACCOUNT_SID="xxx"
  2. TWILIO_AUTH_TOKEN="xxx"
  3. TWILIO_FROM_NUMBER="+1xxx"
  4. TWILIO_TO_NUMBER="+1xxx"
  5. CACHED_DATA_PATH="/src/horus/data/currencies.json"

Script arguments

  • The time argument is optional and it specifies the interval time in seconds between every currency endpoint
    check vs a local cached copy of it.
  • The cachedCurrenciesPath is optional. It defaults to the path of /data/currencies.json. Useful if you want to
    test with a modified json file in order to functionally test the script will work when needed.

Running all tests

go test ./.... Note that while it runs all tests, it also runs dependencies test (or all packages in your go/src location for that matter).

Author

Daniel Ochoa