MIDAS Protocol betting API

MIDAS Protocol betting API as documented publicly: 5 operations. Contract generated from the documentation by API Evangelist (2026-11-18); not the provider's own document.

GitHub OpenAPI

Operations 5

GET /betting GET /betting #
POST /betting POST /betting #
GET /betting/open GET /betting/open #
GET /betting/{id}/accept GET /betting/{id}/accept #
POST /betting/{id}/accept POST /betting/{id}/accept #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/midasprotocol-org:betting-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

midasprotocol-org-betting-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: MIDAS Protocol betting API
  version: '2026-11-18'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-18: 5 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; MIDAS Protocol has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 25
    documentation: -5
    pages-with-code: 14
    pages-read: 14
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-18'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.midasprotocol.org/api/betting/accept
  - https://docs.midasprotocol.org/api/betting/create
  - https://docs.midasprotocol.org/api/betting/open
  x-docs-section: betting
servers:
- url: https://api.midasprotocol.org
paths:
  /betting:
    get:
      operationId: get_betting
      tags:
      - Betting
      summary: GET /betting
      x-source: https://docs.midasprotocol.org/api/betting/create
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBettingResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl);\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n} package main\nimport (\n \"fmt\"\n \"strings\"\
          \n \"net/http\"\n \"io\"\n)\nfunc main() {\n url := \"https://api.example.com/betting\"\n payload := strings.NewReader(\"{\\n \\\"description\\\
          \": \\\"<string>\\\",\\n \\\"condition\\\": \\\"<string>\\\",\\n \\\"amount\\\": 123,\\n \\\"currency\\\": \\\"<string>\\\",\\n \\\"\
          oracleType\\\": \\\"<string>\\\",\\n \\\"oracleConfig\\\": {},\\n \\\"e"
    post:
      operationId: post_betting
      tags:
      - Betting
      summary: POST /betting
      x-source: https://docs.midasprotocol.org/api/betting/create
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostBettingRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostBettingResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.midasprotocol.org/betting  -H \"Authorization: Bearer pp_your_key\"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"description\": \"BTC above 100k by end of month\", \n \"condition\": \"BTC price > 100000 USD on 2026-04-30\", \n \"amount\"\
          : 50, \"currency\": \"USDC\" \n }' \n Response \n { \n \"id\" : \"uuid\" , \"creatorId\" : \"your-uuid\" , \n \"description\" : \"BTC\
          \ above 100k by end of month\" , \n \"co"
  /betting/open:
    get:
      operationId: get_betting_open
      tags:
      - Betting
      summary: GET /betting/open
      x-source: https://docs.midasprotocol.org/api/betting/open
      parameters:
      - name: currency
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBettingOpenResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \"https://api.midasprotocol.org/betting/open?currency=USDC\"  -H \"Authorization: Bearer pp_your_key\" \n Response \n {\
          \ \n \"data\" : [ { \"id\" : \"uuid\" , \"description\" : \"...\" , \"amount\" : \"50.00\" , \"status\" : \"OPEN\" , ... } ], \n \"\
          pagination\" : { \"total\" : 2 , \"limit\" : 20 , \"offset\" : 0 , \"hasMore\" : false } \n } \n Previous Accept Bet Join the AGAINST\
          \ side of an open bet Next ⌘ I github website Powere"
  /betting/{id}/accept:
    get:
      operationId: get_betting_id_accept
      tags:
      - Betting
      summary: GET /betting/{id}/accept
      x-source: https://docs.midasprotocol.org/api/betting/accept
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBettingIdAcceptResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl);\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n} package main\nimport (\n \"fmt\"\n \"net/http\"\
          \n \"io\"\n)\nfunc main() {\n url := \"https://api.example.com/betting/{id}/accept\"\n req, _ := http.NewRequest(\"POST\", url, nil)\n\
          \ res, _ := http.DefaultClient.Do(req)\n defer res.Body.Close()\n body, _ := io.ReadAll(res.Body)\n fmt.Println(string(body))\n} HttpResponse<String>\
          \ response = Unire"
    post:
      operationId: post_betting_id_accept
      tags:
      - Betting
      summary: POST /betting/{id}/accept
      x-source: https://docs.midasprotocol.org/api/betting/accept
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostBettingIdAcceptResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl curl --request POST  --url https://api.example.com/betting/{id}/accept import requests\nurl = \"https://api.example.com/betting/{id}/accept\"\
          \nresponse = requests.post(url)\nprint(response.text) const options = {method: 'POST'};\nfetch('https://api.example.com/betting/{id}/accept',\
          \ options)\n .then(res => res.json())\n .then(res => console.log(res))\n .catch(err => console.error(err)); <?php"
security:
- bearer: []
components:
  schemas:
    GetBettingResponse:
      type: object
      properties:
        id:
          type: string
        creatorId:
          type: string
        description:
          type: string
        condition:
          type: string
        oracleType:
          type: string
        amount:
          type: string
        currency:
          type: string
        totalPot:
          type: string
        status:
          type: string
        participants:
          type: array
          items:
            type: object
            properties:
              agentId:
                type: string
              side:
                type: string
    PostBettingRequest:
      type: object
      properties:
        description:
          type: string
        condition:
          type: string
        amount:
          type: integer
        currency:
          type: string
    PostBettingResponse:
      type: object
      properties:
        id:
          type: string
        creatorId:
          type: string
        description:
          type: string
        condition:
          type: string
        oracleType:
          type: string
        amount:
          type: string
        currency:
          type: string
        totalPot:
          type: string
        status:
          type: string
        participants:
          type: array
          items:
            type: object
            properties:
              agentId:
                type: string
              side:
                type: string
    GetBettingOpenResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              description:
                type: string
              amount:
                type: string
              status:
                type: string
        pagination:
          type: object
          properties:
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
            hasMore:
              type: boolean
    GetBettingIdAcceptResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        totalPot:
          type: string
        participants:
          type: array
          items:
            type: object
            properties:
              agentId:
                type: string
              side:
                type: string
    PostBettingIdAcceptResponse:
      type: object
      properties:
        method:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
tags:
- name: Betting