/** * OpenApiClient — GMGN OpenAPI external client * * Auth modes: * Exist (market/token/portfolio): X-APIKEY + timestamp + client_id * Signed (swap and order routes): X-APIKEY + timestamp + client_id + X-Signature (private key signature) */ export interface Config { apiKey: string; privateKeyPem?: string; host: string; } export interface SwapParams { chain: string; from_address: string; input_token: string; output_token: string; input_amount: string; swap_mode?: string; input_amount_bps?: string; output_amount?: string; slippage?: number; auto_slippage?: boolean; min_output_amount?: string; is_anti_mev?: boolean; priority_fee?: string; tip_fee?: string; gas_price?: string; gas_level?: string; auto_fee?: boolean; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; condition_orders?: StrategyConditionOrder[]; sell_ratio_type?: string; } export interface StrategyConditionOrder { order_type: string; side: string; price_scale?: string; sell_ratio: string; drawdown_rate?: string; } export interface MultiSwapParams { chain: string; accounts: string[]; input_token: string; output_token: string; input_amount?: Record; input_amount_bps?: Record; output_amount?: Record; swap_mode?: string; slippage?: number; auto_slippage?: boolean; is_anti_mev?: boolean; priority_fee?: string; tip_fee?: string; gas_price?: string; gas_level?: string; auto_fee?: boolean; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; condition_orders?: StrategyConditionOrder[]; sell_ratio_type?: string; } export interface StrategyCreateParams { chain: string; from_address: string; base_token: string; quote_token: string; order_type: string; sub_order_type: string; check_price: string; open_price?: string; amount_in?: string; amount_in_percent?: string; limit_price_mode?: string; price_gap_ratio?: string; expire_in?: number; sell_ratio_type?: string; slippage?: number; auto_slippage?: boolean; fee?: string; auto_fee?: boolean; gas_price?: string; gas_level?: string; max_fee_per_gas?: string; max_priority_fee_per_gas?: string; is_anti_mev?: boolean; anti_mev_mode?: string; priority_fee?: string; tip_fee?: string; custom_rpc?: string; } export interface StrategyCancelParams { chain: string; from_address: string; order_id: string; order_type?: string; close_sell_model?: string; } export interface TokenSignalGroup { signal_type?: number[]; mc_min?: number; mc_max?: number; trigger_mc_min?: number; trigger_mc_max?: number; total_fee_min?: number; total_fee_max?: number; min_create_or_open_ts?: string; max_create_or_open_ts?: string; } export interface CreateTokenParams { chain: string; dex: string; from_address: string; name: string; symbol: string; buy_amt: string; image?: string; image_url?: string; website?: string; twitter?: string; telegram?: string; slippage?: number; auto_slippage?: boolean; priority_fee?: string; tip_fee?: string; gas_price?: string; max_priority_fee_per_gas?: string; max_fee_per_gas?: string; is_anti_mev?: boolean; anti_mev_mode?: string; } export declare class OpenApiClient { private readonly apiKey; private readonly privateKeyPem; private readonly host; constructor(config: Config); getTokenInfo(chain: string, address: string): Promise; getTokenSecurity(chain: string, address: string): Promise; getTokenPoolInfo(chain: string, address: string): Promise; getTokenTopHolders(chain: string, address: string, extra?: Record): Promise; getTokenTopTraders(chain: string, address: string, extra?: Record): Promise; getTokenKline(chain: string, address: string, resolution: string, from?: number, to?: number): Promise; getWalletHoldings(chain: string, walletAddress: string, extra?: Record): Promise; getWalletActivity(chain: string, walletAddress: string, extra?: Record): Promise; getWalletStats(chain: string, walletAddresses: string[], period?: string): Promise; getWalletTokenBalance(chain: string, walletAddress: string, tokenAddress: string): Promise; getTrenches(chain: string, types?: string[], platforms?: string[], limit?: number, filters?: Record): Promise; getTrendingSwaps(chain: string, interval: string, extra?: Record): Promise; getTokenSignalV2(chain: string, groups: TokenSignalGroup[]): Promise; getUserInfo(): Promise; getFollowWallet(chain: string, extra?: Record): Promise; getKol(chain?: string, limit?: number): Promise; getSmartMoney(chain?: string, limit?: number): Promise; getCreatedTokens(chain: string, walletAddress: string, extra?: Record): Promise; quoteOrder(chain: string, from_address: string, input_token: string, output_token: string, input_amount: string, slippage: number): Promise; swap(params: SwapParams): Promise; multiSwap(params: MultiSwapParams): Promise; queryOrder(orderId: string, chain: string): Promise; getGasPrice(chain: string): Promise; createStrategyOrder(params: StrategyCreateParams): Promise; getStrategyOrders(chain: string, extra?: Record): Promise; cancelStrategyOrder(params: StrategyCancelParams): Promise; getCookingStatistics(): Promise; createToken(params: CreateTokenParams): Promise; private authExistRequest; private authSignedRequest; private executePreparedRequest; private doFetch; private parseResponse; } //# sourceMappingURL=OpenApiClient.d.ts.map