{
  "opencollection": "1.0.0",
  "info": {
    "name": "StoneX Clearing API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Authentication Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.clearing.stonex.com/auth/token",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Obtain a JWT access token using OAuth 2.0 client credentials. The token is valid for 10 hours and must be passed as a Bearer token in the Authorization header."
        }
      ]
    },
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/accounts",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Results per page."
              }
            ]
          },
          "docs": "Retrieve a list of clearing accounts accessible to the authenticated client."
        },
        {
          "info": {
            "name": "Get Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Unique account identifier."
              }
            ]
          },
          "docs": "Retrieve details of a specific clearing account."
        },
        {
          "info": {
            "name": "Get Account Positions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/accounts/:accountId/positions",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account identifier."
              }
            ]
          },
          "docs": "Retrieve current positions for a clearing account."
        },
        {
          "info": {
            "name": "Get Account Balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/accounts/:accountId/balances",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "Account identifier."
              }
            ]
          },
          "docs": "Retrieve cash, margin, and P&L balances for a clearing account."
        }
      ]
    },
    {
      "info": {
        "name": "Trading",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Trades",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/trades",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "query",
                "description": "Filter by account ID."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by trade status."
              },
              {
                "name": "from_date",
                "value": "",
                "type": "query",
                "description": "Start date filter."
              },
              {
                "name": "to_date",
                "value": "",
                "type": "query",
                "description": "End date filter."
              }
            ]
          },
          "docs": "Retrieve a list of trades with optional filtering."
        },
        {
          "info": {
            "name": "Submit Trade",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.clearing.stonex.com/trades",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit a trade for clearing and settlement."
        },
        {
          "info": {
            "name": "Get Trade",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/trades/:tradeId",
            "params": [
              {
                "name": "tradeId",
                "value": "",
                "type": "path",
                "description": "Trade identifier."
              }
            ]
          },
          "docs": "Retrieve details of a specific trade."
        }
      ]
    },
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/documents",
            "params": [
              {
                "name": "account_id",
                "value": "",
                "type": "query",
                "description": "Filter by account ID."
              },
              {
                "name": "document_type",
                "value": "",
                "type": "query",
                "description": "Filter by document type."
              },
              {
                "name": "from_date",
                "value": "",
                "type": "query",
                "description": "Start date filter."
              },
              {
                "name": "to_date",
                "value": "",
                "type": "query",
                "description": "End date filter."
              }
            ]
          },
          "docs": "Retrieve a list of clearing documents."
        },
        {
          "info": {
            "name": "Get Document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clearing.stonex.com/documents/:documentId",
            "params": [
              {
                "name": "documentId",
                "value": "",
                "type": "path",
                "description": "Document identifier."
              }
            ]
          },
          "docs": "Retrieve a specific clearing document."
        }
      ]
    }
  ],
  "bundled": true
}