mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-22 12:38:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32d2fd2aac | ||
|
|
8ed53df6d7 | ||
|
|
a161bd733d |
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gmgn-cli",
|
"name": "gmgn-cli",
|
||||||
"version": "1.3.8",
|
"version": "1.3.9",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gmgn-cli",
|
"name": "gmgn-cli",
|
||||||
"version": "1.3.8",
|
"version": "1.3.9",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^12.1.0",
|
"commander": "^12.1.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gmgn-cli",
|
"name": "gmgn-cli",
|
||||||
"version": "1.3.8",
|
"version": "1.3.9",
|
||||||
"description": "GMGN OpenAPI CLI — call GMGN market, token, portfolio and swap APIs from the command line",
|
"description": "GMGN OpenAPI CLI — call GMGN market, token, portfolio and swap APIs from the command line",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ gmgn-cli portfolio token-balance \
|
|||||||
| `--token <address>` | Filter by token |
|
| `--token <address>` | Filter by token |
|
||||||
| `--limit <n>` | Page size |
|
| `--limit <n>` | Page size |
|
||||||
| `--cursor <cursor>` | Pagination cursor (pass the `next` value from the previous response) |
|
| `--cursor <cursor>` | Pagination cursor (pass the `next` value from the previous response) |
|
||||||
| `--type <type>` | Repeatable: `buy` / `sell` / `add` / `remove` / `transfer` |
|
| `--type <type>` | Repeatable: `buy` / `sell` / `transferIn` / `transferOut` / `add` / `remove` |
|
||||||
|
|
||||||
The activity response includes a `next` field. Pass it to `--cursor` to fetch the next page.
|
The activity response includes a `next` field. Pass it to `--cursor` to fetch the next page.
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export function registerPortfolioCommands(program: Command): void {
|
|||||||
.option("--token <address>", "Filter by token contract address")
|
.option("--token <address>", "Filter by token contract address")
|
||||||
.option("--limit <n>", "Page size", parseInt)
|
.option("--limit <n>", "Page size", parseInt)
|
||||||
.option("--cursor <cursor>", "Pagination cursor")
|
.option("--cursor <cursor>", "Pagination cursor")
|
||||||
.option("--type <type...>", "Activity type filter, repeatable: buy / sell / add / remove / transfer")
|
.option("--type <type...>", "Activity type filter, repeatable: buy / sell / transferIn / transferOut / add / remove")
|
||||||
.option("--raw", "Output raw JSON")
|
.option("--raw", "Output raw JSON")
|
||||||
.action(async (opts) => {
|
.action(async (opts) => {
|
||||||
validateChain(opts.chain);
|
validateChain(opts.chain);
|
||||||
|
|||||||
Reference in New Issue
Block a user