Automated crypto currency trading software for peatio
nvm install; yarn install rvm install; bundle
echo "create database valera_development;" | influx rake db:create db:migrate db:seed
docker run -d -p 7000:3000 --restart=always -v /var/lib/grafana:/var/lib/grafana --name=grafana \
-e GF_SECURITY_ALLOW_EMBEDDING=true \
-e GF_AUTH_ANONYMOUS_ENABLED=true grafana/grafana
bundle exec foreman start
docker exec -it opendax_barong_1 bundle exec rails runner
'Permission.create!([ { role: :superadmin, verb: :all, path: :valera, action: :accept },
{ role: :admin, verb: :all, path: :valera, action: :accept },
{ role: :accountant, verb: :all, path: :valera, action: :accept }])'
Run first bot only:
rails runner God.instance.universes.first.perform_loop
Run bot in development mode:
Set credentials:
EDITOR='vim' rails credentials: edit --environment development
in the form:
http_basic_auth:
name: "admin"
password: "password"
Run bin/rails server
, with environment variables:
DISABLE_BUYOUT=true DISABLE_JWT=true FORCED_USER_ID=1
TechnicalAnalysis::Rsi.calculate(DataFetcher.fetch(market: 'BTC_USDT'), period: 5, price_key: :close)
- Auto setup drainers for account
- Automaticaly cancel all orders if there are no fresh data from more then N msecs
- Check maker/collector oneness (store pid and host name of runners)
- Reconnect websockets
export PRODUCTION_HOST=<YOUR_SERVER_IP>
bundle exec cap production puma:config systemd:puma:setup systemd:daemon:setup master_key:setup
bundle exec cap production config:set RAILS_ENV=production RAILS_SERVE_STATIC_FILES=true BUGSNAG_API_KEY=$BUGSNAG_API_KEY VALERA_REDIS_URL=redis://localhost:6379/4
> DEBUG_STRATEGY=binance_bargainer-BTC_USDT-ERC20 AUTO_LOGGER_LEVEL=debug COLLAPSE_AUTO_LOGGER=STDOUT ./maker.rb
bundle exec cap production deploy