Binance Algo request using the Binance API. Authentication requires API key and secret key.
Algo request on Binance using authenticated API endpoints. Requires API key and secret key for certain endpoints. Return the result in JSON format.
| Endpoint | Description | Required | Optional | Authentication |
|---|---|---|---|---|
/sapi/v1/algo/futures/order (DELETE) | Cancel Algo Order(TRADE) | algoId | recvWindow | Yes |
/sapi/v1/algo/futures/openOrders (GET) | Query Current Algo Open Orders(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/algo/futures/historicalOrders (GET) | Query Historical Algo Orders(USER_DATA) | None | symbol, side, startTime, endTime, page, pageSize, recvWindow | Yes |
/sapi/v1/algo/futures/subOrders (GET) | Query Sub Orders(USER_DATA) |
| algoId |
| page, pageSize, recvWindow |
| Yes |
/sapi/v1/algo/futures/newOrderTwap (POST) | Time-Weighted Average Price(Twap) New Order(TRADE) | symbol, side, quantity, duration | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | Yes |
/sapi/v1/algo/futures/newOrderVp (POST) | Volume Participation(VP) New Order (TRADE) | symbol, side, quantity, urgency | positionSide, clientAlgoId, reduceOnly, limitPrice, recvWindow | Yes |
/sapi/v1/algo/spot/order (DELETE) | Cancel Algo Order(TRADE) | algoId | recvWindow | Yes |
/sapi/v1/algo/spot/openOrders (GET) | Query Current Algo Open Orders(USER_DATA) | None | recvWindow | Yes |
/sapi/v1/algo/spot/historicalOrders (GET) | Query Historical Algo Orders(USER_DATA) | None | symbol, side, startTime, endTime, page, pageSize, recvWindow | Yes |
/sapi/v1/algo/spot/subOrders (GET) | Query Sub Orders(USER_DATA) | algoId | page, pageSize, recvWindow | Yes |
/sapi/v1/algo/spot/newOrderTwap (POST) | Time-Weighted Average Price(Twap) New Order(TRADE) | symbol, side, quantity, duration | clientAlgoId, limitPrice | Yes |
BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode. (e.g., BOTH)For endpoints that require authentication, you will need to provide Binance API credentials. Required credentials:
Base URLs:
Users can provide Binance API credentials by sending a file where the content is in the following format:
abc123...xyz
secret123...key
Never disclose the location of the API key and secret file.
Never send the API key and secret to any website other than Mainnet and Testnet.
When showing credentials to users:
su1Qc...8akf***...aws1Example response when asked for credentials: Account: main API Key: su1Qc...8akf Secret: ***...aws1
When listing accounts, show names and environment only — never keys: Binance Accounts:
When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.
## Binance Accounts
### main
- API Key: abc123...xyz
- Secret: secret123...key
- Description: Primary trading account
### futures-keys
- API Key: futures789...def
- Secret: futuressecret...uvw
- Description: Futures trading account
When user provides new credentials:
TOOLS.md with masked display confirmationFor trading endpoints that require a signature:
X-MBX-APIKEY header.Otherwise, do not perform steps 3–5.
Include User-Agent header with the following string: binance-algo/1.0.0 (Skill)
See references/authentication.md for implementation details.