-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyunbi.js
81 lines (77 loc) · 2.56 KB
/
yunbi.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
'use strict';
// ---------------------------------------------------------------------------
const acx = require ('./acx.js');
// ---------------------------------------------------------------------------
module.exports = class yunbi extends acx {
describe () {
return this.deepExtend (super.describe (), {
'id': 'yunbi',
'name': 'YUNBI',
'countries': 'CN',
'rateLimit': 1000,
'version': 'v2',
'has': {
'CORS': false,
'fetchTickers': true,
'fetchOHLCV': true,
},
'timeframes': {
'1m': '1',
'5m': '5',
'15m': '15',
'30m': '30',
'1h': '60',
'2h': '120',
'4h': '240',
'12h': '720',
'1d': '1440',
'3d': '4320',
'1w': '10080',
},
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/28570548-4d646c40-7147-11e7-9cf6-839b93e6d622.jpg',
'extension': '.json', // default extension appended to endpoint URLs
'api': 'https://yunbi.com',
'www': 'https://yunbi.com',
'doc': [
'https://yunbi.com/documents/api/guide',
'https://yunbi.com/swagger/',
],
},
'api': {
'public': {
'get': [
'tickers',
'tickers/{market}',
'markets',
'order_book',
'k',
'depth',
'trades',
'k_with_pending_trades',
'timestamp',
'addresses/{address}',
'partners/orders/{id}/trades',
],
},
'private': {
'get': [
'deposits',
'members/me',
'deposit',
'deposit_address',
'order',
'orders',
'trades/my',
],
'post': [
'order/delete',
'orders',
'orders/multi',
'orders/clear',
],
},
},
});
}
};