import * as _polymarket_types from '@polymarket/types'; import { TxHash } from '@polymarket/types'; import { BaseUnits, ConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, NotificationId, EpochMilliseconds, ApiKey, OrderSide, OrderId, TickSizeValue } from '../index.js'; import { z } from 'zod'; export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js'; declare const ClosedOnlyModeSchema: z.ZodPipe, z.ZodTransform<{ closedOnly: boolean; }, { closed_only: boolean; }>>; type ClosedOnlyMode = z.infer; type OpenOrder = { id: string; /** Condition ID for the market associated with this order. */ conditionId: ConditionId; tokenId: TokenId; owner: string; makerAddress: string; side: string; price: DecimalString; originalSize: DecimalString; sizeMatched: DecimalString; outcome: string; orderType: string; status: string; associateTrades: string[]; createdAt: IsoDateTimeString; expiresAt?: IsoDateTimeString; }; declare const OpenOrderSchema: z.ZodPipe>; associate_trades: z.ZodArray; created_at: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; expiration: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; id: z.ZodString; maker_address: z.ZodString; market: z.ZodPipe>; order_type: z.ZodString; original_size: z.ZodPipe>; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; size_matched: z.ZodPipe>; status: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; } | { expiresAt: IsoDateTimeString; conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; }, { asset_id: TokenId; associate_trades: string[]; created_at: IsoDateTimeString; expiration: IsoDateTimeString | undefined; id: string; maker_address: string; market: ConditionId; order_type: string; original_size: DecimalString; outcome: string; owner: string; price: DecimalString; side: string; size_matched: DecimalString; status: string; }>>; declare const OpenOrdersPageSchema: z.ZodPipe>; associate_trades: z.ZodArray; created_at: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; expiration: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; id: z.ZodString; maker_address: z.ZodString; market: z.ZodPipe>; order_type: z.ZodString; original_size: z.ZodPipe>; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; size_matched: z.ZodPipe>; status: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; } | { expiresAt: IsoDateTimeString; conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; }, { asset_id: TokenId; associate_trades: string[]; created_at: IsoDateTimeString; expiration: IsoDateTimeString | undefined; id: string; maker_address: string; market: ConditionId; order_type: string; original_size: DecimalString; outcome: string; owner: string; price: DecimalString; side: string; size_matched: DecimalString; status: string; }>>>; limit: z.ZodNumber; next_cursor: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; count: number; data: ({ conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; } | { expiresAt: IsoDateTimeString; conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; })[]; limit: number; }, { count: number; data: ({ conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; } | { expiresAt: IsoDateTimeString; conditionId: ConditionId; tokenId: TokenId; associateTrades: string[]; createdAt: IsoDateTimeString; makerAddress: string; orderType: string; originalSize: DecimalString; sizeMatched: DecimalString; id: string; outcome: string; owner: string; price: DecimalString; side: string; status: string; })[]; limit: number; next_cursor: string; }>>; type OpenOrdersPage = z.infer; declare const MakerOrderSchema: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodNullable>>>; maker_address: z.ZodString; matched_amount: z.ZodPipe>; order_id: z.ZodString; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }, { asset_id: TokenId; fee_rate_bps: DecimalString | null; maker_address: string; matched_amount: DecimalString; order_id: string; outcome: string; owner: string; price: DecimalString; side: string; }>>; type MakerOrder = z.output; type ClobTrade = { id: string; /** Condition ID for the market associated with this trade. */ conditionId: ConditionId; tokenId: TokenId; owner: string; makerAddress: string; takerOrderId: string; side: string; traderSide: 'TAKER' | 'MAKER'; price: DecimalString; size: DecimalString; outcome: string; status: string; feeRateBps: DecimalString; bucketIndex: number; transactionHash: string; makerOrders: MakerOrder[]; matchedAt: IsoDateTimeString; updatedAt: IsoDateTimeString; }; declare const ClobTradeSchema: z.ZodPipe>; bucket_index: z.ZodNumber; fee_rate_bps: z.ZodPipe>; id: z.ZodString; last_update: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; maker_address: z.ZodString; maker_orders: z.ZodArray>; fee_rate_bps: z.ZodPipe, z.ZodNullable>>>; maker_address: z.ZodString; matched_amount: z.ZodPipe>; order_id: z.ZodString; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }, { asset_id: TokenId; fee_rate_bps: DecimalString | null; maker_address: string; matched_amount: DecimalString; order_id: string; outcome: string; owner: string; price: DecimalString; side: string; }>>>; market: z.ZodPipe>; match_time: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; size: z.ZodPipe>; status: z.ZodPipe, z.ZodEnum>; taker_order_id: z.ZodString; trader_side: z.ZodEnum<{ TAKER: "TAKER"; MAKER: "MAKER"; }>; transaction_hash: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; bucketIndex: number; feeRateBps: DecimalString; updatedAt: IsoDateTimeString; makerAddress: string; makerOrders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; matchedAt: IsoDateTimeString; takerOrderId: string; traderSide: "TAKER" | "MAKER"; transactionHash: string; id: string; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; }, { asset_id: TokenId; bucket_index: number; fee_rate_bps: DecimalString; id: string; last_update: IsoDateTimeString; maker_address: string; maker_orders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; market: ConditionId; match_time: IsoDateTimeString; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; taker_order_id: string; trader_side: "TAKER" | "MAKER"; transaction_hash: string; }>>; declare const ClobTradesPageSchema: z.ZodPipe>; bucket_index: z.ZodNumber; fee_rate_bps: z.ZodPipe>; id: z.ZodString; last_update: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; maker_address: z.ZodString; maker_orders: z.ZodArray>; fee_rate_bps: z.ZodPipe, z.ZodNullable>>>; maker_address: z.ZodString; matched_amount: z.ZodPipe>; order_id: z.ZodString; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }, { asset_id: TokenId; fee_rate_bps: DecimalString | null; maker_address: string; matched_amount: DecimalString; order_id: string; outcome: string; owner: string; price: DecimalString; side: string; }>>>; market: z.ZodPipe>; match_time: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; outcome: z.ZodString; owner: z.ZodString; price: z.ZodPipe>; side: z.ZodString; size: z.ZodPipe>; status: z.ZodPipe, z.ZodEnum>; taker_order_id: z.ZodString; trader_side: z.ZodEnum<{ TAKER: "TAKER"; MAKER: "MAKER"; }>; transaction_hash: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; bucketIndex: number; feeRateBps: DecimalString; updatedAt: IsoDateTimeString; makerAddress: string; makerOrders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; matchedAt: IsoDateTimeString; takerOrderId: string; traderSide: "TAKER" | "MAKER"; transactionHash: string; id: string; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; }, { asset_id: TokenId; bucket_index: number; fee_rate_bps: DecimalString; id: string; last_update: IsoDateTimeString; maker_address: string; maker_orders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; market: ConditionId; match_time: IsoDateTimeString; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; taker_order_id: string; trader_side: "TAKER" | "MAKER"; transaction_hash: string; }>>>; limit: z.ZodNumber; next_cursor: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; count: number; data: { conditionId: ConditionId; tokenId: TokenId; bucketIndex: number; feeRateBps: DecimalString; updatedAt: IsoDateTimeString; makerAddress: string; makerOrders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; matchedAt: IsoDateTimeString; takerOrderId: string; traderSide: "TAKER" | "MAKER"; transactionHash: string; id: string; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; }[]; limit: number; }, { count: number; data: { conditionId: ConditionId; tokenId: TokenId; bucketIndex: number; feeRateBps: DecimalString; updatedAt: IsoDateTimeString; makerAddress: string; makerOrders: { tokenId: TokenId; feeRateBps: DecimalString | null; makerAddress: string; matchedAmount: DecimalString; orderId: string; outcome: string; owner: string; price: DecimalString; side: string; }[]; matchedAt: IsoDateTimeString; takerOrderId: string; traderSide: "TAKER" | "MAKER"; transactionHash: string; id: string; outcome: string; owner: string; price: DecimalString; side: string; size: DecimalString; status: TradeStatus; }[]; limit: number; next_cursor: string; }>>; type ClobTradesPage = z.infer; declare const NotificationSchema: z.ZodObject<{ id: z.ZodPipe>; owner: z.ZodString; payload: z.ZodUnknown; timestamp: z.ZodPipe, z.ZodPipe>>; type: z.ZodNumber; }, z.core.$strip>; type Notification = z.infer; declare const NotificationsResponseSchema: z.ZodArray>; owner: z.ZodString; payload: z.ZodUnknown; timestamp: z.ZodPipe, z.ZodPipe>>; type: z.ZodNumber; }, z.core.$strip>>; type NotificationsResponse = z.infer; declare enum AssetType { COLLATERAL = "COLLATERAL", CONDITIONAL = "CONDITIONAL" } declare const AssetTypeSchema: z.ZodEnum; declare const BalanceAllowanceResponseSchema: z.ZodObject<{ allowances: z.ZodRecord>, z.ZodPipe>>; balance: z.ZodPipe>; }, z.core.$strip>; type BalanceAllowanceResponse = z.infer; declare const OrderScoringResponseSchema: z.ZodObject<{ scoring: z.ZodBoolean; }, z.core.$strip>; type OrderScoringResponse = z.infer; declare const OrdersScoringResponseSchema: z.ZodRecord; type OrdersScoringResponse = z.infer; declare const UserEarningSchema: z.ZodPipe>, z.ZodPipe>]>; condition_id: z.ZodPipe>; date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; maker_address: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; conditionId: ConditionId; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; condition_id: ConditionId; date: IsoDateTimeString; earnings: DecimalString; maker_address: string; }>>; type UserEarning = z.infer; declare const UserEarningsPageSchema: z.ZodPipe>, z.ZodPipe>]>; condition_id: z.ZodPipe>; date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; maker_address: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; conditionId: ConditionId; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; condition_id: ConditionId; date: IsoDateTimeString; earnings: DecimalString; maker_address: string; }>>>; limit: z.ZodNumber; next_cursor: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; count: number; data: { assetAddress: string; assetRate: DecimalString; conditionId: ConditionId; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }[]; limit: number; }, { count: number; data: { assetAddress: string; assetRate: DecimalString; conditionId: ConditionId; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }[]; limit: number; next_cursor: string; }>>; type UserEarningsPage = z.infer; declare const TotalUserEarningSchema: z.ZodPipe>, z.ZodPipe>]>; date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; maker_address: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; date: IsoDateTimeString; earnings: DecimalString; maker_address: string; }>>; type TotalUserEarning = z.infer; declare const TotalUserEarningsResponseSchema: z.ZodArray>, z.ZodPipe>]>; date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; maker_address: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; makerAddress: string; date: IsoDateTimeString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; date: IsoDateTimeString; earnings: DecimalString; maker_address: string; }>>>; type TotalUserEarningsResponse = z.infer; declare const RewardsPercentagesSchema: z.ZodRecord>, z.ZodNumber>; type RewardsPercentages = z.infer; declare const TokenSchema: z.ZodPipe>, z.ZodPipe>]>; token_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { outcome: string; price: DecimalString; token_id: TokenId; }>>; declare const RewardsConfigSchema: z.ZodPipe>]>, z.ZodTransform>, z.ZodPipe>]>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; total_rewards: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }, { asset_address: string; end_date: IsoDateTimeString; rate_per_day: DecimalString; start_date: IsoDateTimeString; total_rewards: DecimalString; }>>; declare const EarningSchema: z.ZodPipe>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; earnings: DecimalString; }>>; declare const UserRewardsEarningSchema: z.ZodPipe>; earning_percentage: z.ZodNumber; earnings: z.ZodArray>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; earnings: DecimalString; }>>>; event_slug: z.ZodString; image: z.ZodString; maker_address: z.ZodString; market_competitiveness: z.ZodNumber; market_slug: z.ZodString; question: z.ZodString; rewards_config: z.ZodArray>]>, z.ZodTransform>, z.ZodPipe>]>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; total_rewards: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }, { asset_address: string; end_date: IsoDateTimeString; rate_per_day: DecimalString; start_date: IsoDateTimeString; total_rewards: DecimalString; }>>>; rewards_max_spread: z.ZodNumber; rewards_min_size: z.ZodUnion>, z.ZodPipe>]>; tokens: z.ZodArray>, z.ZodPipe>]>; token_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { outcome: string; price: DecimalString; token_id: TokenId; }>>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; earningPercentage: number; eventSlug: string; makerAddress: string; marketCompetitiveness: number; marketSlug: string; rewardsConfig: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewardsMaxSpread: number; rewardsMinSize: DecimalString; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; image: string; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }, { condition_id: ConditionId; earning_percentage: number; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; event_slug: string; image: string; maker_address: string; market_competitiveness: number; market_slug: string; question: string; rewards_config: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewards_max_spread: number; rewards_min_size: DecimalString; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }>>; type UserRewardsEarning = z.infer; declare const UserRewardsEarningsPageSchema: z.ZodPipe>; earning_percentage: z.ZodNumber; earnings: z.ZodArray>, z.ZodPipe>]>; earnings: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }, { asset_address: string; asset_rate: DecimalString; earnings: DecimalString; }>>>; event_slug: z.ZodString; image: z.ZodString; maker_address: z.ZodString; market_competitiveness: z.ZodNumber; market_slug: z.ZodString; question: z.ZodString; rewards_config: z.ZodArray>]>, z.ZodTransform>, z.ZodPipe>]>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; total_rewards: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }, { asset_address: string; end_date: IsoDateTimeString; rate_per_day: DecimalString; start_date: IsoDateTimeString; total_rewards: DecimalString; }>>>; rewards_max_spread: z.ZodNumber; rewards_min_size: z.ZodUnion>, z.ZodPipe>]>; tokens: z.ZodArray>, z.ZodPipe>]>; token_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { outcome: string; price: DecimalString; token_id: TokenId; }>>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; earningPercentage: number; eventSlug: string; makerAddress: string; marketCompetitiveness: number; marketSlug: string; rewardsConfig: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewardsMaxSpread: number; rewardsMinSize: DecimalString; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; image: string; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }, { condition_id: ConditionId; earning_percentage: number; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; event_slug: string; image: string; maker_address: string; market_competitiveness: number; market_slug: string; question: string; rewards_config: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewards_max_spread: number; rewards_min_size: DecimalString; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }>>>; limit: z.ZodNumber; next_cursor: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; count: number; data: { conditionId: ConditionId; earningPercentage: number; eventSlug: string; makerAddress: string; marketCompetitiveness: number; marketSlug: string; rewardsConfig: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewardsMaxSpread: number; rewardsMinSize: DecimalString; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; image: string; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }[]; limit: number; }, { count: number; data: { conditionId: ConditionId; earningPercentage: number; eventSlug: string; makerAddress: string; marketCompetitiveness: number; marketSlug: string; rewardsConfig: { assetAddress: string; endDate: IsoDateTimeString; ratePerDay: DecimalString; startDate: IsoDateTimeString; totalRewards: DecimalString; }[]; rewardsMaxSpread: number; rewardsMinSize: DecimalString; earnings: { assetAddress: string; assetRate: DecimalString; earnings: DecimalString; }[]; image: string; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; }[]; limit: number; next_cursor: string; }>>; type UserRewardsEarningsPage = z.infer; declare const ApiKeyCredsSchema: z.ZodPipe>; secret: z.ZodString; passphrase: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ key: ApiKey; passphrase: string; secret: string; }, { apiKey: ApiKey; secret: string; passphrase: string; }>>; type ApiKeyCreds = z.infer; declare const ApiKeysResponseSchema: z.ZodObject<{ apiKeys: z.ZodArray>>; }, z.core.$strip>; type ApiKeysResponse = z.infer; declare const BuilderApiKeyCredsSchema: z.ZodObject<{ key: z.ZodPipe>; secret: z.ZodString; passphrase: z.ZodString; }, z.core.$strip>; type BuilderApiKeyCreds = z.infer; declare const BuilderApiKeySchema: z.ZodObject<{ key: z.ZodPipe>; createdAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; revokedAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; }, z.core.$strip>; type BuilderApiKey = z.infer; declare const BuilderApiKeysResponseSchema: z.ZodPipe>, z.ZodTransform<{ key: ApiKey; }, ApiKey>>, z.ZodObject<{ key: z.ZodPipe>; createdAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; revokedAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; }, z.core.$strip>]>>, z.ZodTransform<{ key: ApiKey; createdAt?: IsoDateTimeString | undefined; revokedAt?: IsoDateTimeString | null | undefined; }[], ({ key: ApiKey; createdAt?: IsoDateTimeString | undefined; revokedAt?: IsoDateTimeString | null | undefined; } | { key: ApiKey; })[]>>; type BuilderApiKeysResponse = z.infer; type BuilderTrade = { id: string; tradeType: string; takerOrderHash: string; builder: string; /** Condition ID for the market associated with this trade. */ conditionId: ConditionId; tokenId: TokenId; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; matchedAt: IsoDateTimeString; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; errMsg: string | null | undefined; createdAt?: IsoDateTimeString; updatedAt?: IsoDateTimeString; }; declare const BuilderTradeSchema: z.ZodPipe>; assetId: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; sizeUsdc: z.ZodPipe>; price: z.ZodPipe>; status: z.ZodString; outcome: z.ZodString; outcomeIndex: z.ZodNumber; owner: z.ZodString; maker: z.ZodString; transactionHash: z.ZodString; matchTime: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; bucketIndex: z.ZodNumber; fee: z.ZodPipe>; feeUsdc: z.ZodPipe>; err_msg: z.ZodOptional>; createdAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; updatedAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; errMsg: string | null | undefined; matchedAt: IsoDateTimeString; id: string; tradeType: string; takerOrderHash: string; builder: string; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }, { id: string; tradeType: string; takerOrderHash: string; builder: string; market: ConditionId; assetId: TokenId; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; matchTime: IsoDateTimeString; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; err_msg?: string | null | undefined; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }>>; declare const PaginatedBuilderTradesSchema: z.ZodPipe>; assetId: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; sizeUsdc: z.ZodPipe>; price: z.ZodPipe>; status: z.ZodString; outcome: z.ZodString; outcomeIndex: z.ZodNumber; owner: z.ZodString; maker: z.ZodString; transactionHash: z.ZodString; matchTime: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; bucketIndex: z.ZodNumber; fee: z.ZodPipe>; feeUsdc: z.ZodPipe>; err_msg: z.ZodOptional>; createdAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; updatedAt: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; errMsg: string | null | undefined; matchedAt: IsoDateTimeString; id: string; tradeType: string; takerOrderHash: string; builder: string; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }, { id: string; tradeType: string; takerOrderHash: string; builder: string; market: ConditionId; assetId: TokenId; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; matchTime: IsoDateTimeString; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; err_msg?: string | null | undefined; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; limit: number; count: number; data: { conditionId: ConditionId; tokenId: TokenId; errMsg: string | null | undefined; matchedAt: IsoDateTimeString; id: string; tradeType: string; takerOrderHash: string; builder: string; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }[]; }, { limit: number; count: number; next_cursor: string; data: { conditionId: ConditionId; tokenId: TokenId; errMsg: string | null | undefined; matchedAt: IsoDateTimeString; id: string; tradeType: string; takerOrderHash: string; builder: string; side: OrderSide; size: DecimalString; sizeUsdc: DecimalString; price: DecimalString; status: string; outcome: string; outcomeIndex: number; owner: string; maker: string; transactionHash: string; bucketIndex: number; fee: DecimalString; feeUsdc: DecimalString; createdAt?: IsoDateTimeString | undefined; updatedAt?: IsoDateTimeString | undefined; }[]; }>>; type PaginatedBuilderTrades = z.infer; declare const BuilderFeeRatesSchema: z.ZodPipe, z.ZodTransform<{ maker: number; taker: number; }, { builder_maker_fee_rate_bps: number; builder_taker_fee_rate_bps: number; }>>; declare const FetchBuilderFeeRatesResponseSchema: z.ZodPipe, z.ZodTransform<{ maker: number; taker: number; }, { builder_maker_fee_rate_bps: number; builder_taker_fee_rate_bps: number; }>>; type BuilderFeeRates = z.infer; type FetchBuilderFeeRatesResponse = z.infer; declare const CancelOrdersResponseSchema: z.ZodPipe>>; not_canceled: z.ZodRecord>, z.ZodString>; }, z.core.$strip>, z.ZodTransform<{ canceled: OrderId[]; notCanceled: Record; }, { canceled: OrderId[]; not_canceled: Record; }>>; type CancelOrdersResponse = z.infer; declare enum PriceHistoryInterval { MAX = "max", ONE_WEEK = "1w", ONE_DAY = "1d", SIX_HOURS = "6h", ONE_HOUR = "1h" } declare const PriceHistoryIntervalSchema: z.ZodEnum; declare const MidpointSchema: z.ZodObject<{ mid: z.ZodPipe>; }, z.core.$strip>; type Midpoint = z.infer; declare const MidpointsSchema: z.ZodRecord>, z.ZodPipe>>; type Midpoints = z.infer; declare const PriceSchema: z.ZodObject<{ price: z.ZodPipe>; }, z.core.$strip>; type Price = z.infer; declare const PricesBySideSchema: z.ZodRecord & z.core.$partial, z.ZodPipe>>; type PricesBySide = z.infer; declare const PricesSchema: z.ZodRecord>, z.ZodRecord & z.core.$partial, z.ZodPipe>>>; type Prices = z.infer; declare const SpreadSchema: z.ZodObject<{ spread: z.ZodPipe>; }, z.core.$strip>; type Spread = z.infer; declare const SpreadsSchema: z.ZodRecord>, z.ZodPipe>>; type Spreads = z.infer; declare const LastTradePriceValueSchema: z.ZodObject<{ price: z.ZodPipe>; side: z.ZodEnum; }, z.core.$strip>; type LastTradePrice = z.infer; declare const LastTradePriceSchema: z.ZodPipe>; side: z.ZodUnion, z.ZodLiteral<"">]>; }, z.core.$strip>, z.ZodTransform<{ price: DecimalString; side: OrderSide; } | null, { price: DecimalString; side: "" | OrderSide; }>>; declare const LastTradePriceForTokenResponseSchema: z.ZodPipe>; side: z.ZodEnum; token_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; price: DecimalString; side: OrderSide; }, { price: DecimalString; side: OrderSide; token_id: TokenId; }>>; type LastTradePriceForTokenResponse = z.infer; declare const LastTradePriceForTokenSchema: z.ZodObject<{ tokenId: z.ZodPipe>; price: z.ZodPipe>; side: z.ZodEnum; }, z.core.$strip>; type LastTradePriceForToken = z.infer; declare const LastTradePricesSchema: z.ZodArray>; side: z.ZodEnum; token_id: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; price: DecimalString; side: OrderSide; }, { price: DecimalString; side: OrderSide; token_id: TokenId; }>>>; type LastTradePrices = z.infer; declare const PriceHistoryPointSchema: z.ZodObject<{ t: z.ZodNumber; p: z.ZodNumber; }, z.core.$strip>; type PriceHistoryPoint = z.infer; declare const PriceHistorySchema: z.ZodObject<{ history: z.ZodArray>; }, z.core.$strip>; type PriceHistory = z.infer; declare const ConditionByTokenSchema: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform>; declare const ResolveConditionByTokenResponseSchema: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform>; type ConditionByToken = z.infer; type ResolveConditionByTokenResponse = z.infer; declare const MarketFeeInfoSchema: z.ZodPipe; e: z.ZodDefault; }, z.core.$strip>, z.ZodTransform<{ rate: number; exponent: number; }, { r: number; e: number; }>>; declare const MarketTokenSchema: z.ZodPipe>; o: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; }, { t: TokenId; o: string; }>>; declare const MarketInfoSchema: z.ZodPipe; e: z.ZodDefault; }, z.core.$strip>, z.ZodTransform<{ rate: number; exponent: number; }, { r: number; e: number; }>>>>; mts: z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>; nr: z.ZodOptional; t: z.ZodArray>; o: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; }, { t: TokenId; o: string; }>>>; }, z.core.$strip>, z.ZodTransform<{ feeInfo: { rate: number; exponent: number; }; negRisk: boolean; tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; tokens: { tokenId: TokenId; outcome: string; }[]; }, { mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; t: { tokenId: TokenId; outcome: string; }[]; fd?: { rate: number; exponent: number; } | null | undefined; nr?: boolean | undefined; }>>; declare const FetchMarketInfoResponseSchema: z.ZodPipe; e: z.ZodDefault; }, z.core.$strip>, z.ZodTransform<{ rate: number; exponent: number; }, { r: number; e: number; }>>>>; mts: z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>; nr: z.ZodOptional; t: z.ZodArray>; o: z.ZodString; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; }, { t: TokenId; o: string; }>>>; }, z.core.$strip>, z.ZodTransform<{ feeInfo: { rate: number; exponent: number; }; negRisk: boolean; tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; tokens: { tokenId: TokenId; outcome: string; }[]; }, { mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; t: { tokenId: TokenId; outcome: string; }[]; fd?: { rate: number; exponent: number; } | null | undefined; nr?: boolean | undefined; }>>; type MarketFeeInfo = z.infer; type MarketToken = z.infer; type MarketInfo = z.infer; type FetchMarketInfoResponse = z.infer; declare const NegRiskSchema: z.ZodPipe, z.ZodTransform<{ negRisk: boolean; }, { neg_risk: boolean; }>>; declare const FetchNegRiskResponseSchema: z.ZodPipe, z.ZodTransform<{ negRisk: boolean; }, { neg_risk: boolean; }>>; type NegRisk = z.infer; type FetchNegRiskResponse = z.infer; type OrderBookLevel = { price: DecimalString; size: DecimalString; }; /** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */ type OrderBookHash = string & { readonly __tag: 'OrderBookHash'; }; type OrderBook = { /** Condition ID for the market this book belongs to. */ conditionId: ConditionId; tokenId: TokenId; timestamp?: EpochMilliseconds | null; /** Bid levels in ascending price order, lowest bid first. */ bids: OrderBookLevel[]; /** Ask levels in descending price order, highest ask first. */ asks: OrderBookLevel[]; minOrderSize: DecimalString; tickSize: TickSizeValue; negRisk: boolean; lastTradePrice?: DecimalString | null; hash: OrderBookHash; }; declare const OrderBookLevelSchema: z.ZodObject<{ price: z.ZodPipe>; size: z.ZodPipe>; }, z.core.$strip>; declare const OrderBookHashSchema: z.ZodPipe>; declare const OrderBookSchema: z.ZodPipe>; asset_id: z.ZodPipe>; timestamp: z.ZodOptional>>>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; min_order_size: z.ZodPipe>; tick_size: z.ZodPipe>, z.ZodTransform>, z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>; neg_risk: z.ZodBoolean; last_trade_price: z.ZodOptional>>>; hash: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; minOrderSize: DecimalString; tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; negRisk: boolean; lastTradePrice: DecimalString | null | undefined; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; }, { market: ConditionId; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; min_order_size: DecimalString; tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; neg_risk: boolean; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>; declare const FetchOrderBookResponseSchema: z.ZodPipe>; asset_id: z.ZodPipe>; timestamp: z.ZodOptional>>>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; min_order_size: z.ZodPipe>; tick_size: z.ZodPipe>, z.ZodTransform>, z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>; neg_risk: z.ZodBoolean; last_trade_price: z.ZodOptional>>>; hash: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; minOrderSize: DecimalString; tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; negRisk: boolean; lastTradePrice: DecimalString | null | undefined; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; }, { market: ConditionId; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; min_order_size: DecimalString; tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; neg_risk: boolean; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>; declare const OrderBooksSchema: z.ZodArray>; asset_id: z.ZodPipe>; timestamp: z.ZodOptional>>>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; min_order_size: z.ZodPipe>; tick_size: z.ZodPipe>, z.ZodTransform>, z.ZodUnion, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>; neg_risk: z.ZodBoolean; last_trade_price: z.ZodOptional>>>; hash: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; tokenId: TokenId; minOrderSize: DecimalString; tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; negRisk: boolean; lastTradePrice: DecimalString | null | undefined; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; }, { market: ConditionId; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; min_order_size: DecimalString; tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; neg_risk: boolean; hash: OrderBookHash; timestamp?: EpochMilliseconds | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>>; type OrderBooks = OrderBook[]; type FetchOrderBookResponse = OrderBook; /** * Placement outcome of an accepted order. */ declare enum OrderPostStatus { /** The order rests on the book without matching. */ LIVE = "live", /** The order matched, fully or partially, at placement. */ MATCHED = "matched", /** The market imposes a matching delay; the order is queued. */ DELAYED = "delayed" } declare const OrderPostStatusSchema: z.ZodEnum; declare enum OrderResponseErrorCode { UNMATCHED = "unmatched", MARKET_NOT_READY = "market_not_ready", INSUFFICIENT_BALANCE_OR_ALLOWANCE = "insufficient_balance_or_allowance", INVALID_NONCE = "invalid_nonce", INVALID_EXPIRATION = "invalid_expiration", POST_ONLY_WOULD_CROSS = "post_only_would_cross", FOK_NOT_FILLED = "fok_not_filled", FAK_NOT_FILLED = "fak_not_filled", UNKNOWN = "unknown" } declare const OrderResponseErrorCodeSchema: z.ZodEnum; /** * A successfully placed order. */ type AcceptedOrderResponse = { ok: true; /** Unique identifier of the placed order. */ orderId: OrderId; /** Placement outcome. Fills only exist when the status is `matched`. */ status: OrderPostStatus; /** Amount of the maker asset committed by fills at placement. `'0'` when the order did not match. */ makingAmount: DecimalString; /** Amount of the taker asset received by fills at placement. `'0'` when the order did not match. */ takingAmount: DecimalString; /** * Settlement transaction hashes for fills that occurred at placement. * Populated on a best-effort basis: settlement happens asynchronously, so * this can be empty even when the order matched. Follow the order's trades * to obtain hashes reliably. */ transactionsHashes: TxHash[]; /** * Identifiers of the trades created by fills at placement. Empty when the * order did not match. Later fills of a resting order create new trades * that are not listed here. */ tradeIds: string[]; }; /** * An order the venue refused to place. */ type RejectedOrderResponse = { ok: false; /** Machine-readable rejection reason. */ code: OrderResponseErrorCode; /** Human-readable rejection message. */ message: string; }; /** * Result of posting an order, discriminated on `ok`. */ type OrderResponse = AcceptedOrderResponse | RejectedOrderResponse; /** * Results of posting a batch of orders, in request order. */ type OrderResponses = OrderResponse[]; declare const AcceptedOrderResponseSchema: z.ZodObject<{ ok: z.ZodLiteral; orderId: z.ZodPipe>; status: z.ZodEnum; makingAmount: z.ZodPipe>; takingAmount: z.ZodPipe>; tradeIds: z.ZodArray; transactionsHashes: z.ZodArray>>; }, z.core.$strip>; declare const RejectedOrderResponseSchema: z.ZodObject<{ ok: z.ZodLiteral; code: z.ZodEnum; message: z.ZodString; }, z.core.$strip>; declare const OrderResponseSchema: z.ZodPipe, z.ZodPipe>>; orderID: z.ZodString; status: z.ZodString; success: z.ZodBoolean; takingAmount: z.ZodPipe, z.ZodPipe>>; tradeIDs: z.ZodDefault>; transactionsHashes: z.ZodDefault>; }, z.core.$strip>, z.ZodTransform>; declare const OrderResponsesSchema: z.ZodArray, z.ZodPipe>>; orderID: z.ZodString; status: z.ZodString; success: z.ZodBoolean; takingAmount: z.ZodPipe, z.ZodPipe>>; tradeIDs: z.ZodDefault>; transactionsHashes: z.ZodDefault>; }, z.core.$strip>, z.ZodTransform>>; declare const END_CURSOR = "LTE="; declare const CurrentRewardConfigSchema: z.ZodPipe; asset_address: z.ZodString; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; id?: number | undefined; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>; type CurrentRewardConfig = z.infer; declare const CurrentRewardSchema: z.ZodPipe>; rewards_max_spread: z.ZodOptional; rewards_min_size: z.ZodOptional>, z.ZodPipe>]>>; rewards_config: z.ZodOptional; asset_address: z.ZodString; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; id?: number | undefined; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>>>; sponsored_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; sponsors_count: z.ZodOptional; native_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; total_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsoredDailyRate: DecimalString | undefined; sponsorsCount: number | undefined; nativeDailyRate: DecimalString | undefined; totalDailyRate: DecimalString | undefined; }, { condition_id: ConditionId; rewards_max_spread?: number | undefined; rewards_min_size?: DecimalString | undefined; rewards_config?: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsored_daily_rate?: DecimalString | undefined; sponsors_count?: number | undefined; native_daily_rate?: DecimalString | undefined; total_daily_rate?: DecimalString | undefined; }>>; type CurrentReward = z.infer; declare const PaginatedCurrentRewardsSchema: z.ZodPipe>; rewards_max_spread: z.ZodOptional; rewards_min_size: z.ZodOptional>, z.ZodPipe>]>>; rewards_config: z.ZodOptional; asset_address: z.ZodString; start_date: z.ZodUnion>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; id?: number | undefined; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>>>; sponsored_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; sponsors_count: z.ZodOptional; native_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; total_daily_rate: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsoredDailyRate: DecimalString | undefined; sponsorsCount: number | undefined; nativeDailyRate: DecimalString | undefined; totalDailyRate: DecimalString | undefined; }, { condition_id: ConditionId; rewards_max_spread?: number | undefined; rewards_min_size?: DecimalString | undefined; rewards_config?: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsored_daily_rate?: DecimalString | undefined; sponsors_count?: number | undefined; native_daily_rate?: DecimalString | undefined; total_daily_rate?: DecimalString | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; limit: number; count: number; data: { conditionId: ConditionId; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsoredDailyRate: DecimalString | undefined; sponsorsCount: number | undefined; nativeDailyRate: DecimalString | undefined; totalDailyRate: DecimalString | undefined; }[]; }, { limit: number; count: number; next_cursor: string; data: { conditionId: ConditionId; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; id?: number | undefined; }[] | undefined; sponsoredDailyRate: DecimalString | undefined; sponsorsCount: number | undefined; nativeDailyRate: DecimalString | undefined; totalDailyRate: DecimalString | undefined; }[]; }>>; type PaginatedCurrentRewards = z.infer; declare const RewardTokenSchema: z.ZodPipe>; outcome: z.ZodString; price: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { token_id: TokenId; outcome: string; price: DecimalString; }>>; type RewardToken = z.infer; declare const RewardConfigSchema: z.ZodPipe>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>; type RewardConfig = z.infer; declare const MarketRewardSchema: z.ZodPipe>; question: z.ZodString; market_slug: z.ZodOptional; event_slug: z.ZodOptional; image: z.ZodOptional; rewards_max_spread: z.ZodOptional; rewards_min_size: z.ZodOptional>, z.ZodPipe>]>>; market_competitiveness: z.ZodOptional; tokens: z.ZodArray>; outcome: z.ZodString; price: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { token_id: TokenId; outcome: string; price: DecimalString; }>>>; rewards_config: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; marketSlug: string | undefined; eventSlug: string | undefined; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; marketCompetitiveness: number | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; image?: string | undefined; }, { condition_id: ConditionId; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; market_slug?: string | undefined; event_slug?: string | undefined; image?: string | undefined; rewards_max_spread?: number | undefined; rewards_min_size?: DecimalString | undefined; market_competitiveness?: number | undefined; rewards_config?: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; }>>; type MarketReward = z.infer; declare const PaginatedMarketRewardsSchema: z.ZodPipe>; question: z.ZodString; market_slug: z.ZodOptional; event_slug: z.ZodOptional; image: z.ZodOptional; rewards_max_spread: z.ZodOptional; rewards_min_size: z.ZodOptional>, z.ZodPipe>]>>; market_competitiveness: z.ZodOptional; tokens: z.ZodArray>; outcome: z.ZodString; price: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; outcome: string; price: DecimalString; }, { token_id: TokenId; outcome: string; price: DecimalString; }>>>; rewards_config: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>; end_date: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>; rate_per_day: z.ZodUnion>, z.ZodPipe>]>; total_rewards: z.ZodOptional>, z.ZodPipe>]>>; }, z.core.$strip>, z.ZodTransform<{ assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }, { asset_address: string; start_date: IsoDateTimeString; rate_per_day: DecimalString; end_date?: IsoDateTimeString | undefined; total_rewards?: DecimalString | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ conditionId: ConditionId; marketSlug: string | undefined; eventSlug: string | undefined; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; marketCompetitiveness: number | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; image?: string | undefined; }, { condition_id: ConditionId; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; market_slug?: string | undefined; event_slug?: string | undefined; image?: string | undefined; rewards_max_spread?: number | undefined; rewards_min_size?: DecimalString | undefined; market_competitiveness?: number | undefined; rewards_config?: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ nextCursor: string; limit: number; count: number; data: { conditionId: ConditionId; marketSlug: string | undefined; eventSlug: string | undefined; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; marketCompetitiveness: number | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; image?: string | undefined; }[]; }, { limit: number; count: number; next_cursor: string; data: { conditionId: ConditionId; marketSlug: string | undefined; eventSlug: string | undefined; rewardsMaxSpread: number | undefined; rewardsMinSize: DecimalString | undefined; marketCompetitiveness: number | undefined; rewardsConfig: { assetAddress: string; startDate: IsoDateTimeString; endDate: IsoDateTimeString | undefined; ratePerDay: DecimalString; totalRewards: DecimalString | undefined; }[] | undefined; question: string; tokens: { tokenId: TokenId; outcome: string; price: DecimalString; }[]; image?: string | undefined; }[]; }>>; type PaginatedMarketRewards = z.infer; declare const TickSizeSchema: z.ZodPipe, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>; }, z.core.$strip>, z.ZodTransform<{ minimumTickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; }, { minimum_tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; }>>; declare const FetchTickSizeResponseSchema: z.ZodPipe, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>; }, z.core.$strip>, z.ZodTransform<{ minimumTickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; }, { minimum_tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001; }>>; type TickSize = z.infer; type FetchTickSizeResponse = z.infer; export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema };