Horus is a platform to automate various tasks for crypto day trading.
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.
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:
TWILIO_ACCOUNT_SID="xxx"
TWILIO_AUTH_TOKEN="xxx"
TWILIO_FROM_NUMBER="+1xxx"
TWILIO_TO_NUMBER="+1xxx"
CACHED_DATA_PATH="/src/horus/data/currencies.json"
- 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.
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).
Daniel Ochoa