# BingX — Pipedream Connect

> Connect with Elite Traders, Discover Smarter Investing

- API slug: `bingx` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Commerce
- Website: https://bingx.com/
- This page (HTML): https://pipedream.com/apps/bingx
- Tools: 26 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: bingx`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "bingx",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run BingX Account Get Balance:
const result = await mcp.callTool({
  name: "bingx-account-get-balance",
  arguments: {},
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "bingx-account-get-balance",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bingx: { authProvisionId: "apn_xxxxxxx" },
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (26)

### `bingx-account-get-balance` — BingX Account Get Balance (Read-only)

Get Perpetual Swap Account Asset Information See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/account-get-balance.md

### `bingx-account-get-positions` — BingX Account Get Positions (Read-only)

Perpetual Swap Positions See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/account-get-positions.md

### `bingx-custom-bracket-order` — BingX Custom Bracket Order (Write)

Place bracket order. See the documentation

Full schema: https://pipedream.com/apps/bingx/actions/custom-bracket-order.md

### `bingx-custom-calculate-leveraged-position` — BingX Custom Calculate Leveraged Position (Write)

Calculate leveraged position based on entry, stop price and account balance

Full schema: https://pipedream.com/apps/bingx/actions/custom-calculate-leveraged-position.md

### `bingx-generic-api-call` — BingX Generic API Call (Write)

Make any API call for Bingx Futures as per the documentation. See the documentation

Full schema: https://pipedream.com/apps/bingx/actions/generic-api-call.md

### `bingx-market-get-all-contracts` — BingX Market Get All Contracts (Read-only)

Contract Information See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-all-contracts.md

### `bingx-market-get-historical-funding` — BingX Market Get History Funding (Read-only)

Funding Rate History See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-historical-funding.md

### `bingx-market-get-kline-history` — BingX Market Get History Klines (Read-only)

K-Line Data History See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-kline-history.md

### `bingx-market-get-latest-funding` — BingX Market Get Latest Funding (Read-only)

Current Funding Rate See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-latest-funding.md

### `bingx-market-get-kline` — BingX Market Get Latest Kline (Read-only)

Get K-Line Data See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-kline.md

### `bingx-market-get-latest-price` — BingX Market Get Latest Price (Read-only)

Get Latest Price of a Trading Pair See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-latest-price.md

### `bingx-market-get-market-depth` — BingX Market Get Market Depth (Read-only)

Get Market Depth See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-market-depth.md

### `bingx-market-get-market-trades` — BingX Market Get Market Trades (Read-only)

The latest Trade of a Trading Pair See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-market-trades.md

### `bingx-market-get-open-positions` — BingX Market Get Open Positions (Read-only)

Get Swap Open Positions See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-open-positions.md

### `bingx-market-get-ticker` — BingX Market Get Ticker (Read-only)

Get Ticker See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/market-get-ticker.md

### `bingx-trade-batch-cancel-orders` — BingX Trade Batch Cancel Orders (Write)

Cancel a Batch of Orders See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-batch-cancel-orders.md

### `bingx-trade-cancel-all-orders` — BingX Trade Cancel All Orders (Write)

Cancel All Orders See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-cancel-all-orders.md

### `bingx-trade-cancel-order` — BingX Trade Cancel Order (Write)

Cancel an Order See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-cancel-order.md

### `bingx-trade-new-order` — BingX Trade New Order (Write)

Place a New Order. See the documentation

Full schema: https://pipedream.com/apps/bingx/actions/trade-new-order.md

### `bingx-trade-oneclick-close-all-positions` — BingX Trade One Click Close All Positions (Write)

One-Click Close All Positions See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-oneclick-close-all-positions.md

### `bingx-trade-pending-orders` — BingX Trade Pending Orders (Write)

Unfilled Order Acquisition See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-pending-orders.md

### `bingx-trade-query-order` — BingX Trade Query Order (Write)

Query Order Details See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-query-order.md

### `bingx-trade-set-leverage` — BingX Trade Set Leverage (Write)

Switch Leverage See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-set-leverage.md

### `bingx-trade-set-margin-mode` — BingX Trade Set Margin Mode (Write)

Switch Margin Mode See the documentation.

Full schema: https://pipedream.com/apps/bingx/actions/trade-set-margin-mode.md

### `bingx-list-currency-options` — List Currency Options (Read-only)

Retrieves available options for the Currency field.

Full schema: https://pipedream.com/apps/bingx/actions/list-currency-options.md

### `bingx-list-symbol-options` — List Symbol Options (Read-only)

Retrieves available options for the Symbol field.

Full schema: https://pipedream.com/apps/bingx/actions/list-symbol-options.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
