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

Binance REST Futures REST usdm public example for the Siebly Binance SDK, with TypeScript source for exchange REST API and WebSocket integration, setup, and production SDK docs.

What This Example Covers

  • Binance REST API example in TypeScript.
  • Uses the Siebly Binance SDK package binance instead of hand-written HTTP request plumbing.
  • Source path: Binance/Rest/Futures/rest-usdm-public.ts.
  • Example category: REST Futures.
  • Imports SDK symbols including USDMClient.

How To Use This Example

  • Start here for the specific request or stream pattern, then check the matching SDK guide for install, credentials, and operational notes.
  • Open the repository source when you need the latest committed version: GitHub source file.

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