UNPKG

orca-clmm-agent

Version:

Orca Whirlpool clmm library for automated position management

40 lines 1.42 kB
import { AssetType } from '@pythnetwork/hermes-client'; export declare class PythPriceService { private hermesClient; constructor(endpoint?: string); /** * Get Price Feeds matching the query * @param query The query to search for * @param filter The filter to apply * @returns Array of price feeds * @example 'BTC/USD' */ getPriceFeeds(query: string, filter?: AssetType): Promise<import("zod").objectOutputType<{ attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>; id: import("zod").ZodString; }, import("zod").ZodTypeAny, "passthrough">[]>; /** * Format raw price data into USD decimal format * @param priceData The price data to format * @returns Formatted price data */ private formatPrice; /** * Get the price of a token in USD * @param token The token to get the price for * @returns The price of the token in USD */ getUSDPrice(token: string): Promise<number>; /** * Get latest prices for multiple price feeds * @param priceFeedIds Array of Pyth price feed IDs * @returns Array of formatted price data */ getLatestPrices(priceFeedIds: string[]): Promise<{ price?: number | undefined; confidence?: number | undefined; timestamp?: any; id: string; }[]>; } //# sourceMappingURL=pyth.d.ts.map