From 25f420735128ceba8759c739f6faeaa14d7ec8b7 Mon Sep 17 00:00:00 2001 From: David Lau Date: Wed, 24 Jun 2026 16:13:37 +0800 Subject: [PATCH] fix(order-quote): switch quoteOrder to exist auth and update CLI help text - OpenApiClient.quoteOrder now calls authExistRequest instead of authSignedRequest - Remove all GMGN_PRIVATE_KEY references from the quote command description and options Co-Authored-By: Claude Sonnet 4.6 --- src/client/OpenApiClient.ts | 2 +- src/commands/swap.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/OpenApiClient.ts b/src/client/OpenApiClient.ts index 7075372..2751a00 100644 --- a/src/client/OpenApiClient.ts +++ b/src/client/OpenApiClient.ts @@ -470,7 +470,7 @@ export class OpenApiClient { slippage: number ): Promise { const query = { chain, from_address, input_token, output_token, input_amount, slippage }; - return this.authSignedRequest("GET", "/v1/trade/quote", query, null); + return this.authExistRequest("GET", "/v1/trade/quote", query); } // ---- Swap endpoints (signed auth) ---- diff --git a/src/commands/swap.ts b/src/commands/swap.ts index a681a62..2153bf9 100644 --- a/src/commands/swap.ts +++ b/src/commands/swap.ts @@ -149,9 +149,9 @@ export function registerSwapCommands(program: Command): void { order .command("quote") - .description("Get a swap quote without submitting a transaction (signed auth — requires GMGN_PRIVATE_KEY)") - .requiredOption("--chain ", "Chain: sol / bsc / base / eth (requires GMGN_PRIVATE_KEY)") - .requiredOption("--from
", "Wallet address (must match API Key binding)") + .description("Get a swap quote without submitting a transaction (exist auth — GMGN_API_KEY only, no private key needed)") + .requiredOption("--chain ", "Chain: sol / bsc / base / eth") + .requiredOption("--from
", "Wallet address") .requiredOption("--input-token
", "Input token contract address") .requiredOption("--output-token
", "Output token contract address") .requiredOption("--amount ", "Input amount (smallest unit)")