---
title: "Binance REST Usdm Order JavaScript SDK Example | Siebly"
description: "Binance Futures REST usdm order JavaScript example for the Siebly Binance SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs."
canonical: "https://siebly.io/examples/Binance/Rest/Futures/rest-usdm-order"
robots: "index,follow"
---

# Binance REST Usdm Order JavaScript SDK Example

Binance Futures REST usdm order JavaScript example for the Siebly Binance SDK, covering exchange REST API and WebSocket integration, setup, and production SDK docs.

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

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

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

## rest-usdm-order.ts

```typescript
import { USDMClient } from 'binance';

const key = process.env.API_KEY_COM || 'APIKEY';
const secret = process.env.API_SECRET_COM || 'APISECRET';

const client = new USDMClient({
  api_secret: secret,
  api_key: key,
  beautifyResponses: true,
});

async function start() {
  try {
    // To open a short position - if you don't have a position yet, and your account is set to one-way mode, just place a sell order to open a short position
    const result = await client.submitNewOrder({
      side: 'SELL',
      symbol: 'BTCUSDT',
      type: 'MARKET',
      quantity: 0.001,
      // newOrderRespType: 'FULL',
    });

    console.log('market sell result: ', result);
  } catch (e) {
    console.error('market sell failed: ', e);
  }
}

start();
```
