diff --git a/examples/rest2/funding_credits.js b/examples/rest2/funding_credits.js index 589d4d59..50c38c68 100644 --- a/examples/rest2/funding_credits.js +++ b/examples/rest2/funding_credits.js @@ -15,7 +15,7 @@ async function execute () { debug('fetching funding credits for %s', symbol) - const fcs = await rest.fundingCredits(symbol) + const fcs = await rest.fundingCredits({ symbol }) if (fcs.length === 0) { debug('none available') diff --git a/examples/rest2/funding_info.js b/examples/rest2/funding_info.js index d2e9ceb0..f1e0eeb4 100644 --- a/examples/rest2/funding_info.js +++ b/examples/rest2/funding_info.js @@ -15,7 +15,7 @@ async function execute () { debug('fetching funding info for %s', symbol) - const flu = await rest.fundingInfo(symbol) + const flu = await rest.fundingInfo({ key: symbol }) const [,, [yieldLoan, yieldLend, durationLoan, durationLend]] = flu debugTable({ diff --git a/examples/rest2/funding_loans.js b/examples/rest2/funding_loans.js index 17df637a..9536c3d9 100644 --- a/examples/rest2/funding_loans.js +++ b/examples/rest2/funding_loans.js @@ -15,7 +15,7 @@ async function execute () { debug('fetching funding loans for %s', symbol) - const fls = await rest.fundingLoans(symbol) + const fls = await rest.fundingLoans({ symbol }) if (fls.length === 0) { debug('none available') diff --git a/examples/rest2/funding_offers.js b/examples/rest2/funding_offers.js index ae40e5ab..1c857eb5 100644 --- a/examples/rest2/funding_offers.js +++ b/examples/rest2/funding_offers.js @@ -15,7 +15,7 @@ async function execute () { debug('fetching funding offers for %s', symbol) - const fos = await rest.fundingOffers(symbol) + const fos = await rest.fundingOffers({ symbol }) if (fos.length === 0) { debug('none available') diff --git a/examples/rest2/ledgers.js b/examples/rest2/ledgers.js index 7d11ad9f..29a2d8da 100644 --- a/examples/rest2/ledgers.js +++ b/examples/rest2/ledgers.js @@ -18,7 +18,7 @@ async function execute () { debug('fetching ledger entries for %s...', ccy || 'all currencies') - const entries = await rest.ledgers(ccy) + const entries = await rest.ledgers({ filters: ccy }) const rows = entries.map(e => [ e.id, e.currency, new Date(e.mts).toLocaleString(), prepareAmount(e.amount), prepareAmount(e.balance), e.description diff --git a/examples/rest2/movements.js b/examples/rest2/movements.js index 5b7ea82e..0df8fc1e 100644 --- a/examples/rest2/movements.js +++ b/examples/rest2/movements.js @@ -19,7 +19,7 @@ async function execute () { debug('fetching movements for %s...', ccy || 'all currencies') - const movements = await rest.movements(ccy) + const movements = await rest.movements({ ccy }) if (movements.length === 0) { return debug('no movements found') diff --git a/examples/rest2/order-history.js b/examples/rest2/order-history.js index 817e4f52..f97eb913 100644 --- a/examples/rest2/order-history.js +++ b/examples/rest2/order-history.js @@ -23,7 +23,7 @@ async function execute () { debug('fetching 30d order history for %s...', market) - const orders = await rest.orderHistory(market, START, END, LIMIT) + const orders = await rest.orderHistory({ symbol: market, start: START, end: END, limit: LIMIT }) if (orders.length === 0) { return debug('no historical orders for %s', market) diff --git a/examples/rest2/trade-history.js b/examples/rest2/trade-history.js index 04659571..8e1dfa78 100644 --- a/examples/rest2/trade-history.js +++ b/examples/rest2/trade-history.js @@ -23,7 +23,7 @@ async function execute () { debug('fetching 30d trade history for %s...', symbol) - const trades = await rest.accountTrades(symbol, START, END, LIMIT) + const trades = await rest.accountTrades({ symbol, start: START, end: END, limit: LIMIT }) if (trades.length === 0) { return debug('no historical trades for %s', symbol) diff --git a/package.json b/package.json index 20cd83ce..bb875d4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitfinex-api-node", - "version": "8.0.1", + "version": "8.0.2", "description": "Node reference library for Bitfinex API", "engines": { "node": ">=18.0"