---
title: "Binance REST Usdm Public JavaScript SDK Example | Siebly"
description: "Binance Futures REST usdm public JavaScript example. Read the source code, review its SDK calls, and browse related exchange integration examples."
canonical: "https://siebly.io/examples/Binance/Rest/Futures/rest-usdm-public"
robots: "index,follow"
---

# Binance REST Usdm Public JavaScript SDK Example

Binance Futures REST usdm public JavaScript example. Read the source code, review its SDK calls, and browse related exchange integration examples.

**Path:** [Home](/) / [Examples](/examples) / [Binance](/examples/Binance) / [REST](/examples/Binance/Rest) / [Futures](/examples/Binance/Rest/Futures) / [rest-usdm-public.ts](/examples/Binance/Rest/Futures/rest-usdm-public)

[View source on GitHub](https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Binance/REST/Futures/rest-usdm-public.ts)

[Open the Binance JavaScript SDK guide](/sdk/binance/javascript)

## rest-usdm-public.ts

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