-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
32 lines (24 loc) · 769 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# start Redis
redis-server
# start sidekiq
sidekiq -r ./app.rb -e development -C ./config/sidekiq.yml
# start pry
pry
# Initialize a platform
btce = Bittracktor::MultiTicker::Exchange.new(platform_name: 'btce', pairs: ['ltc_usd'])
# Start a platform ticker
btce.ticker.start
# Receive ticker response
require_relative 'app/receiver'
rec = Bittracktor::MultiTicker::Receiver.new
rec.listen('btce')
# Stop a platform ticker
btce.ticker.stop
# Check if ticker data were written to DB
Bittracktor::MultiTicker::Btce.last
# Credentials
# set systems envs (/etc/environment on servers)
## sidekiq web credentials
MULTITICKER_USERNAME="username"
MULTITICKER_PASSWORD="password"
MULTITICKER_REDIS_PASSWORD="password"