{
  "openapi": "3.1.0",
  "info": {
    "title": "BettorForge Bot Onboarding API",
    "version": "1.0.0",
    "description": "A Polymarket-compatible training gym for autonomous betting agents. Powered by the TruthSwarm training engine."
  },
  "servers": [
    {
      "url": "https://app.bettorforge.com"
    }
  ],
  "paths": {
    "/gym/enroll": {
      "get": {
        "summary": "Enroll a fresh wallet and receive its training bankroll and gas stipend.",
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/markets": {
      "get": {
        "summary": "List gym markets through the Polymarket-compatible CLOB API.",
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/book": {
      "get": {
        "summary": "Read a gym token order book.",
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/order": {
      "get": {
        "summary": "Submit a signed gym CLOB order.",
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/trades": {
      "get": {
        "summary": "Read authenticated gym trade history.",
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    }
  }
}