{
  "opencollection": "1.0.0",
  "info": {
    "name": "Binance USD-S Margined Futures API",
    "version": "1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-MBX-APIKEY",
      "value": "{{X-MBX-APIKEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Market Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Test connectivity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/ping"
          },
          "docs": "Test connectivity to the futures REST API."
        },
        {
          "info": {
            "name": "Check server time",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/time"
          },
          "docs": "Test connectivity and get the current server time."
        },
        {
          "info": {
            "name": "Exchange information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/exchangeInfo"
          },
          "docs": "Get current futures exchange trading rules and symbol information including contract types, margin assets, and filters."
        },
        {
          "info": {
            "name": "Order book",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/depth",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of levels. Default 500. Valid values are 5, 10, 20, 50, 100, 500, 1000."
              }
            ]
          },
          "docs": "Get the current order book depth for a futures symbol."
        },
        {
          "info": {
            "name": "Recent trades list",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/trades",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of trades. Default 500, max 1000."
              }
            ]
          },
          "docs": "Get recent futures trades for a symbol."
        },
        {
          "info": {
            "name": "Kline/Candlestick data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/klines",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "Kline interval."
              },
              {
                "name": "startTime",
                "value": "",
                "type": "query",
                "description": "Start time in milliseconds."
              },
              {
                "name": "endTime",
                "value": "",
                "type": "query",
                "description": "End time in milliseconds."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results. Default 500, max 1500."
              }
            ]
          },
          "docs": "Get kline/candlestick bars for a futures symbol."
        },
        {
          "info": {
            "name": "Mark price",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/premiumIndex",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              }
            ]
          },
          "docs": "Get mark price and funding rate for a futures symbol or all symbols."
        },
        {
          "info": {
            "name": "Get funding rate history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/fundingRate",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "startTime",
                "value": "",
                "type": "query",
                "description": "Start time in milliseconds."
              },
              {
                "name": "endTime",
                "value": "",
                "type": "query",
                "description": "End time in milliseconds."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results. Default 100, max 1000."
              }
            ]
          },
          "docs": "Get historical funding rate data for a futures symbol."
        },
        {
          "info": {
            "name": "Get funding rate info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/fundingInfo"
          },
          "docs": "Get funding rate configuration for all symbols including funding interval and cap/floor rates."
        },
        {
          "info": {
            "name": "24hr ticker price change statistics",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/ticker/24hr",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              }
            ]
          },
          "docs": "Get 24-hour rolling window price change statistics for futures."
        },
        {
          "info": {
            "name": "Symbol price ticker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/ticker/price",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              }
            ]
          },
          "docs": "Get the latest price for a futures symbol or all symbols."
        },
        {
          "info": {
            "name": "Open interest",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/openInterest",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              }
            ]
          },
          "docs": "Get present open interest of a specific symbol."
        }
      ]
    },
    {
      "info": {
        "name": "Trading",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/order",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "orderId",
                "value": "",
                "type": "query",
                "description": "Order ID."
              },
              {
                "name": "origClientOrderId",
                "value": "",
                "type": "query",
                "description": "Client order ID."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Check a futures order's status."
        },
        {
          "info": {
            "name": "New order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fapi.binance.com/fapi/v1/order",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "side",
                "value": "",
                "type": "query",
                "description": "Order side."
              },
              {
                "name": "positionSide",
                "value": "",
                "type": "query",
                "description": "Position side for hedge mode. BOTH for one-way mode."
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Order type."
              },
              {
                "name": "timeInForce",
                "value": "",
                "type": "query",
                "description": "Time in force. Required for LIMIT orders."
              },
              {
                "name": "quantity",
                "value": "",
                "type": "query",
                "description": "Order quantity."
              },
              {
                "name": "reduceOnly",
                "value": "",
                "type": "query",
                "description": "Reduce only flag. Cannot be sent with closePosition."
              },
              {
                "name": "price",
                "value": "",
                "type": "query",
                "description": "Order price."
              },
              {
                "name": "newClientOrderId",
                "value": "",
                "type": "query",
                "description": "A unique ID among open orders."
              },
              {
                "name": "stopPrice",
                "value": "",
                "type": "query",
                "description": "Stop price for stop orders."
              },
              {
                "name": "closePosition",
                "value": "",
                "type": "query",
                "description": "Close all positions when triggered."
              },
              {
                "name": "activationPrice",
                "value": "",
                "type": "query",
                "description": "Activation price for TRAILING_STOP_MARKET orders."
              },
              {
                "name": "callbackRate",
                "value": "",
                "type": "query",
                "description": "Callback rate for TRAILING_STOP_MARKET orders."
              },
              {
                "name": "workingType",
                "value": "",
                "type": "query",
                "description": "Stop price working type."
              },
              {
                "name": "priceProtect",
                "value": "",
                "type": "query",
                "description": "Price protection flag."
              },
              {
                "name": "newOrderRespType",
                "value": "",
                "type": "query",
                "description": "Response type. ACK or RESULT."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Send in a new futures order. Supports LIMIT, MARKET, STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, and TRAILING_STOP_MARKET order types."
        },
        {
          "info": {
            "name": "Cancel order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://fapi.binance.com/fapi/v1/order",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "orderId",
                "value": "",
                "type": "query",
                "description": "Order ID."
              },
              {
                "name": "origClientOrderId",
                "value": "",
                "type": "query",
                "description": "Client order ID."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Cancel an active futures order."
        },
        {
          "info": {
            "name": "Place multiple orders",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fapi.binance.com/fapi/v1/batchOrders",
            "params": [
              {
                "name": "batchOrders",
                "value": "",
                "type": "query",
                "description": "JSON array of order parameters. Max 5 orders."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Send in new multiple orders. Maximum of 5 orders per request."
        },
        {
          "info": {
            "name": "Current all open orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/openOrders",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Get all open futures orders for a symbol or all symbols."
        }
      ]
    },
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Account information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v2/account",
            "params": [
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Get current futures account information including positions and balances."
        },
        {
          "info": {
            "name": "Futures account balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v2/balance",
            "params": [
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Get futures account balance."
        },
        {
          "info": {
            "name": "Position information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v2/positionRisk",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Get current position information for all or a specific symbol."
        },
        {
          "info": {
            "name": "Change initial leverage",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fapi.binance.com/fapi/v1/leverage",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "leverage",
                "value": "",
                "type": "query",
                "description": "Target initial leverage. 1 to 125."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Change user's initial leverage of a specific futures symbol."
        },
        {
          "info": {
            "name": "Change margin type",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fapi.binance.com/fapi/v1/marginType",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "marginType",
                "value": "",
                "type": "query",
                "description": "Margin type."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Change the margin type for a futures symbol between ISOLATED and CROSSED."
        },
        {
          "info": {
            "name": "Get income history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://fapi.binance.com/fapi/v1/income",
            "params": [
              {
                "name": "symbol",
                "value": "",
                "type": "query",
                "description": "Futures trading pair symbol, e.g. BTCUSDT."
              },
              {
                "name": "incomeType",
                "value": "",
                "type": "query",
                "description": "Income type filter."
              },
              {
                "name": "startTime",
                "value": "",
                "type": "query",
                "description": "Start time in milliseconds."
              },
              {
                "name": "endTime",
                "value": "",
                "type": "query",
                "description": "End time in milliseconds."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results. Default 100, max 1000."
              },
              {
                "name": "recvWindow",
                "value": "",
                "type": "query",
                "description": "Milliseconds the request is valid for."
              },
              {
                "name": "timestamp",
                "value": "",
                "type": "query",
                "description": "Request timestamp in milliseconds."
              },
              {
                "name": "signature",
                "value": "",
                "type": "query",
                "description": "HMAC SHA256 signature."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Get futures income history including realized PnL, funding fees, commissions, and transfers."
        }
      ]
    },
    {
      "info": {
        "name": "User Data Stream",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Start user data stream",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://fapi.binance.com/fapi/v1/listenKey",
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Start a new user data stream for futures. Returns a listen key that can be used to subscribe to user data WebSocket streams."
        },
        {
          "info": {
            "name": "Keepalive user data stream",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://fapi.binance.com/fapi/v1/listenKey",
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Keepalive a user data stream to prevent timeout."
        },
        {
          "info": {
            "name": "Close user data stream",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://fapi.binance.com/fapi/v1/listenKey",
            "auth": {
              "type": "apikey",
              "key": "X-MBX-APIKEY",
              "value": "{{X-MBX-APIKEY}}",
              "placement": "header"
            }
          },
          "docs": "Close out a user data stream."
        }
      ]
    }
  ],
  "bundled": true
}