-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
46 lines (35 loc) · 1.16 KB
/
index.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require('dotenv').config()
const ccxtTickers = require('./modules/ccxt-tickers')
const ccxtBuy = require('./modules/ccxt-buy')
const ccxtSell = require('./modules/ccxt-sell')
const ccxtMonitor = require('./modules/ccxt-monitor')
const App = require('./app')
const app = new App()
app.use(require('./modules/twitter-feed'))
app.use(require('./modules/twitter-parse'))
// app.use(ccxtTickers('bittrex'))
// app.use(ccxtBuy('bittrex'))
// app.use(ccxtSell('bittrex'))
// app.use(ccxtMonitor('bittrex'))
// app.use(ccxtTickers('binance'))
// app.use(ccxtBuy('binance'))
// app.use(ccxtSell('binance'))
// app.use(ccxtMonitor('binance'))
// app.use(ccxtTickers('kucoin'))
// app.use(ccxtBuy('kucoin'))
// app.use(ccxtSell('kucoin'))
// app.use(ccxtTickers('yobit'))
// app.use(ccxtBuy('yobit'))
// app.use(ccxtSell('yobit'))
// app.use(ccxtMonitor('yobit'))
app.use(ccxtTickers('cryptopia'))
app.use(ccxtBuy('cryptopia'))
app.use(ccxtSell('cryptopia'))
app.use(ccxtMonitor('cryptopia'))
if (process.env.NODE_ENV !== 'test') {
// Dont Log while running tests
app.use(require('./modules/logger'))
}
app.use(require('./modules/manual-entry'))
app.start()
module.exports = app