/** * Market Helper - Simplified market utilities * Initialize once, use anywhere without passing marketIndex/orderApi repeatedly */ import { OrderApi } from '../api/order-api'; import { MarketConfig } from './price-utils'; export declare class MarketHelper { private marketIndex; private orderApi; private marketConfig?; private initialized; constructor(marketIndex: number, orderApi: OrderApi); /** * Initialize and fetch market configuration (call once) */ initialize(): Promise; /** * Get market configuration */ getConfig(): MarketConfig; /** * Convert human-readable price to exchange units */ priceToUnits(price: number): number; /** * Convert exchange units to human-readable price */ unitsToPrice(units: number): number; /** * Convert human-readable amount to exchange units */ amountToUnits(amount: number): number; /** * Convert exchange units to human-readable amount */ unitsToAmount(units: number): number; /** * Format price for display */ formatPrice(units: number, decimals?: number): string; /** * Format amount for display */ formatAmount(units: number, decimals?: number): string; /** * Get market name */ get marketName(): string; /** * Get last trade price */ get lastPrice(): number; /** * Get base asset */ get baseAsset(): string; /** * Get quote asset */ get quoteAsset(): string; } //# sourceMappingURL=market-helper.d.ts.map