Binance TypeScript SDK example: rest-usdm-public.ts

Binance TypeScript SDK REST Futures example for Binance/Rest/Futures/rest-usdm-public.ts. Source code reference for exchange REST, WebSocket, and API integration patterns with links to matching Siebly SDK documentation.

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

Related SDK Docs

Example Source

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));