import { v } from "@dicedhq/core/validation"; import type { BaseClient } from "../client/base.js"; import type { OrderSide } from "./order.js"; export declare class TradeApi { private readonly client; constructor(client: BaseClient); /** * List trades */ listTrades(params?: ListTradesParams): Promise; /** * List all trades for a market */ listAllTrades(market: string): Promise; } declare const ListTradesSchema: v.SchemaWithPipe, undefined>; readonly maker_address: v.OptionalSchema, undefined>; readonly asset_id: v.OptionalSchema, undefined>; readonly next_cursor: v.OptionalSchema, undefined>; readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction]>, undefined>; readonly before: v.OptionalSchema, undefined>; readonly after: v.OptionalSchema, undefined>; }, undefined>, v.MetadataAction<{ market?: string | undefined; maker_address?: string | undefined; asset_id?: string | undefined; next_cursor?: string | undefined; limit?: number | undefined; before?: number | undefined; after?: number | undefined; }, { readonly title: "ListTradesParams"; }>]>; export type ListTradesParams = v.InferInput; export type Trade = { id: string; taker_order_id: string; market: string; asset_id: string; side: OrderSide; size: string; fee_rate_bps: string; price: string; status: string; match_time?: string; last_update?: string; outcome?: string; bucket_index?: number; owner?: string; maker_address?: string; transaction_hash?: string; trader_side?: OrderSide; type?: string; }; export type TradesResponse = { data: Trade[]; next_cursor?: string; }; export {}; //# sourceMappingURL=trade.d.ts.map