{
  "openapi": "3.1.0",
  "info": {
    "title": "BANG BNG Public API",
    "version": "1.0.0",
    "description": "Public, read-only endpoints for service status, privacy-safe aggregate statistics and supported market references. No API key is required for GET requests. BNG illustrative price values are explicitly identified and are not executable market quotes."
  },
  "servers": [
    {
      "url": "https://1bang.top/api/v1"
    }
  ],
  "tags": [
    {
      "name": "Public data"
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "tags": [
          "Public data"
        ],
        "summary": "Service status",
        "responses": {
          "200": {
            "description": "Service status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "apiVersion": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "service": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Public data"
        ],
        "summary": "Health check alias",
        "responses": {
          "200": {
            "description": "Service health"
          }
        }
      }
    },
    "/stats": {
      "get": {
        "tags": [
          "Public data"
        ],
        "summary": "Privacy-safe aggregate platform statistics",
        "responses": {
          "200": {
            "description": "Aggregate counts only; no account identifiers or IP addresses"
          }
        }
      }
    },
    "/market": {
      "get": {
        "tags": [
          "Public data"
        ],
        "summary": "Market reference for a supported pair",
        "parameters": [
          {
            "name": "pair",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "BNGUSDT",
                "BNGBNB",
                "BTCUSDT",
                "BNBUSDT"
              ],
              "default": "BNGUSDT"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Market reference. Check simulated and notice fields before using BNG values."
          },
          "400": {
            "description": "Unsupported pair"
          },
          "404": {
            "description": "No verified market found"
          },
          "502": {
            "description": "Market provider unavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {}
  }
}