import { v } from "@dicedhq/core/validation"; import type { BaseClient } from "../client/base.js"; import type { OrderSide } from "./order.js"; export declare class MarketApi { private readonly client; constructor(client: BaseClient); /** * Get market information by condition ID */ get(conditionId: string): Promise; /** * List available markets (paginated) */ list(nextCursor?: string): Promise; /** * Get all markets (fetches all pages) */ listAll(): Promise; /** * Get the market price for a specific token and side */ getPrice(tokenId: string, side: "BUY" | "SELL"): Promise; /** * Get market prices for multiple tokens and sides */ getPrices(params: { tokenId: string; side: OrderSide; }[]): Promise; /** * Get midpoint price for a specific token */ getMidpoint(tokenId: string): Promise; /** * Get historical price data for a given market token */ getPriceHistory(params: GetPriceHistoryParams): Promise; /** * Get tick size for a given token */ getTickSize(tokenId: string): Promise; /** * Get fee rate bps for a given token */ getFeeRateBps(tokenId: string): Promise; } declare const GetPriceHistorySchema: v.SchemaWithPipe, v.TrimAction, v.NonEmptyAction]>; readonly startTimestamp: v.OptionalSchema, undefined>; readonly endTimestamp: v.OptionalSchema, undefined>; readonly fidelity: v.OptionalSchema, undefined>; readonly interval: v.OptionalSchema, undefined>; }, undefined>, v.MetadataAction<{ market: string; startTimestamp?: number | undefined; endTimestamp?: number | undefined; fidelity?: number | undefined; interval?: "12h" | "1d" | "1h" | "1m" | "1w" | "6h" | "max" | undefined; }, { readonly title: "GetPriceHistoryParams"; }>]>; export type GetPriceHistoryParams = v.InferInput; export type Market = { condition_id: string; question_id: string; tokens: MarketToken[]; rewards?: { min_size: string; max_spread: string; event_start_date?: string; event_end_date?: string; rates?: number[] | null; }; minimum_order_size: string; minimum_tick_size: TickSize; description: string; is_50_50_outcome: boolean; category?: string; enable_order_book: boolean; archived: boolean; end_date_iso?: string; game_start_time?: string; fpmm?: string; maker_base_fee: number; image?: string; taker_base_fee: number; notifications_enabled: boolean; question?: string; accepting_orders: boolean; accepting_orders_timestamp?: number | null; market_slug?: string; min_incentive_size?: string; max_incentive_spread?: string; active?: boolean; closed?: boolean; seconds_delay?: number; icon?: string; neg_risk?: boolean; neg_risk_market_id?: string; tags?: string[]; neg_risk_request_id?: string; }; export type MarketToken = { token_id: string; outcome: string; price?: string; winner?: boolean; }; export type ListMarketsResponse = { data: Market[]; next_cursor?: string; limit: number; count: number; }; export type PriceResponse = { price: string; }; export type MidpointResponse = { mid: string; }; export type MarketPrice = { price: number; timestamp: number; }; export type TickSize = "0.1" | "0.01" | "0.001" | "0.0001" | (string & {}); export {}; //# sourceMappingURL=market.d.ts.map