CONNECT APP
Build with BingX
Connect with Elite Traders, Discover Smarter Investing
Commerce
- API key
MCP
Give your agent BingX tools
Every BingX action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's BingX account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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: {},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{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",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run BingX Account Get Balance:
result = await session.call_tool("bingx-account-get-balance", {})SDK
Run BingX actions from your backend
Connect a user's BingX account once, then run BingX Account Get Balance on their behalf from your own code — TypeScript, Python, or plain HTTP.
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" },
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="bingx-account-get-balance",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"bingx": {"authProvisionId": "apn_xxxxxxx"},
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "bingx-account-get-balance",
"configured_props": {
"bingx": { "authProvisionId": "apn_xxxxxxx" }
}
}'TOOLS
BingX actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
BingX Account Get Balance
actionGet Perpetual Swap Account Asset Information See the documentation.Read-onlyv0.0.6 -
BingX Account Get Positions
actionPerpetual Swap Positions See the documentation.Read-onlyv0.0.5 -
BingX Custom Bracket Order
actionPlace bracket order. See the documentationWritev0.1.2 -
BingX Custom Calculate Leveraged Position
actionCalculate leveraged position based on entry, stop price and account balanceWritev0.0.5 -
BingX Generic API Call
actionMake any API call for Bingx Futures as per the documentation. See the documentationWritev0.0.4 -
BingX Market Get All Contracts
actionContract Information See the documentation.Read-onlyv0.0.5 -
BingX Market Get History Funding
actionFunding Rate History See the documentation.Read-onlyv0.0.5 -
BingX Market Get History Klines
actionK-Line Data History See the documentation.Read-onlyv0.0.5 -
BingX Market Get Latest Funding
actionCurrent Funding Rate See the documentation.Read-onlyv0.0.5 -
BingX Market Get Latest Kline
actionGet K-Line Data See the documentation.Read-onlyv0.0.5 -
BingX Market Get Latest Price
actionGet Latest Price of a Trading Pair See the documentation.Read-onlyv0.0.5 -
BingX Market Get Market Depth
actionGet Market Depth See the documentation.Read-onlyv0.0.5 -
BingX Market Get Market Trades
actionThe latest Trade of a Trading Pair See the documentation.Read-onlyv0.0.5 -
BingX Market Get Open Positions
actionGet Swap Open Positions See the documentation.Read-onlyv0.0.5 -
BingX Market Get Ticker
actionGet Ticker See the documentation.Read-onlyv0.0.5 -
BingX Trade Batch Cancel Orders
actionCancel a Batch of Orders See the documentation.Writev0.0.5 -
BingX Trade Cancel All Orders
actionCancel All Orders See the documentation.Writev0.0.5 -
BingX Trade Cancel Order
actionCancel an Order See the documentation.Writev0.0.5 -
BingX Trade New Order
actionPlace a New Order. See the documentationWritev0.1.5 -
BingX Trade One Click Close All Positions
actionOne-Click Close All Positions See the documentation.Writev0.0.6 -
BingX Trade Pending Orders
actionUnfilled Order Acquisition See the documentation.Writev0.0.5 -
BingX Trade Query Order
actionQuery Order Details See the documentation.Writev0.0.5 -
BingX Trade Set Leverage
actionSwitch Leverage See the documentation.Writev0.0.5 -
BingX Trade Set Margin Mode
actionSwitch Margin Mode See the documentation.Writev0.0.5 -
List Currency Options
actionRetrieves available options for the Currency field.Read-onlyv0.0.1 -
List Symbol Options
actionRetrieves available options for the Symbol field.Read-onlyv0.0.1
No BingX triggers are available yet.
MULTI-APP
Use BingX with other popular apps
Most products don't stop at one integration. Pair BingX with the other apps your users rely on, and ship use cases that span both.
- App slug
- bingx
- Authentication
- API key
- Categories
- Commerce
- Actions
- 26
- Triggers
- 0
- API proxy
- Not available