Skip to content

Commit

Permalink
update RESTv2 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Stoliarov committed Jul 19, 2021
1 parent 5c23ea7 commit 5838910
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion examples/rest2/claim_positions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const Promise = require('bluebird')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const _isEmpty = require('lodash/isEmpty')
const { args: { apiKey, apiSecret }, debug, debugTable, readline } = require('../util/setup')

Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/close_positions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const PI = require('p-iteration')
const _isEmpty = require('lodash/isEmpty')
const WSv2 = require('../../lib/transports/ws2')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable, readline } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/currencies.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const _chunk = require('lodash/chunk')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/funding_credits.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount } = require('bfx-api-node-util')
const argFromCLI = require('../util/arg_from_cli')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/funding_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount } = require('bfx-api-node-util')
const argFromCLI = require('../util/arg_from_cli')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/funding_loans.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount } = require('bfx-api-node-util')
const argFromCLI = require('../util/arg_from_cli')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/funding_offers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount } = require('bfx-api-node-util')
const argFromCLI = require('../util/arg_from_cli')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/key_permissions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/ledgers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { prepareAmount } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')
const argFromCLI = require('../util/arg_from_cli')

Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/list_open_orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _capitalize = require('lodash/capitalize')
const _isEmpty = require('lodash/isEmpty')
const { prepareAmount, preparePrice } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/margin_info.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { prepareAmount } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/movements.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { prepareAmount, preparePrice } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

const argFromCLI = require('../util/arg_from_cli')
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/order-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount, preparePrice } = require('bfx-api-node-util')
const _isEmpty = require('lodash/isEmpty')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

const START = Date.now() - (30 * 24 * 60 * 60 * 1000 * 1000)
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/positions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _capitalize = require('lodash/capitalize')
const _map = require('lodash/map')
const { prepareAmount, preparePrice } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/pulse.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { PulseMessage } = require('bfx-api-node-models')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/status.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/submit_funding_offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Promise = require('bluebird')
const { FundingOffer } = require('bfx-api-node-models')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug } = require('../util/setup')

const CLOSE_DELAY_MS = 5 * 1000
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/submit_order.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Promise = require('bluebird')
const { Order } = require('bfx-api-node-models')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, readline } = require('../util/setup')

const UPDATE_DELAY_MS = 5 * 1000
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/symbol-details.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/symbols.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/tickers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const { preparePrice, prepareAmount } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/trade-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { prepareAmount, preparePrice } = require('bfx-api-node-util')
const _isEmpty = require('lodash/isEmpty')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

const START = Date.now() - (30 * 24 * 60 * 60 * 1000 * 1000)
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/transfer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/wallet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/wallets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const _capitalize = require('lodash/capitalize')
const _isFinite = require('lodash/isFinite')
const _isEmpty = require('lodash/isEmpty')
const { prepareAmount } = require('bfx-api-node-util')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args: { apiKey, apiSecret }, debug, debugTable } = require('../util/setup')

async function execute () {
Expand Down
2 changes: 1 addition & 1 deletion examples/ws2_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
process.env.DEBUG = 'bfx:examples:*'

const _flatten = require('lodash/flatten')
const { RESTv2 } = require('bfx-api-node-rest')
const { RESTv2 } = require('../../index')
const { args, debug } = require('./util/setup')
const Manager = require('../lib/ws2_manager')

Expand Down

0 comments on commit 5838910

Please sign in to comment.