import { MarketOrderBy, SortDirection, SparklineInterval } from "../../gen/marketoverview/v1/marketoverview_pb.js"; import { DecodedEnum } from "../../utils/types.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import "./market-overview.codecs.js"; import * as v from "valibot"; //#region src/services/market-overview/market-overview.schemas.d.ts declare const SparklineIntervalSchema: v.PicklistSchema; type SparklineIntervalName = v.InferOutput; type MarketOverviewSparkline = { interval: DecodedEnum; close: string[]; }; declare const MarketOverviewOrderBySchema: v.PicklistSchema; type MarketOverviewOrderBy = v.InferOutput; declare const MarketOverviewSortSchema: v.PicklistSchema; type MarketOverviewSort = v.InferOutput; declare function createMarketOverviewSchema(scales: SdkScales): v.SchemaWithPipe; readonly lastPriceTicks: v.BigintSchema; readonly lastTradeTsNs: v.OptionalSchema, 0n>; readonly change24hBps: v.NumberSchema; readonly high24hTicks: v.BigintSchema; readonly low24hTicks: v.BigintSchema; readonly volume24hBaseScaled: v.OptionalSchema, undefined>; readonly volume24hQuoteScaled: v.OptionalSchema, undefined>; readonly volume24hUsdScaled: v.OptionalSchema, v.TransformAction]>, undefined>; readonly listedTsNs: v.OptionalSchema, 0n>; readonly bestBidTicks: v.BigintSchema; readonly bestBidQtyScaled: v.BigintSchema; readonly bestAskTicks: v.BigintSchema; readonly bestAskQtyScaled: v.BigintSchema; readonly sparklines: v.OptionalSchema, v.TransformAction]>; readonly closeTicks: v.ArraySchema, undefined>; }, undefined>, undefined>, readonly []>; readonly indexPriceTicks: v.BigintSchema; }, undefined>, v.TransformAction<{ symbolId: number; lastPriceTicks: bigint; lastTradeTsNs: bigint; change24hBps: number; high24hTicks: bigint; low24hTicks: bigint; volume24hBaseScaled?: bigint | undefined; volume24hQuoteScaled?: bigint | undefined; volume24hUsdScaled?: string | undefined; listedTsNs: bigint; bestBidTicks: bigint; bestBidQtyScaled: bigint; bestAskTicks: bigint; bestAskQtyScaled: bigint; sparklines: { interval: "unspecified" | "1m" | "1h" | "1w" | "24h"; closeTicks: bigint[]; }[]; indexPriceTicks: bigint; }, { symbolId: number; lastPrice: string; lastTradeTsMs: number; change24hBps: number; high24h: string; low24h: string; volume24hBase: string | undefined; volume24hQuote: string | undefined; volume24hUsd: string | undefined; listedTsMs: number; bestBid: string; bestBidQty: string; bestAsk: string; bestAskQty: string; indexPrice: string | undefined; sparklines: MarketOverviewSparkline[]; }>]>; type MarketOverview = v.InferOutput>; declare const ListMarketOverviewInputSchema: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>, readonly []>; readonly limit: v.OptionalSchema, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, 500>; readonly pageToken: v.OptionalSchema, v.TrimAction]>, "">; readonly orderBy: v.SchemaWithPipe, "volume_24h_usd">, v.TransformAction<"change_24h_bps" | "volume_24h_usd" | "last_price" | "date_added", MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_USD | MarketOrderBy.ORDER_BY_LAST_PRICE | MarketOrderBy.ORDER_BY_DATE_ADDED>]>; readonly sort: v.SchemaWithPipe, "desc">, v.TransformAction<"asc" | "desc", SortDirection.SORT_ASC | SortDirection.SORT_DESC>]>; readonly includeSparklines: v.OptionalSchema, true>; readonly sparklineIntervals: v.SchemaWithPipe, undefined>, readonly ["24h"]>, v.TransformAction<("1m" | "1h" | "1w" | "24h")[], (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]>]>; }, undefined>, v.TransformAction<{ symbolIds: number[]; limit: number; pageToken: string; orderBy: MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_USD | MarketOrderBy.ORDER_BY_LAST_PRICE | MarketOrderBy.ORDER_BY_DATE_ADDED; sort: SortDirection.SORT_ASC | SortDirection.SORT_DESC; includeSparklines: boolean; sparklineIntervals: (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]; }, { limit: number; pageToken: string; orderBy: MarketOrderBy.ORDER_BY_CHANGE_24H_BPS | MarketOrderBy.ORDER_BY_VOLUME_24H_USD | MarketOrderBy.ORDER_BY_LAST_PRICE | MarketOrderBy.ORDER_BY_DATE_ADDED; sort: SortDirection.SORT_ASC | SortDirection.SORT_DESC; includeSparklines: boolean; sparklineIntervals: (SparklineInterval.SPARKLINE_1H | SparklineInterval.SPARKLINE_24H | SparklineInterval.SPARKLINE_1W | SparklineInterval.SPARKLINE_1M)[]; symbolId: number[]; }>]>; type ListMarketOverviewInput = v.InferInput; declare const SpotVolumeHistoryInputSchema: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>, v.TransformAction, v.MaxLengthAction]>, readonly []>; }, undefined>, v.TransformAction<{ symbolIds: number[]; }, { symbolId: number[]; }>]>; type SpotVolumeHistoryInput = v.InferInput; declare const SpotPairVolumeSeriesSchema: v.SchemaWithPipe; readonly volumeUsdScaled: v.ArraySchema, v.TransformAction]>, undefined>; }, undefined>, v.TransformAction<{ symbolId: number; volumeUsdScaled: string[]; }, { symbolId: number; volumeUsd: string[]; }>]>; type SpotPairVolumeSeries = v.InferOutput; declare const SpotVolumeHistoryResponseSchema: v.SchemaWithPipe; readonly startTsSec: v.NumberSchema; readonly endTsSec: v.NumberSchema; readonly points: v.NumberSchema; readonly pairs: v.ArraySchema; readonly volumeUsdScaled: v.ArraySchema, v.TransformAction]>, undefined>; }, undefined>, v.TransformAction<{ symbolId: number; volumeUsdScaled: string[]; }, { symbolId: number; volumeUsd: string[]; }>]>, undefined>; readonly totalVolumeUsdScaled: v.ArraySchema, v.TransformAction]>, undefined>; }, undefined>, v.TransformAction<{ bucket: string; startTsSec: number; endTsSec: number; points: number; pairs: { symbolId: number; volumeUsd: string[]; }[]; totalVolumeUsdScaled: string[]; }, { totalVolumeUsd: string[]; bucket: string; startTsSec: number; endTsSec: number; points: number; pairs: { symbolId: number; volumeUsd: string[]; }[]; }>]>; type SpotVolumeHistoryResponse = v.InferOutput; declare const CurrencyMetadataSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly defaultEnglishName: v.StringSchema; readonly symbol: v.StringSchema; readonly fractionDigits: v.NumberSchema; }, undefined>; type CurrencyMetadata = v.InferOutput; declare const CurrencyConversionConfigSchema: v.ObjectSchema<{ readonly fiat: v.ArraySchema; readonly defaultEnglishName: v.StringSchema; readonly symbol: v.StringSchema; readonly fractionDigits: v.NumberSchema; }, undefined>, undefined>; readonly stablecoins: v.ArraySchema; readonly defaultEnglishName: v.StringSchema; readonly symbol: v.StringSchema; readonly fractionDigits: v.NumberSchema; }, undefined>, undefined>; }, undefined>; type CurrencyConversionConfig = v.InferOutput; declare const FiatConversionRateSchema: v.SchemaWithPipe; readonly unitsPerUsdE8: v.SchemaWithPipe, v.TransformAction]>; }, undefined>, v.TransformAction<{ code: string; unitsPerUsdE8: string; }, { code: string; unitsPerUsd: string; }>]>; type FiatConversionRate = v.InferOutput; declare const FiatConversionSnapshotSchema: v.SchemaWithPipe; readonly unitsPerUsdE8: v.SchemaWithPipe, v.TransformAction]>; }, undefined>, v.TransformAction<{ code: string; unitsPerUsdE8: string; }, { code: string; unitsPerUsd: string; }>]>, undefined>; readonly sourceTsSec: v.SchemaWithPipe, v.TransformAction, v.SafeIntegerAction]>; readonly stale: v.BooleanSchema; }, undefined>, v.TransformAction<{ rates: { code: string; unitsPerUsd: string; }[]; sourceTsSec: number; stale: boolean; }, { sourceTsMs: number; rates: { code: string; unitsPerUsd: string; }[]; stale: boolean; }>]>; type FiatConversionSnapshot = v.InferOutput; declare const StablecoinConversionRateSchema: v.SchemaWithPipe; readonly usdPerUnitE8: v.SchemaWithPipe, v.TransformAction]>; readonly sourceTsSec: v.SchemaWithPipe, v.TransformAction, v.SafeIntegerAction]>; readonly stale: v.BooleanSchema; }, undefined>, v.TransformAction<{ code: string; usdPerUnitE8: string; sourceTsSec: number; stale: boolean; }, { usdPerUnit: string; sourceTsMs: number; code: string; stale: boolean; }>]>; type StablecoinConversionRate = v.InferOutput; declare const CurrencyConversionRatesSchema: v.SchemaWithPipe; readonly unitsPerUsdE8: v.SchemaWithPipe, v.TransformAction]>; }, undefined>, v.TransformAction<{ code: string; unitsPerUsdE8: string; }, { code: string; unitsPerUsd: string; }>]>, undefined>; readonly sourceTsSec: v.SchemaWithPipe, v.TransformAction, v.SafeIntegerAction]>; readonly stale: v.BooleanSchema; }, undefined>, v.TransformAction<{ rates: { code: string; unitsPerUsd: string; }[]; sourceTsSec: number; stale: boolean; }, { sourceTsMs: number; rates: { code: string; unitsPerUsd: string; }[]; stale: boolean; }>]>, undefined>; readonly stablecoins: v.ArraySchema; readonly usdPerUnitE8: v.SchemaWithPipe, v.TransformAction]>; readonly sourceTsSec: v.SchemaWithPipe, v.TransformAction, v.SafeIntegerAction]>; readonly stale: v.BooleanSchema; }, undefined>, v.TransformAction<{ code: string; usdPerUnitE8: string; sourceTsSec: number; stale: boolean; }, { usdPerUnit: string; sourceTsMs: number; code: string; stale: boolean; }>]>, undefined>; readonly snapshotTsSec: v.SchemaWithPipe, v.TransformAction, v.SafeIntegerAction]>; }, undefined>, v.TransformAction<{ fiat?: { sourceTsMs: number; rates: { code: string; unitsPerUsd: string; }[]; stale: boolean; } | undefined; stablecoins: { usdPerUnit: string; sourceTsMs: number; code: string; stale: boolean; }[]; snapshotTsSec: number; }, { snapshotTsMs: number; fiat?: { sourceTsMs: number; rates: { code: string; unitsPerUsd: string; }[]; stale: boolean; } | undefined; stablecoins: { usdPerUnit: string; sourceTsMs: number; code: string; stale: boolean; }[]; }>]>; type CurrencyConversionRates = v.InferOutput; //#endregion export { CurrencyConversionConfig, CurrencyConversionConfigSchema, CurrencyConversionRates, CurrencyConversionRatesSchema, CurrencyMetadata, CurrencyMetadataSchema, FiatConversionRate, FiatConversionRateSchema, FiatConversionSnapshot, FiatConversionSnapshotSchema, ListMarketOverviewInput, ListMarketOverviewInputSchema, MarketOverview, MarketOverviewOrderBy, MarketOverviewOrderBySchema, MarketOverviewSort, MarketOverviewSortSchema, MarketOverviewSparkline, SparklineIntervalName, SparklineIntervalSchema, SpotPairVolumeSeries, SpotPairVolumeSeriesSchema, SpotVolumeHistoryInput, SpotVolumeHistoryInputSchema, SpotVolumeHistoryResponse, SpotVolumeHistoryResponseSchema, StablecoinConversionRate, StablecoinConversionRateSchema, createMarketOverviewSchema }; //# sourceMappingURL=market-overview.schemas.d.ts.map