Permalink
Browse files

config changes wip

  • Loading branch information...
shads2 committed May 7, 2018
1 parent 7b24783 commit f6a967e518bcbcfbe8b564cf370d25199b912e08
Showing with 448 additions and 471 deletions.
  1. +1 −4 .gitignore
  2. +1 −1 Makefile
  3. +4 −4 README.md
  4. +23 −317 app/conf.py
  5. +165 −0 app/defaults.yml
  6. +1 −0 app/requirements.txt
  7. +14 −0 default-config.yml
  8. +0 −6 default-settings.env
  9. +1 −2 docker-compose.dev.yml
  10. +2 −2 docker-compose.yml
  11. +236 −135 docs/config.md
View
@@ -1,8 +1,5 @@
dev.sh
.env
settings.env
config.yml
.vscode
app/errors.log
.idea/
app/behaviours/ui/www/static/index.js
app/behaviours/ui/www/node_modules/
View
@@ -8,4 +8,4 @@ build:
docker tag ${DOCKER_IMAGE_NAME}:${GIT_BRANCH} ${DOCKER_IMAGE_NAME}:latest
run:
docker run -it --rm --env-file settings.env ${DOCKER_IMAGE_NAME}
docker run -it --rm -v ./config.yml:/app/config.yml ${DOCKER_IMAGE_NAME}
View
@@ -37,15 +37,15 @@ The commands listed below are intended to be run in a terminal.
1. Install [docker CE](https://docs.docker.com/install/)
1. Create a settings.env file in your current directory. See the Configuring settings.env section below for customizing settings.
1. Create a config.yml file in your current directory. See the Configuring config.yml section below for customizing settings.
1. In a terminal run the application. `docker run --rm --env-file=settings.env shadowreaver/crypto-signal:master`.
1. In a terminal run the application. `docker run --rm -v ./config.yml:/app/config.yml shadowreaver/crypto-signal:master`.
1. When you want to update the application run `docker pull shadowreaver/crypto-signal:master`
### Configuring settings.env
### Configuring config.yml
For a list of all possible options for settings.env and some example configurations look [here](docs/config.md)
For a list of all possible options for config.yml and some example configurations look [here](docs/config.md)
# FAQ
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,165 @@
# DO NOT EDIT THIS FILE.
# Create a config.yml outside of the app directory
# See documentation for details.
settings:
log_mode: text
log_level: INFO
output_mode: cli
update_interval: 300
market_pairs: null
exchanges: null
notifiers:
twilio:
required:
key: null
secret: null
sender_number: null
receiver_number: null
optional:
template: "{{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}!{{ '\n' -}}"
discord:
required:
webhook: null
username: null
optional:
avatar: null
template: "{{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}!{{ '\n' -}}"
slack:
required:
webhook: null
optional:
template: "{{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}!{{ '\n' -}}"
gmail:
required:
username: null
password: null
destination_emails: null
optional:
template: "{{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}!{{ '\n' -}}"
telegram:
required:
token: null
chat_id: null
optional:
parse_mode: html
template: "{{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}!{{ '\n' -}}"
webhook:
required:
url: null
optional:
username: null
password: null
indicators:
momentum:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- momentum
hot: 0
cold: 0
candle_period: 1d
period_count: 10
mfi:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- mfi
hot: 0
cold: 0
candle_period: 1d
period_count: 10
obv:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- obv
hot: 0
cold: 0
candle_period: 1d
rsi:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- rsi
hot: 30
cold: 70
candle_period: 1d
period_count: 14
stoch_rsi:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- stoch_rsi
hot: 20
cold: 80
candle_period: 1d
period_count: 14
macd:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- macd
hot: 0
cold: 0
candle_period: 1d
ichimoku:
- enabled: true
alert_enabled: true
alert_frequency: once
signal:
- leading_span_a
- leading_span_b
hot: true
cold: true
candle_period: 1d
informants:
vwap:
- enabled: true
signal:
- vwap
candle_period: 1d
period_count: 15
sma:
- enabled: true
signal:
- sma
candle_period: 1d
period_count: 15
ema:
- enabled: true
signal:
- ema
candle_period: 1d
period_count: 15
bollinger_bands:
- enabled: true
signal:
- upperband
- middleband
- lowerband
candle_period: 1d
crossovers:
std_crossover:
- enabled: false
alert_enabled: true
alert_frequency: once
key_indicator: ema
key_indicator_index: 0
key_indicator_type: informants
key_signal: ema
crossed_indicator: sma
crossed_indicator_index: 0
crossed_indicator_type: informants
crossed_signal: sma
View
@@ -12,3 +12,4 @@ python-telegram-bot==10.0.1
webcord==0.2
jinja2==2.10
requests==2.18.4
PyYAML==3.12
View
@@ -0,0 +1,14 @@
# Copy this file to config.yml to get started and then add your own configuration.
# Full documentation here: https://github.com/CryptoSignal/crypto-signal/blob/master/docs/config.md
settings:
update_interval: 300
market_pairs:
- ETH/BTC
- LTC/BTC
- XMR/BTC
exchanges:
bittrex:
required:
enabled: true
View

This file was deleted.

Oops, something went wrong.
View
@@ -5,5 +5,4 @@ services:
image: shadowreaver/crypto-signal:latest
volumes:
- ./app:/app
env_file:
- settings.env
- ./config.yml:/app/config.yml
View
@@ -3,5 +3,5 @@ version: '3'
services:
app:
image: shadowreaver/crypto-signal:master
env_file:
- settings.env
volumes:
- ./config.yml:/app/config.yml
Oops, something went wrong.

0 comments on commit f6a967e

Please sign in to comment.