UNPKG

@ninerealms/midgard-client

Version:
191 lines 5.63 kB
import BigNumber from 'bignumber.js'; import { IntervalKey, Status } from './utils'; export interface V2PoolsRequestOptions { status?: Status; } export interface V2PoolResponse { asset: string; volume24h: string; assetDepth: string; runeDepth: string; assetPrice: string; assetPriceUSD: string; poolAPY: string; status: string; liquidityUnits: string; synthUnits: string; synthSupply: string; } export interface V2Pool { asset: string; volume24h: BigNumber; assetDepth: BigNumber; runeDepth: BigNumber; assetPrice: BigNumber; assetPriceUSD: BigNumber; poolAPY: BigNumber; status: string; liquidityUnits: BigNumber; synthUnits: BigNumber; synthSupply: BigNumber; } export declare const rawToV2Pool: (res: V2PoolResponse) => V2Pool; export declare const pools: (options?: V2PoolsRequestOptions | undefined) => Promise<V2Pool[]>; export declare const pool: (asset: string) => Promise<V2Pool>; export declare const poolMany: (assets: string[]) => Promise<V2Pool[]>; export interface V2PoolStatsResponse { asset: string; status: Status; assetPrice: string; assetPriceUSD: string; assetDepth: string; runeDepth: string; synthUnits: string; synthSupply: string; liquidityUnits: string; units: string; toAssetVolume: string; toRuneVolume: string; swapVolume: string; toAssetCount: string; toRuneCount: string; swapCount: string; uniqueSwapperCount: string; toAssetAverageSlip: string; toRuneAverageSlip: string; averageSlip: string; toAssetFees: string; toRuneFees: string; totalFees: string; poolAPY: string; addAssetLiquidityVolume: string; addRuneLiquidityVolume: string; addLiquidityVolume: string; addliquidityCount: string; withdrawAssetVolume: string; withdrawRuneVolume: string; imperminantLossProtectionPaid: string; withdrawVolume: string; withdrawCount: string; uniqueMemberCount: string; } export interface V2PoolStats { asset: string; status: Status; assetPrice: BigNumber; assetPriceUSD: BigNumber; assetDepth: BigNumber; runeDepth: BigNumber; synthUnits: BigNumber; synthSupply: BigNumber; liquidityUnits: BigNumber; units: BigNumber; toAssetVolume: BigNumber; toRuneVolume: BigNumber; swapVolume: BigNumber; toAssetCount: BigNumber; toRuneCount: BigNumber; swapCount: BigNumber; uniqueSwapperCount: BigNumber; toAssetAverageSlip: BigNumber; toRuneAverageSlip: BigNumber; averageSlip: BigNumber; toAssetFees: BigNumber; toRuneFees: BigNumber; totalFees: BigNumber; poolAPY: BigNumber; addAssetLiquidityVolume: BigNumber; addRuneLiquidityVolume: BigNumber; addLiquidityVolume: BigNumber; addliquidityCount: BigNumber; withdrawAssetVolume: BigNumber; withdrawRuneVolume: BigNumber; imperminantLossProtectionPaid: BigNumber; withdrawVolume: BigNumber; withdrawCount: BigNumber; uniqueMemberCount: BigNumber; } export declare const rawToV2PoolStats: (res: V2PoolStatsResponse) => V2PoolStats; export interface V2PoolStatsOptions { asset: string; period?: IntervalKey; } export declare const poolStats: (options: V2PoolStatsOptions) => Promise<V2PoolStats>; export declare const poolStatsMany: (options: V2PoolStatsOptions[]) => Promise<V2PoolStats[]>; export interface V2PoolStatsLegacyResponse { asset: string; status: string; price: string; assetDepth: string; runeDepth: string; poolDepth: string; poolUnits: string; buyVolume: string; sellVolume: string; poolVolume: string; volume24h: string; buyAssetCount: string; sellAssetCount: string; swappingTxCount: string; swappersCount: string; buyTxAverage: string; sellTxAverage: string; poolTxAverage: string; buySlipAverage: string; sellSlipAverage: string; poolSlipAverage: string; buyFeesTotal: string; sellFeesTotal: string; poolFeesTotal: string; buyFeeAverage: string; sellFeeAverage: string; poolFeeAverage: string; poolAPY: string; assetStakedTotal: string; runeStakedTotal: string; poolStakedTotal: string; stakeTxCount: string; withdrawTxCount: string; stakingTxCount: string; stakersCount: string; } export interface V2PoolStatsLegacy { asset: string; status: string; price: BigNumber; assetDepth: BigNumber; runeDepth: BigNumber; poolDepth: BigNumber; poolUnits: BigNumber; buyVolume: BigNumber; sellVolume: BigNumber; poolVolume: BigNumber; volume24h: BigNumber; buyAssetCount: BigNumber; sellAssetCount: BigNumber; swappingTxCount: BigNumber; swappersCount: BigNumber; buyTxAverage: BigNumber; sellTxAverage: BigNumber; poolTxAverage: BigNumber; buySlipAverage: BigNumber; sellSlipAverage: BigNumber; poolSlipAverage: BigNumber; buyFeesTotal: BigNumber; sellFeesTotal: BigNumber; poolFeesTotal: BigNumber; buyFeeAverage: BigNumber; sellFeeAverage: BigNumber; poolFeeAverage: BigNumber; poolAPY: BigNumber; assetStakedTotal: BigNumber; runeStakedTotal: BigNumber; poolStakedTotal: BigNumber; stakeTxCount: BigNumber; withdrawTxCount: BigNumber; stakingTxCount: BigNumber; stakersCount: BigNumber; } export declare const poolStatsLegacy: (asset: string) => Promise<V2PoolStatsLegacy>; export declare const poolStatsLegacyMany: (asset: string[]) => Promise<V2PoolStatsLegacy[]>; //# sourceMappingURL=pools.d.ts.map