forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exchanges.js
322 lines (321 loc) · 9.36 KB
/
exchanges.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
// what kind of exchange does Gekko support?
//
// Required parameters per exchange.
//
// name: Proper name of the exchange
// slug: slug name of the exchange (needs to match filename in `gekko/exchanges/`)
// direct: does this exchange support MKT orders?
// infinityOrder: is this an exchange that supports infinity
// orders? (which means that it will accept orders bigger then
// the current balance and order at the full balance instead)
// currencies: all the currencies supported by the exchange
// implementation in gekko.
// assets: all the assets supported by the exchange implementation
// in gekko.
// pairs: all allowed currency / asset combinatinos that form a market
// providesHistory: If the getTrades can be fed a since parameter
// that Gekko can use to get historical data, set this to:
//
// - 'date' // When Gekko can pass in a starting point in time
// // to start returning data from.
// - 'tid' // When Gekko needs to pass in a trade id to act as
// // a starting point in time.
// - false // When the exchange does not support to give back
// // historical data at all.
// fetchTimespan: if the timespan between first and last trade per
// fetch is fixed, set it here in minutes.
//
// monitorError: if Gekko is currently not able to monitor this exchange, please set it
// to an URL explaining the problem.
// tradeError: If gekko is currently not able to trade at this exchange, please set it
// to an URL explaining the problem.
var exchanges = [
{
name: 'MtGox',
slug: 'mtgox',
direct: true,
infinityOrder: true,
currencies: [
'USD', 'EUR', 'GBP', 'AUD', 'CAD', 'CHF', 'CNY',
'DKK', 'HKD', 'PLN', 'RUB', 'SGD', 'THB'
],
assets: ['BTC'],
markets: [
{
pair: ['USD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['EUR', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['GBP', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['AUD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['CAD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['CHF', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['CNY', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['DKK', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['HKD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['PLN', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['RUB', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['SGD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['THB', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
}
],
requires: ['key', 'secret'],
providesHistory: false
},
{
name: 'BTC-e',
slug: 'btce',
direct: false,
infinityOrder: false,
currencies: ['USD', 'RUR', 'EUR', 'BTC'],
assets: [
'BTC', 'LTC', 'NMC', 'NVC', 'USD', 'EUR',
'TRC', 'PPC', 'FTC', 'XPM'
],
markets: [
{
pair: ['USD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['RUR', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['EUR', 'BTC'], minimalOrder: { amount: 0.01, unit: 'asset' }
},
{
pair: ['BTC', 'LTC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['USD', 'LTC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['RUR', 'LTC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['EUR', 'LTC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'NMC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['USD', 'NMC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'NVC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['USD', 'NVC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['RUR', 'USD'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['USD', 'EUR'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'TRC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'PPC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['USD', 'PPC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'FTC'], minimalOrder: { amount: 0.1, unit: 'asset' }
},
{
pair: ['BTC', 'XPM'], minimalOrder: { amount: 0.1, unit: 'asset' }
}
],
requires: ['key', 'secret'],
providesHistory: false
},
{
name: 'Bitstamp',
slug: 'bitstamp',
direct: false,
infinityOrder: false,
currencies: ['USD'],
assets: ['BTC'],
markets: [
{
pair: ['USD', 'BTC'], minimalOrder: { amount: 1, unit: 'currency' }
}
],
requires: ['key', 'secret', 'username'],
providesHistory: false,
fetchTimespan: 60
},
{
name: 'CEX.io',
slug: 'cexio',
direct: false,
infinityOrder: false,
currencies: ['BTC'],
assets: ['GHS'],
markets: [
{
pair: ['BTC', 'GHS'], minimalOrder: { amount: 0.000001, unit: 'currency' }
}
],
requires: ['key', 'secret', 'username'],
providesHistory: false
},
{
name: 'Cryptsy',
slug: 'cryptsy',
direct: false,
infinityOrder: false,
currencies: ['BTC'],
assets: ['DOGE', 'DVC', 'PPC', 'LTC', 'DRK' ],
markets: [
{
pair: ['BTC', 'DOGE'], market_id: 132, minimalOrder: { amount: 100, unit: 'asset' }
},
{
pair: ['BTC', 'DVC'], market_id: 40, minimalOrder: { amount: 1, unit: 'asset' }
},
{
pair: ['BTC', 'LTC'], market_id: 3, minimalOrder: { amount: 0.001, unit: 'asset' }
},
{
pair: ['BTC', 'DRK'], market_id: 155, minimalOrder: { amount: 0.001, unit: 'asset' }
}
],
requires: ['key', 'secret'],
providesHistory: false
},
{
name: 'Kraken',
slug: 'kraken',
direct: false,
infinityOrder: false,
currencies: ['XRP', 'EUR', 'KRW', 'USD', 'LTC', 'XVN'],
assets: ['LTC', 'NMC', 'XBT', 'XVN', 'EUR', 'KRW', 'USD'],
markets: [
{
pair: ['XRP', 'LTC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['EUR', 'LTC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['KRW', 'LTC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['USD', 'LTC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'NMC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['EUR', 'NMC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['KRW', 'NMC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['USD', 'NMC'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['LTC', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['NMC', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XVN', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['EUR', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['KRW', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['USD', 'XBT'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'XVN'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'EUR'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XVN', 'EUR'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'KRW'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XRP', 'USD'], minimalOrder: { amount: 0.01, unit: 'currency' }
},
{
pair: ['XVN', 'USD'], minimalOrder: { amount: 0.01, unit: 'currency' }
}
],
requires: ['key', 'secret'],
monitorError: 'https://github.com/askmike/gekko/issues/210',
providesHistory: false
},
{
name: 'Bitfinex',
slug: 'bitfinex',
direct: false,
infinityOrder: false,
currencies: ['USD'],
assets: ['BTC'],
markets: [
{
pair: ['USD', 'BTC'], minimalOrder: { amount: 0.01, unit: 'currency' }
}
],
requires: ['key', 'secret'],
// TODO: should be possible to enable this for Bitfinex?
providesHistory: false
// fetchTimespan: 60
},
{
name: 'LakeBTC',
slug: 'lakebtc',
direct: false,
infinityOrder: false,
currencies: ['USD'],
assets: ['BTC'],
markets: [
{
pair: ['USD', 'BTC'], minimalOrder: { amount: 1, unit: 'currency' }
}
],
requires: ['key', 'secret'],
providesHistory: false,
fetchTimespan: 60
}
];
module.exports = exchanges;