---
agentTools:
  projectIndex: https://ociswap.readme.io/llms.txt
---

# Returns exchange-wide statistics

Returns exchange-wide statistics

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "0.6.1",
    "title": "Ociswap API",
    "description": "Ociswap API",
    "license": {
      "name": "MIT License",
      "url": "https://api.ociswap.com/license"
    }
  },
  "servers": [
    {
      "url": "https://api.ociswap.com"
    }
  ],
  "security": [],
  "paths": {
    "/statistics": {
      "get": {
        "operationId": "statistics",
        "description": "Returns exchange-wide statistics",
        "summary": "Returns exchange-wide statistics",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Statistics"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "$ref": "#/components/responses/Error"
          },
          "500": {
            "description": "An unexpected error occured",
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "Error": {
        "description": "Error response",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "string",
                  "description": "Error message"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Decimal": {
        "description": "String-encoded decimal representing the amount of a related fungible resource.",
        "type": "string",
        "format": "decimal"
      },
      "MarketCap": {
        "type": "object",
        "properties": {
          "circulating": {
            "$ref": "#/components/schemas/BaseAmountsTimes"
          },
          "fully_diluted": {
            "$ref": "#/components/schemas/BaseAmountsTimes"
          }
        }
      },
      "ValueTimes": {
        "type": "object",
        "properties": {
          "now": {
            "$ref": "#/components/schemas/Decimal"
          },
          "1h": {
            "$ref": "#/components/schemas/Decimal"
          },
          "24h": {
            "$ref": "#/components/schemas/Decimal"
          },
          "7d": {
            "$ref": "#/components/schemas/Decimal"
          },
          "percent_change": {
            "$ref": "#/components/schemas/PercentChange"
          }
        }
      },
      "PercentChange": {
        "type": "object",
        "properties": {
          "24h": {
            "$ref": "#/components/schemas/Decimal"
          },
          "7d": {
            "$ref": "#/components/schemas/Decimal"
          }
        }
      },
      "ValueIntervals": {
        "type": "object",
        "properties": {
          "1h": {
            "$ref": "#/components/schemas/Decimal"
          },
          "24h": {
            "$ref": "#/components/schemas/Decimal"
          },
          "7d": {
            "$ref": "#/components/schemas/Decimal"
          },
          "total": {
            "$ref": "#/components/schemas/Decimal"
          }
        }
      },
      "BaseAmountsTimes": {
        "type": "object",
        "properties": {
          "xrd": {
            "$ref": "#/components/schemas/ValueTimes"
          },
          "usd": {
            "$ref": "#/components/schemas/ValueTimes"
          }
        }
      },
      "BaseAmountsIntervals": {
        "type": "object",
        "properties": {
          "xrd": {
            "$ref": "#/components/schemas/ValueIntervals"
          },
          "usd": {
            "$ref": "#/components/schemas/ValueIntervals"
          }
        }
      },
      "Statistics": {
        "type": "object",
        "properties": {
          "total_value_locked": {
            "$ref": "#/components/schemas/BaseAmountsTimes"
          },
          "volume": {
            "$ref": "#/components/schemas/BaseAmountsIntervals"
          },
          "market_cap": {
            "$ref": "#/components/schemas/MarketCap"
          },
          "fee": {
            "description": "Total collected fee",
            "$ref": "#/components/schemas/BaseAmountsIntervals"
          },
          "events_count": {
            "$ref": "#/components/schemas/EventCount"
          },
          "liquidity_provider_count": {
            "$ref": "#/components/schemas/Decimal"
          },
          "trader_count": {
            "$ref": "#/components/schemas/ValueIntervals"
          }
        }
      },
      "EventCount": {
        "type": "object",
        "properties": {
          "instantiate_pool": {
            "$ref": "#/components/schemas/ValueIntervals"
          },
          "add_liquidity": {
            "$ref": "#/components/schemas/ValueIntervals"
          },
          "remove_liquidity": {
            "$ref": "#/components/schemas/ValueIntervals"
          },
          "swap": {
            "$ref": "#/components/schemas/ValueIntervals"
          },
          "total": {
            "$ref": "#/components/schemas/ValueIntervals"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 18,
      "2": 175,
      "3": 145,
      "4": 46,
      "5": 146,
      "6": 246,
      "7": 0,
      "8": 30,
      "9": 1,
      "10": 34,
      "11": 138
    }
  }
}
```