Example: rest-usdm-public.ts
Static snapshot for Binance/Rest/Futures/rest-usdm-public.ts.
Example Path
Binance/Rest/Futures/rest-usdm-public.ts
Source Link
Repository source: https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Binance/Rest/Futures/rest-usdm-public.ts
Code Snapshot
import { USDMClient } from 'binance';
const client = new USDMClient({
testnet: true,
// keepAlive: true,
// ... any other params,
});
client
.getRecentTrades({
symbol: 'BTCUSDT',
limit: 2,
})
.then((r) => console.log('results: ', r))
.catch((e) => console.error('exception: ', e));
This is a static, crawlable snapshot. The interactive app loads after JavaScript starts and can refresh live data.