mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-21 20:18:08 +00:00
feat(track): add follow-tokens subcommand
Adds gmgn-cli track follow-tokens to query a wallet's followed token list on a given chain via GET /v1/user/follow_tokens. - Add getFollowTokens() to OpenApiClient (authExist) - Add track follow-tokens command with --chain, --wallet (required), --group-id, --interval, --order-by, --direction, --limit, --cursor, --search optional flags - Update SKILL.md: sub-commands table, rate limit table (weight 3), usage examples, options table, response fields - Update docs/cli-usage.md and Readme.md / Readme.zh.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
23ca9d8670
commit
21d78d0947
@@ -436,6 +436,10 @@ export class OpenApiClient {
|
||||
return this.authSignedRequest("GET", "/v1/trade/follow_wallet", { chain, ...extra }, null);
|
||||
}
|
||||
|
||||
async getFollowTokens(chain: string, walletAddress: string, extra: Record<string, string | number> = {}): Promise<unknown> {
|
||||
return this.authExistRequest("GET", "/v1/user/follow_tokens", { chain, wallet_address: walletAddress, ...extra });
|
||||
}
|
||||
|
||||
async getKol(chain?: string, limit?: number): Promise<unknown> {
|
||||
const query: Record<string, string | number> = {};
|
||||
if (chain) query["chain"] = chain;
|
||||
|
||||
Reference in New Issue
Block a user