Download OpenAPI specification:Download
The Microgard 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.
Returns the asset and rune depths and price. The values report the state at the end of each interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool required | string Return stats for this single pool. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "priceShiftLoss": "string",
- "luviIncrease": "string",
- "startAssetDepth": "string",
- "startRuneDepth": "string",
- "startLPUnits": "string",
- "startMemberCount": "string",
- "startSynthUnits": "string",
- "endAssetDepth": "string",
- "endRuneDepth": "string",
- "endLPUnits": "string",
- "endMemberCount": "string",
- "endSynthUnits": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "assetDepth": "string",
- "runeDepth": "string",
- "assetPrice": "string",
- "assetPriceUSD": "string",
- "liquidityUnits": "string",
- "membersCount": "string",
- "synthUnits": "string",
- "synthSupply": "string",
- "units": "string",
- "luvi": "string"
}
]
}
Returns the asset and rune depths and price. The values report the state at the end of each interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool required | string Return stats for this single pool. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string"
}, - "intervals": [
- {
- "openTime": "string",
- "closeTime": "string",
- "highTime": "string",
- "lowTime": "string",
- "openPrice": "string",
- "closePrice": "string",
- "highPrice": "string",
- "lowPrice": "string",
- "volume": "string",
- "liquidity": "string"
}
]
}
Returns swap count, volume, fees, slip in specified interval routed by THORSwap. If pool is not specified returns for all pools
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool | string Return history given pool. Returns sum of all pools if missing. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "totalVolumeUsd": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "totalVolumeUsd": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}
]
}
Returns swap count, volume, fees, slip in specified interval. If pool is not specified returns for all pools
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool | string Return history given pool. Returns sum of all pools if missing. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "totalVolumeUsd": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "totalVolumeUsd": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}
]
}
Returns an array containing the addresses for all pool members. Addresses are only shown once. If there's both a RUNE address and an asset address for a member, only the RUNE address will be shown.
pool | string Return only members present in the pool. |
{- "pools": [
- {
- "pool": "string",
- "runeAddress": "string",
- "assetAddress": "string",
- "poolUnits": "string",
- "sharedUnits": "string",
- "runeAdded": "string",
- "runePending": "string",
- "assetPending": "string",
- "assetAdded": "string",
- "runeWithdrawn": "string",
- "assetWithdrawn": "string",
- "dateFirstAdded": "string",
- "dateLastAdded": "string",
- "poolAssetDepth": "string",
- "poolRuneDepth": "string"
}
]
}
Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be seperated by comma (',')
address required | string Example: bnb1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m,bc1qcxssye4j6730h7ehgega3gyykkuwgdgmmpu62n Address to match the saver. an asset address should be given. |
{- "pools": [
- {
- "pool": "string",
- "assetAddress": "string",
- "saverUnits": "string",
- "assetAdded": "string",
- "assetRedeem": "string",
- "assetWithdrawn": "string",
- "dateFirstAdded": "string",
- "dateLastAdded": "string"
}
]
}