Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
contact:
email: devs@thorchain.org
description: The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.
title: Midgard Public Stats API
version: 2.34.2
servers:
- url: https://gateway.liquify.com/chain/thorchain_midgard
tags:
- name: Stats
paths:
/v2/stats:
get:
description: Returns an object containing global stats for all pools and all transactions
operationId: GetStats
responses:
'200':
$ref: '#/components/responses/StatsResponse'
summary: Global Stats
tags:
- Stats
components:
responses:
StatsResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/StatsData'
description: object containing global THORChain data
schemas:
StatsData:
properties:
addLiquidityCount:
description: Int64, number of deposits since beginning.
type: string
addLiquidityVolume:
description: 'Int64(e8), total of deposits since beginning.
'
type: string
dailyActiveUsers:
description: Deprecated, it's always 0.
type: string
monthlyActiveUsers:
description: Deprecated, it's always 0.
type: string
runeDepth:
description: Int64(e8), current total Rune in the pools.
type: string
runePriceUSD:
description: Float, the price of Rune based on the deepest USD pool.
type: string
swapCount:
description: Int64, number of swaps (including synths) since beginning.
type: string
swapCount24h:
description: Int64(e8), number of swaps (including synths) in the last 24h.
type: string
swapCount30d:
description: Int64, number of swaps (including synths) in the last 30d.
type: string
swapVolume:
description: 'Int64(e8), total volume of swaps (including synths) denoted in Rune since beginning.
'
type: string
switchedRune:
description: Int64(e8), amount of native rune switched from erc20 or bep2 rune.
type: string
synthBurnCount:
description: Int64, number of swaps from Synth to Rune since beginning.
type: string
synthMintCount:
description: Int64, number of swaps from Rune to Synth since beginning.
type: string
toAssetCount:
description: Int64, number of swaps from Rune to Asset since beginning.
type: string
toRuneCount:
description: Int64, number of swaps from Asset to Rune since beginning.
type: string
uniqueSwapperCount:
description: Deprecated, it's always 0.
type: string
withdrawCount:
description: Int64, number of withdraws since beginning.
type: string
withdrawVolume:
description: 'Int64(e8), total of withdraws since beginning.
'
type: string
required:
- runeDepth
- switchedRune
- runePriceUSD
- swapVolume
- swapCount24h
- swapCount30d
- swapCount
- toAssetCount
- toRuneCount
- synthMintCount
- synthBurnCount
- dailyActiveUsers
- monthlyActiveUsers
- uniqueSwapperCount
- addLiquidityVolume
- withdrawVolume
- addLiquidityCount
- withdrawCount
type: object