Skip to content

Commit

Permalink
Merge pull request #44 from vigan-abd/feature/rest-v1-v2-migration-en…
Browse files Browse the repository at this point in the history
…dpoints

Feature - rest v1 to v2 migration endpoints
  • Loading branch information
prdn authored Dec 24, 2020
2 parents 0c499ae + ddad6a1 commit 1fb0f27
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 1.1.1
- feature: add order submit endpoint
- feature: add auth permissions endpoint
- feature: add pair info endpoint
- feature: add currency tx fee endpoint
- fix: fix account summary endpoint

# 1.1.0
- feature: dynamic responses

Expand Down
6 changes: 5 additions & 1 deletion data/rest2.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@
"get_settings": [],
"generate_token": [],
"map_symbols": [],
"inactive_currencies": []
"inactive_currencies": [],
"auth_permissions": [],
"map_ccy_fees": [],
"info_pairs": [],
"order_submit": []
}
6 changes: 5 additions & 1 deletion lib/rest2/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ const RESTV2_MOCK_METHODS = {
'/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([:])pair([:])sym\*': 'map_symbols', // eslint-disable-line
'/v2/conf/pub([:])list([:])currency([:])inactive\*': 'inactive_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}',
Expand Down Expand Up @@ -65,12 +67,14 @@ const RESTV2_MOCK_METHODS = {
'/v2/auth/r/movements/:symbol/hist': 'movements.{symbol}.{start}.{end}.{limit}',
'/v2/auth/r/movements/hist': 'movements',
'/v2/auth/r/info/user': 'user_info',
'/v2/auth/r/int/summary': 'account_summary',
'/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}',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-api-mock-srv",
"version": "1.1.0",
"version": "1.1.1",
"description": "Bitfinex API server mock library",
"engines": {
"node": ">=7.6.0"
Expand Down

0 comments on commit 1fb0f27

Please sign in to comment.