/** * Lighter order size and price formatting for exchange submission. * * Lighter publishes a flat per-market decimal budget on its order books * (`supported_price_decimals` / `supported_size_decimals`), surfaced on the * generic {@link Market} as `priceDecimals` / `szDecimals`. Prices round to * the tick grid; sizes truncate to the lot grid. */ import { type Market } from '@lifi/perps-types'; /** * Format a price onto a Lighter market's tick grid: rounded to the market's * `priceDecimals` (Lighter's `supported_price_decimals`), trailing zeros * stripped. * * @throws {PerpsError} `ValidationError` when `market.priceDecimals` is * absent — without the venue's tick grid no correct price can be produced. * @public */ export declare function formatOrderPrice(market: Market, price: number): string; /** * Format a size onto a Lighter market's lot grid: truncated (never rounded * up, so the size cannot exceed the user's balance) to the market's * `szDecimals` (Lighter's `supported_size_decimals`), trailing zeros stripped. * * @param size - Size in base-asset units as a non-negative magnitude. * @public */ export declare function formatOrderSize(market: Market, size: number): string; //# sourceMappingURL=orderFormatting.d.ts.map