This commit is contained in:
discountry
2025-10-03 15:28:16 +08:00
parent d5c4b04746
commit fcb83bd16b
925 changed files with 165721 additions and 4 deletions
@@ -0,0 +1,25 @@
import ccxt from '../../js/ccxt.js';
import asTable from 'as-table';
const table = asTable.configure ({ delimiter: ' | ' });
console.log ('CCXT Version:', ccxt.version)
async function main () {
const exchange = new ccxt.binanceusdm()
, symbol = 'ETH/USDT'
, since = undefined
, limit = undefined
, params = {}
// ------------------------------------------------------------------------
// fetch the history of the funding rate for a symbol
const response = await exchange.fetchFundingRateHistory (symbol, since, limit, params)
console.log (table (response))
}
main ()