Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/rest2/funding_credits.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
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 @@ -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({
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 @@ -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')
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 @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/ledgers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/rest2/movements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
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 @@ -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)
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 @@ -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)
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": "bitfinex-api-node",
"version": "8.0.1",
"version": "8.0.2",
"description": "Node reference library for Bitfinex API",
"engines": {
"node": ">=18.0"
Expand Down