-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmethods.js
118 lines (115 loc) · 6.81 KB
/
methods.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
'use strict'
/**
* RESTv2 mock server method definition
*
* @constant
* @readonly
* @private
*/
const RESTV2_MOCK_METHODS = {
'/v2/ticker/:symbol': 'ticker.{symbol}',
'/v2/tickers': 'tickers',
'/v2/tickers/hist': 'tickers_hist',
'/v2/stats1/:key/:context': 'stats.{key}.{context}',
'/v2/status/:type': 'status_messages.{type}.{keys}',
'/v2/candles/:key/:section': 'candles.{key}.{section}',
'/v2/conf/pub([:])map([:])currency([:])tx([:])fee\*': 'map_ccy_fees', // eslint-disable-line
'/v2/conf/pub([:])map([:])currency([:])label\*': 'map_ccy_label', // eslint-disable-line
'/v2/conf/pub([:])map([:])pair([:])sym\*': 'map_symbols', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency([:])inactive\*': 'inactive_currencies', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency([:])futures\*': 'futures_currencies', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency([:])securities\*': 'securities_currencies', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency([:])margin\*': 'margin_currencies', // eslint-disable-line
'/v2/conf/pub([:])list([:])pair([:])exchange([:])inactive\*': 'inactive_symbols', // eslint-disable-line
'/v2/conf/pub([:])list([:])pair([:])exchange\*': 'symbols', // eslint-disable-line
'/v2/conf/pub([:])list([:])pair([:])futures\*': 'futures', // eslint-disable-line
'/v2/conf/pub([:])list([:])pair([:])margin\*': 'margins', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency\*': 'currencies', // eslint-disable-line
'/v2/conf/pub([:])info([:])pair\*': 'info_pairs', // eslint-disable-line
'/v2/trades/:symbol/hist': 'public_trades.{symbol}.{start}.{end}.{limit}.{sort}',
'/v2/liquidations/hist': 'liquidations.{start}.{end}.{limit}.{sort}',
'/v2/pulse/profile/:nickname': 'public_pulse_profile.{nickname}',
'/v2/pulse/hist': 'public_pulse_hist',
'/v2/calc/trade/avg': 'market_average_price.{symbol}.{amount}',
'/v2/platform/status': 'platform_status',
'/v2/auth/r/alerts': 'alerts.{type}',
'/v2/auth/w/alert/set': 'alert_set.{type}.{symbol}.{price}',
'/v2/auth/w/alert/del': 'alert_del.{symbol}.{price}',
'/v2/auth/w/deriv/collateral/set': 'derivs_pos_col_set.{symbol}.{collateral}',
'/v2/auth/r/trades/hist': 'trades.{start}.{end}.{limit}.{sort}',
'/v2/auth/r/trades/:symbol/hist': 'trades.{symbol}.{start}.{end}.{limit}.{sort}',
'/v2/auth/r/wallets': 'wallets',
'/v2/auth/r/logins/hist': 'logins_hist.{start}.{end}.{limit}',
'/v2/auth/r/audit/hist': 'change_log.{start}.{end}.{limit}',
'/v2/auth/r/wallets/hist': 'wallets_hist.{end}.{currency}',
'/v2/auth/r/orders': 'active_orders',
'/v2/auth/r/orders/hist': 'orders.{start}.{end}.{limit}',
'/v2/auth/r/orders/:symbol/hist': 'orders.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/order/:symID/trades': 'order_trades.{symID}.{start}.{end}.{limit}',
'/v2/auth/r/positions': 'positions',
'/v2/auth/r/positions/hist': 'positions_hist.{start}.{end}.{limit}',
'/v2/auth/r/positions/snap': 'positions_snap.{start}.{end}.{limit}',
'/v2/auth/r/positions/audit': 'positions_audit.{id}.{start}.{end}.{limit}',
'/v2/auth/r/funding/offers/hist': 'f_offer_hist.{start}.{end}.{limit}',
'/v2/auth/r/funding/offers/:symbol': 'f_offers.{symbol}',
'/v2/auth/r/funding/offers/:symbol/hist': 'f_offer_hist.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/funding/loans/hist': 'f_loan_hist.{start}.{end}.{limit}',
'/v2/auth/r/funding/loans/:symbol': 'f_loans.{symbol}',
'/v2/auth/r/funding/loans/:symbol/hist': 'f_loan_hist.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/funding/credits/hist': 'f_credit_hist.{start}.{end}.{limit}',
'/v2/auth/r/funding/credits/:symbol': 'f_credits.{symbol}',
'/v2/auth/r/funding/credits/:symbol/hist': 'f_credit_hist.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/funding/trades/:symbol/hist': 'f_trade_hist.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/funding/trades/hist': 'f_trade_hist.{start}.{end}.{limit}',
'/v2/auth/r/info/margin/:key': 'margin_info.{key}',
'/v2/auth/r/info/funding/:key': 'f_info.{key}',
'/v2/auth/r/stats/perf:1D/hist': 'performance',
'/v2/auth/calc/order/avail': 'calc.{symbol}.{dir}.{rate}.{type}',
'/v2/auth/r/ledgers/:symbol/hist': 'ledgers.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/ledgers/hist': 'ledgers',
'/v2/auth/r/movements/:symbol/hist': 'movements.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/movements/hist': 'movements',
'/v2/auth/r/movements/info': 'movement_info.{id}',
'/v2/auth/r/info/user': 'user_info',
'/v2/auth/r/summary': 'account_summary',
'/v2/auth/r/permissions': 'auth_permissions',
'/v2/auth/w/pulse/add': 'add_pulse.{title}.{content}',
'/v2/auth/w/pulse/del': 'delete_pulse.{pid}',
'/v2/auth/r/pulse/hist': 'pulse_hist.{isPublic}',
'/v2/auth/w/deposit/invoice': 'generate_invoice.{currency}.{wallet}.{amount}',
'/v2/auth/w/funding/keep': 'keep_funding.{type}.{id}',
'/v2/auth/w/order/submit': 'order_submit',
'/v2/auth/w/order/cancel/multi': 'cancel_order_multi.{id}',
'/v2/auth/w/order/multi': 'order_multi_op.{ops}',
'/v2/auth/w/settings/set': 'set_settings.{settings}',
'/v2/auth/r/settings': 'get_settings.{keys}',
'/v2/auth/r/settings/core': 'core_settings.{keys}',
'/v2/auth/w/token': 'generate_token.{ttl}.{scope}.{writePermission}.{_cust_ip}',
'/v2/auth/w/token/del': 'delete_token',
'/v2/calc/fx': 'calc_fx',
'/v2/auth/w/ext/pay/invoice/create': 'invoice_submit',
'/v2/auth/r/ext/pay/invoices': 'invoice_list',
'/v2/auth/w/ext/pay/invoice/complete': 'invoice_complete',
'/v2/auth/r/ext/pay/deposits/unlinked': 'deposits_unlinked',
'/v2/auth/r/ext/pay/settings/convert/list': 'pay_settings_convert_list',
'/v2/auth/w/ext/pay/settings/convert/create': 'pay_settings_convert_create',
'/v2/auth/w/ext/pay/settings/convert/remove': 'pay_settings_convert_remove',
'/v2/auth/r/ext/pay/settings/daily/limit': 'pay_settings_daily_limit',
'/v2/auth/w/ext/pay/settings/set': 'pay_settings_set',
'/v2/auth/w/ext/pay/settings/set/batch': 'pay_settings_set_batch',
'/v2/auth/r/ext/pay/settings/get': 'pay_settings_get',
'/v2/auth/r/ext/pay/settings/list': 'pay_settings_list',
'/v2/auth/w/ext/pay/invoice/refund': 'pay_invoice_refund',
'/v2/auth/w/ext/pay/invoice/mark/refunded': 'pay_invoice_mark_refunded',
'/v2/auth/r/ext/pay/invoice/events': 'pay_invoice_events',
'/v2/auth/r/ext/pay/currency/detailed': 'pay_currency_detailed',
'/v2/ext/pay/invoice/currency/detailed': 'pay_public_invoice_currency_detailed',
'/v2/auth/r/ext/pay/currency/list': 'pay_currency_list',
'/v2/auth/w/ext/pay/invoice/update': 'pay_invoice_update',
'/v2/auth/w/ext/pay/invoice/create/pos': 'pay_invoice_create_pos',
'/v2/auth/r/ext/pay/invoices/paginated': 'pay_invoices_paginated',
'/v2/auth/w/ext/pay/invoice/expire': 'pay_invoice_expire',
'/v2/auth/r/ext/pay/deposits': 'pay_deposits',
'/v2/auth/r/trades/calc': 'weighted_averages.{symbol}.{start}.{end}.{limit}'
}
module.exports = RESTV2_MOCK_METHODS