import type { Market } from '@lifi/perps-types'; import type { SDKRequestOptions } from '../types/config.js'; import type { PerpsSDKClient } from '../types/provider.js'; /** * Parameters for {@link getMarket}. * * @public */ export interface GetMarketParams { provider: string; /** * Opaque provider `Market.id` (e.g. `"BTC"`, `"xyz:PURR"`, `"@142"` on * Hyperliquid; `"0"`, `"1"` on Lighter). Pass a `displaySymbol` here and * lookups will 404 for providers where the two diverge. */ marketId: string; } /** * Get a specific market by its opaque marketId. Requests the single market * from the backend `/markets` route (filtered by `marketIds`) and returns the * first match; the backend responds 404 (thrown as a {@link PerpsError}) when * nothing matches. * * @throws {PerpsError} On backend (e.g. 404), network, or parsing errors. * @example * ```ts * const client = createPerpsClient({ integrator: 'my-app' }) * const market = await getMarket(client, { provider: 'hyperliquid', marketId: 'BTC' }) * console.log(market.baseAsset.displaySymbol) * ``` * @public */ export declare function getMarket(client: PerpsSDKClient, params: GetMarketParams, options?: SDKRequestOptions): Promise; //# sourceMappingURL=getMarket.d.ts.map