nansen-cli 1.9.3 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1516 @@
1
+ {
2
+ "commands": {
3
+ "research": {
4
+ "description": "Research and analytics commands",
5
+ "subcommands": {
6
+ "smart-money": {
7
+ "description": "Smart Money analytics - track sophisticated market participants",
8
+ "subcommands": {
9
+ "netflow": {
10
+ "description": "Net capital flows (inflows vs outflows)",
11
+ "options": {
12
+ "chain": {
13
+ "type": "string",
14
+ "default": "solana",
15
+ "description": "Blockchain to query"
16
+ },
17
+ "chains": {
18
+ "type": "array",
19
+ "description": "Multiple chains as JSON array"
20
+ },
21
+ "limit": {
22
+ "type": "number",
23
+ "description": "Number of results"
24
+ },
25
+ "labels": {
26
+ "type": "string|array",
27
+ "description": "Smart Money label filter"
28
+ },
29
+ "sort": {
30
+ "type": "string",
31
+ "description": "Sort field:direction (e.g., value_usd:desc)"
32
+ },
33
+ "filters": {
34
+ "type": "object",
35
+ "description": "Additional filters as JSON"
36
+ }
37
+ },
38
+ "returns": [
39
+ "token_address",
40
+ "token_symbol",
41
+ "net_flow_1h_usd",
42
+ "net_flow_24h_usd",
43
+ "net_flow_7d_usd",
44
+ "net_flow_30d_usd",
45
+ "chain",
46
+ "token_sectors",
47
+ "trader_count",
48
+ "token_age_days",
49
+ "market_cap_usd"
50
+ ]
51
+ },
52
+ "dex-trades": {
53
+ "description": "Real-time DEX trading activity",
54
+ "options": {
55
+ "chain": {
56
+ "type": "string",
57
+ "default": "solana"
58
+ },
59
+ "chains": {
60
+ "type": "array"
61
+ },
62
+ "limit": {
63
+ "type": "number"
64
+ },
65
+ "labels": {
66
+ "type": "string|array"
67
+ },
68
+ "sort": {
69
+ "type": "string"
70
+ },
71
+ "filters": {
72
+ "type": "object"
73
+ }
74
+ },
75
+ "returns": [
76
+ "chain",
77
+ "block_timestamp",
78
+ "transaction_hash",
79
+ "trader_address",
80
+ "trader_address_label",
81
+ "token_bought_address",
82
+ "token_sold_address",
83
+ "token_bought_amount",
84
+ "token_sold_amount",
85
+ "token_bought_symbol",
86
+ "token_sold_symbol",
87
+ "token_bought_age_days",
88
+ "token_sold_age_days",
89
+ "token_bought_market_cap",
90
+ "token_sold_market_cap",
91
+ "trade_value_usd"
92
+ ]
93
+ },
94
+ "perp-trades": {
95
+ "description": "Perpetual trading on Hyperliquid",
96
+ "options": {
97
+ "limit": {
98
+ "type": "number"
99
+ },
100
+ "labels": {
101
+ "type": "string|array",
102
+ "description": "Smart Money label filter"
103
+ },
104
+ "only-new-positions": {
105
+ "type": "boolean",
106
+ "description": "Show only position-opening trades (Open Long, Open Short)"
107
+ },
108
+ "sort": {
109
+ "type": "string"
110
+ },
111
+ "filters": {
112
+ "type": "object"
113
+ }
114
+ },
115
+ "returns": [
116
+ "trader_address_label",
117
+ "trader_address",
118
+ "token_symbol",
119
+ "side",
120
+ "action",
121
+ "token_amount",
122
+ "price_usd",
123
+ "value_usd",
124
+ "type",
125
+ "block_timestamp",
126
+ "transaction_hash"
127
+ ]
128
+ },
129
+ "holdings": {
130
+ "description": "Aggregated token balances",
131
+ "options": {
132
+ "chain": {
133
+ "type": "string",
134
+ "default": "solana"
135
+ },
136
+ "chains": {
137
+ "type": "array"
138
+ },
139
+ "limit": {
140
+ "type": "number"
141
+ },
142
+ "labels": {
143
+ "type": "string|array"
144
+ }
145
+ },
146
+ "returns": [
147
+ "chain",
148
+ "token_address",
149
+ "token_symbol",
150
+ "token_sectors",
151
+ "value_usd",
152
+ "balance_24h_percent_change",
153
+ "holders_count",
154
+ "share_of_holdings_percent",
155
+ "token_age_days",
156
+ "market_cap_usd"
157
+ ]
158
+ },
159
+ "dcas": {
160
+ "description": "DCA strategies on Jupiter",
161
+ "options": {
162
+ "limit": {
163
+ "type": "number"
164
+ },
165
+ "filters": {
166
+ "type": "object"
167
+ }
168
+ },
169
+ "returns": [
170
+ "dca_created_at",
171
+ "dca_updated_at",
172
+ "trader_address",
173
+ "transaction_hash",
174
+ "trader_address_label",
175
+ "dca_vault_address",
176
+ "input_token_address",
177
+ "output_token_address",
178
+ "deposit_token_amount",
179
+ "token_spent_amount",
180
+ "output_token_redeemed_amount",
181
+ "dca_status",
182
+ "input_token_symbol",
183
+ "output_token_symbol",
184
+ "deposit_value_usd"
185
+ ]
186
+ },
187
+ "historical-holdings": {
188
+ "description": "Historical holdings over time",
189
+ "options": {
190
+ "chain": {
191
+ "type": "string",
192
+ "default": "solana"
193
+ },
194
+ "chains": {
195
+ "type": "array"
196
+ },
197
+ "days": {
198
+ "type": "number",
199
+ "default": 30
200
+ },
201
+ "limit": {
202
+ "type": "number"
203
+ }
204
+ },
205
+ "returns": [
206
+ "date",
207
+ "chain",
208
+ "token_address",
209
+ "token_symbol",
210
+ "token_sectors",
211
+ "smart_money_labels",
212
+ "balance",
213
+ "value_usd",
214
+ "balance_24h_percent_change",
215
+ "holders_count",
216
+ "share_of_holdings_percent",
217
+ "token_age_days",
218
+ "market_cap_usd"
219
+ ]
220
+ }
221
+ }
222
+ },
223
+ "profiler": {
224
+ "description": "Wallet profiling - detailed information about any blockchain address",
225
+ "subcommands": {
226
+ "balance": {
227
+ "description": "Current token holdings",
228
+ "options": {
229
+ "address": {
230
+ "type": "string",
231
+ "required": true,
232
+ "description": "Wallet address to query"
233
+ },
234
+ "chain": {
235
+ "type": "string",
236
+ "default": "ethereum"
237
+ },
238
+ "entity": {
239
+ "type": "string",
240
+ "description": "Entity name instead of address"
241
+ }
242
+ },
243
+ "returns": [
244
+ "chain",
245
+ "address",
246
+ "token_address",
247
+ "token_symbol",
248
+ "token_name",
249
+ "token_amount",
250
+ "price_usd",
251
+ "value_usd"
252
+ ]
253
+ },
254
+ "labels": {
255
+ "description": "Behavioral and entity labels",
256
+ "options": {
257
+ "address": {
258
+ "type": "string",
259
+ "required": true
260
+ },
261
+ "chain": {
262
+ "type": "string",
263
+ "default": "ethereum"
264
+ }
265
+ },
266
+ "returns": [
267
+ "label",
268
+ "category"
269
+ ]
270
+ },
271
+ "transactions": {
272
+ "description": "Transaction history",
273
+ "options": {
274
+ "address": {
275
+ "type": "string",
276
+ "required": true
277
+ },
278
+ "chain": {
279
+ "type": "string",
280
+ "default": "ethereum"
281
+ },
282
+ "date": {
283
+ "type": "string",
284
+ "required": false,
285
+ "description": "Date or date range"
286
+ },
287
+ "limit": {
288
+ "type": "number"
289
+ },
290
+ "days": {
291
+ "type": "number",
292
+ "default": 30
293
+ }
294
+ },
295
+ "returns": [
296
+ "chain",
297
+ "method",
298
+ "tokens_sent",
299
+ "tokens_received",
300
+ "volume_usd",
301
+ "block_timestamp",
302
+ "transaction_hash",
303
+ "source_type"
304
+ ]
305
+ },
306
+ "pnl": {
307
+ "description": "PnL and trade performance",
308
+ "options": {
309
+ "address": {
310
+ "type": "string",
311
+ "required": true
312
+ },
313
+ "chain": {
314
+ "type": "string",
315
+ "default": "ethereum"
316
+ },
317
+ "date": {
318
+ "type": "string",
319
+ "description": "Date or date range"
320
+ },
321
+ "days": {
322
+ "type": "number",
323
+ "default": 30
324
+ },
325
+ "limit": {
326
+ "type": "number"
327
+ }
328
+ },
329
+ "returns": [
330
+ "token_address",
331
+ "token_symbol",
332
+ "token_price",
333
+ "roi_percent_realised",
334
+ "pnl_usd_realised",
335
+ "pnl_usd_unrealised",
336
+ "roi_percent_unrealised",
337
+ "bought_amount",
338
+ "bought_usd",
339
+ "cost_basis_usd",
340
+ "sold_amount",
341
+ "sold_usd",
342
+ "avg_sold_price_usd",
343
+ "holding_amount",
344
+ "holding_usd",
345
+ "nof_buys",
346
+ "nof_sells",
347
+ "max_balance_held",
348
+ "max_balance_held_usd"
349
+ ]
350
+ },
351
+ "search": {
352
+ "description": "Search for entities by name",
353
+ "options": {
354
+ "query": {
355
+ "type": "string",
356
+ "required": true,
357
+ "description": "Search query"
358
+ },
359
+ "limit": {
360
+ "type": "number"
361
+ }
362
+ },
363
+ "returns": [
364
+ "entity_name"
365
+ ]
366
+ },
367
+ "historical-balances": {
368
+ "description": "Historical balances over time",
369
+ "options": {
370
+ "address": {
371
+ "type": "string",
372
+ "required": true
373
+ },
374
+ "chain": {
375
+ "type": "string",
376
+ "default": "ethereum"
377
+ },
378
+ "days": {
379
+ "type": "number",
380
+ "default": 30
381
+ },
382
+ "limit": {
383
+ "type": "number"
384
+ }
385
+ },
386
+ "returns": [
387
+ "block_timestamp",
388
+ "token_address",
389
+ "chain",
390
+ "token_amount",
391
+ "value_usd",
392
+ "token_symbol"
393
+ ]
394
+ },
395
+ "related-wallets": {
396
+ "description": "Find wallets related to an address",
397
+ "options": {
398
+ "address": {
399
+ "type": "string",
400
+ "required": true
401
+ },
402
+ "chain": {
403
+ "type": "string",
404
+ "default": "ethereum"
405
+ },
406
+ "limit": {
407
+ "type": "number"
408
+ }
409
+ },
410
+ "returns": [
411
+ "address",
412
+ "address_label",
413
+ "relation",
414
+ "transaction_hash",
415
+ "block_timestamp",
416
+ "order",
417
+ "chain"
418
+ ]
419
+ },
420
+ "counterparties": {
421
+ "description": "Top counterparties by volume",
422
+ "options": {
423
+ "address": {
424
+ "type": "string",
425
+ "required": true
426
+ },
427
+ "chain": {
428
+ "type": "string",
429
+ "default": "ethereum"
430
+ },
431
+ "days": {
432
+ "type": "number",
433
+ "default": 30
434
+ },
435
+ "limit": {
436
+ "type": "number"
437
+ }
438
+ },
439
+ "returns": [
440
+ "counterparty_address",
441
+ "counterparty_address_label",
442
+ "interaction_count",
443
+ "total_volume_usd",
444
+ "volume_in_usd",
445
+ "volume_out_usd",
446
+ "tokens_info"
447
+ ]
448
+ },
449
+ "pnl-summary": {
450
+ "description": "Summarized PnL metrics",
451
+ "options": {
452
+ "address": {
453
+ "type": "string",
454
+ "required": true
455
+ },
456
+ "chain": {
457
+ "type": "string",
458
+ "default": "ethereum"
459
+ },
460
+ "days": {
461
+ "type": "number",
462
+ "default": 30
463
+ }
464
+ },
465
+ "returns": [
466
+ "pagination",
467
+ "top5_tokens[realized_pnl, realized_roi, token_address, token_symbol, chain]",
468
+ "traded_token_count",
469
+ "traded_times",
470
+ "realized_pnl_usd",
471
+ "realized_pnl_percent",
472
+ "win_rate"
473
+ ]
474
+ },
475
+ "perp-positions": {
476
+ "description": "Current perpetual positions",
477
+ "options": {
478
+ "address": {
479
+ "type": "string",
480
+ "required": true
481
+ },
482
+ "limit": {
483
+ "type": "number"
484
+ }
485
+ },
486
+ "returns": [
487
+ "assetPositions",
488
+ "crossMaintenanceMarginUsed",
489
+ "cross_margin_summary_account_value_usd",
490
+ "cross_margin_summary_total_margin_used_usd",
491
+ "cross_margin_summary_total_net_liquidation_position_on_usd",
492
+ "cross_margin_summary_total_raw_usd",
493
+ "margin_summary_account_value_usd",
494
+ "margin_summary_total_margin_used_usd",
495
+ "margin_summary_total_net_liquidation_position_usd",
496
+ "margin_summary_total_raw_usd",
497
+ "time",
498
+ "withdrawable"
499
+ ]
500
+ },
501
+ "perp-trades": {
502
+ "description": "Perpetual trading history",
503
+ "options": {
504
+ "address": {
505
+ "type": "string",
506
+ "required": true
507
+ },
508
+ "days": {
509
+ "type": "number",
510
+ "default": 30
511
+ },
512
+ "limit": {
513
+ "type": "number"
514
+ }
515
+ },
516
+ "returns": [
517
+ "timestamp",
518
+ "side",
519
+ "action",
520
+ "block_number",
521
+ "token_symbol",
522
+ "price",
523
+ "size",
524
+ "value_usd",
525
+ "start_position",
526
+ "closed_pnl",
527
+ "crossed",
528
+ "fee_usd",
529
+ "fee_token_symbol",
530
+ "transaction_hash",
531
+ "user",
532
+ "oid"
533
+ ]
534
+ },
535
+ "batch": {
536
+ "description": "Batch profile multiple addresses",
537
+ "options": {
538
+ "addresses": {
539
+ "type": "string",
540
+ "description": "Comma-separated addresses"
541
+ },
542
+ "file": {
543
+ "type": "string",
544
+ "description": "File with one address per line"
545
+ },
546
+ "chain": {
547
+ "type": "string",
548
+ "default": "ethereum"
549
+ },
550
+ "include": {
551
+ "type": "string",
552
+ "default": "labels,balance",
553
+ "description": "Comma-separated: labels,balance,pnl"
554
+ },
555
+ "delay": {
556
+ "type": "number",
557
+ "default": 1000,
558
+ "description": "Delay between requests in ms"
559
+ }
560
+ },
561
+ "returns": [
562
+ "address",
563
+ "chain",
564
+ "labels",
565
+ "balance",
566
+ "pnl",
567
+ "error"
568
+ ]
569
+ },
570
+ "trace": {
571
+ "description": "Multi-hop counterparty trace (BFS)",
572
+ "options": {
573
+ "address": {
574
+ "type": "string",
575
+ "required": true
576
+ },
577
+ "chain": {
578
+ "type": "string",
579
+ "default": "ethereum"
580
+ },
581
+ "depth": {
582
+ "type": "number",
583
+ "default": 2,
584
+ "description": "Max hops (1-5)"
585
+ },
586
+ "width": {
587
+ "type": "number",
588
+ "default": 10,
589
+ "description": "Top N counterparties per hop"
590
+ },
591
+ "days": {
592
+ "type": "number",
593
+ "default": 30
594
+ },
595
+ "delay": {
596
+ "type": "number",
597
+ "default": 1000,
598
+ "description": "Delay between requests in ms"
599
+ }
600
+ },
601
+ "returns": [
602
+ "root",
603
+ "chain",
604
+ "depth",
605
+ "nodes",
606
+ "edges",
607
+ "stats"
608
+ ]
609
+ },
610
+ "compare": {
611
+ "description": "Compare two wallets (shared counterparties, tokens)",
612
+ "options": {
613
+ "addresses": {
614
+ "type": "string",
615
+ "required": true,
616
+ "description": "Two comma-separated addresses"
617
+ },
618
+ "chain": {
619
+ "type": "string",
620
+ "default": "ethereum"
621
+ },
622
+ "days": {
623
+ "type": "number",
624
+ "default": 30
625
+ }
626
+ },
627
+ "returns": [
628
+ "addresses",
629
+ "chain",
630
+ "shared_counterparties",
631
+ "shared_tokens",
632
+ "balances"
633
+ ]
634
+ }
635
+ }
636
+ },
637
+ "token": {
638
+ "description": "Token God Mode - deep analytics for any token",
639
+ "subcommands": {
640
+ "indicators": {
641
+ "description": "Risk and reward indicators for a token (Nansen Score)",
642
+ "options": {
643
+ "token": {
644
+ "type": "string",
645
+ "required": true,
646
+ "description": "Token address"
647
+ },
648
+ "chain": {
649
+ "type": "string",
650
+ "default": "ethereum"
651
+ }
652
+ },
653
+ "returns": [
654
+ "token_address",
655
+ "chain",
656
+ "token_info",
657
+ "risk_indicators[indicator_type, score, signal, signal_percentile, last_trigger_on]",
658
+ "reward_indicators[indicator_type, score, signal, signal_percentile, last_trigger_on]"
659
+ ]
660
+ },
661
+ "ohlcv": {
662
+ "description": "OHLCV candle data for a token",
663
+ "options": {
664
+ "token": {
665
+ "type": "string",
666
+ "required": true,
667
+ "description": "Token address"
668
+ },
669
+ "chain": {
670
+ "type": "string",
671
+ "default": "solana"
672
+ },
673
+ "timeframe": {
674
+ "type": "string",
675
+ "default": "1h",
676
+ "enum": [
677
+ "1m",
678
+ "5m",
679
+ "15m",
680
+ "30m",
681
+ "1h",
682
+ "2h",
683
+ "4h",
684
+ "1d",
685
+ "1w",
686
+ "1M"
687
+ ],
688
+ "description": "Candle timeframe (e.g., 1h, 4h, 1d)"
689
+ }
690
+ },
691
+ "returns": [
692
+ "interval_start",
693
+ "open",
694
+ "high",
695
+ "low",
696
+ "close",
697
+ "volume",
698
+ "volume_usd",
699
+ "market_cap"
700
+ ]
701
+ },
702
+ "info": {
703
+ "description": "Get detailed information for a specific token",
704
+ "options": {
705
+ "token": {
706
+ "type": "string",
707
+ "required": true,
708
+ "description": "Token address"
709
+ },
710
+ "chain": {
711
+ "type": "string",
712
+ "default": "solana"
713
+ },
714
+ "timeframe": {
715
+ "type": "string",
716
+ "default": "1d",
717
+ "enum": [
718
+ "5m",
719
+ "1h",
720
+ "6h",
721
+ "12h",
722
+ "1d",
723
+ "7d"
724
+ ]
725
+ }
726
+ },
727
+ "returns": [
728
+ "name",
729
+ "symbol",
730
+ "contract_address",
731
+ "logo",
732
+ "token_details",
733
+ "spot_metrics"
734
+ ]
735
+ },
736
+ "screener": {
737
+ "description": "Discover and filter tokens",
738
+ "options": {
739
+ "chain": {
740
+ "type": "string",
741
+ "default": "solana"
742
+ },
743
+ "chains": {
744
+ "type": "array"
745
+ },
746
+ "timeframe": {
747
+ "type": "string",
748
+ "default": "24h",
749
+ "enum": [
750
+ "5m",
751
+ "10m",
752
+ "1h",
753
+ "6h",
754
+ "24h",
755
+ "7d",
756
+ "30d"
757
+ ]
758
+ },
759
+ "smart-money": {
760
+ "type": "boolean",
761
+ "description": "Filter for Smart Money only"
762
+ },
763
+ "search": {
764
+ "type": "string",
765
+ "description": "Filter results by token symbol or name (client-side)"
766
+ },
767
+ "limit": {
768
+ "type": "number"
769
+ },
770
+ "sort": {
771
+ "type": "string",
772
+ "description": "Sort field:direction (e.g., volume_usd:desc)"
773
+ },
774
+ "filters": {
775
+ "type": "object",
776
+ "description": "Additional filters as JSON"
777
+ }
778
+ },
779
+ "returns": [
780
+ "chain",
781
+ "token_address",
782
+ "token_symbol",
783
+ "token_age_days",
784
+ "market_cap_usd",
785
+ "liquidity",
786
+ "price_usd",
787
+ "price_change",
788
+ "fdv",
789
+ "fdv_mc_ratio",
790
+ "buy_volume",
791
+ "inflow_fdv_ratio",
792
+ "outflow_fdv_ratio",
793
+ "sell_volume",
794
+ "volume",
795
+ "netflow"
796
+ ]
797
+ },
798
+ "holders": {
799
+ "description": "Token holder analysis",
800
+ "options": {
801
+ "token": {
802
+ "type": "string",
803
+ "required": true
804
+ },
805
+ "chain": {
806
+ "type": "string",
807
+ "default": "solana"
808
+ },
809
+ "smart-money": {
810
+ "type": "boolean"
811
+ },
812
+ "limit": {
813
+ "type": "number"
814
+ },
815
+ "sort": {
816
+ "type": "string",
817
+ "description": "Sort field:direction (e.g., value_usd:desc)"
818
+ },
819
+ "filters": {
820
+ "type": "object",
821
+ "description": "Additional filters as JSON"
822
+ }
823
+ },
824
+ "returns": [
825
+ "address",
826
+ "address_label",
827
+ "token_amount",
828
+ "total_outflow",
829
+ "total_inflow",
830
+ "balance_change_24h",
831
+ "balance_change_7d",
832
+ "balance_change_30d",
833
+ "ownership_percentage",
834
+ "value_usd"
835
+ ]
836
+ },
837
+ "flows": {
838
+ "description": "Token flow metrics",
839
+ "options": {
840
+ "token": {
841
+ "type": "string",
842
+ "required": true
843
+ },
844
+ "chain": {
845
+ "type": "string",
846
+ "default": "solana"
847
+ },
848
+ "date": {
849
+ "type": "string",
850
+ "required": false,
851
+ "description": "Date or date range"
852
+ },
853
+ "days": {
854
+ "type": "number",
855
+ "default": 30
856
+ },
857
+ "limit": {
858
+ "type": "number"
859
+ },
860
+ "sort": {
861
+ "type": "string",
862
+ "description": "Sort field:direction (e.g., value_usd:desc)"
863
+ },
864
+ "filters": {
865
+ "type": "object",
866
+ "description": "Additional filters as JSON"
867
+ }
868
+ },
869
+ "returns": [
870
+ "date",
871
+ "price_usd",
872
+ "token_amount",
873
+ "value_usd",
874
+ "holders_count",
875
+ "total_inflows_count",
876
+ "total_outflows_count"
877
+ ]
878
+ },
879
+ "dex-trades": {
880
+ "description": "DEX trading activity",
881
+ "options": {
882
+ "token": {
883
+ "type": "string",
884
+ "required": true
885
+ },
886
+ "chain": {
887
+ "type": "string",
888
+ "default": "solana"
889
+ },
890
+ "smart-money": {
891
+ "type": "boolean"
892
+ },
893
+ "days": {
894
+ "type": "number",
895
+ "default": 30
896
+ },
897
+ "limit": {
898
+ "type": "number"
899
+ },
900
+ "sort": {
901
+ "type": "string",
902
+ "description": "Sort field:direction (e.g., value_usd:desc)"
903
+ },
904
+ "filters": {
905
+ "type": "object",
906
+ "description": "Additional filters as JSON"
907
+ }
908
+ },
909
+ "returns": [
910
+ "block_timestamp",
911
+ "transaction_hash",
912
+ "trader_address",
913
+ "trader_address_label",
914
+ "action",
915
+ "token_address",
916
+ "token_name",
917
+ "token_amount",
918
+ "traded_token_address",
919
+ "traded_token_name",
920
+ "traded_token_amount",
921
+ "estimated_swap_price_usd",
922
+ "estimated_value_usd"
923
+ ]
924
+ },
925
+ "pnl": {
926
+ "description": "PnL leaderboard",
927
+ "options": {
928
+ "token": {
929
+ "type": "string",
930
+ "required": true
931
+ },
932
+ "chain": {
933
+ "type": "string",
934
+ "default": "solana"
935
+ },
936
+ "days": {
937
+ "type": "number",
938
+ "default": 30
939
+ },
940
+ "limit": {
941
+ "type": "number"
942
+ },
943
+ "sort": {
944
+ "type": "string",
945
+ "description": "Sort field:direction (e.g., total_pnl_usd:desc)"
946
+ },
947
+ "filters": {
948
+ "type": "object",
949
+ "description": "Additional filters as JSON"
950
+ }
951
+ },
952
+ "returns": [
953
+ "trader_address",
954
+ "trader_address_label",
955
+ "price_usd",
956
+ "pnl_usd_realised",
957
+ "pnl_usd_unrealised",
958
+ "holding_amount",
959
+ "holding_usd",
960
+ "max_balance_held",
961
+ "max_balance_held_usd",
962
+ "still_holding_balance_ratio",
963
+ "netflow_amount_usd",
964
+ "netflow_amount",
965
+ "roi_percent_total",
966
+ "roi_percent_realised",
967
+ "roi_percent_unrealised",
968
+ "pnl_usd_total",
969
+ "nof_trades"
970
+ ]
971
+ },
972
+ "who-bought-sold": {
973
+ "description": "Recent buyers and sellers",
974
+ "options": {
975
+ "token": {
976
+ "type": "string",
977
+ "required": true
978
+ },
979
+ "chain": {
980
+ "type": "string",
981
+ "default": "solana"
982
+ },
983
+ "date": {
984
+ "type": "string",
985
+ "required": false,
986
+ "description": "Date or date range"
987
+ },
988
+ "days": {
989
+ "type": "number",
990
+ "default": 30
991
+ },
992
+ "limit": {
993
+ "type": "number"
994
+ },
995
+ "sort": {
996
+ "type": "string",
997
+ "description": "Sort field:direction (e.g., trade_volume_usd:desc)"
998
+ },
999
+ "filters": {
1000
+ "type": "object",
1001
+ "description": "Additional filters as JSON"
1002
+ }
1003
+ },
1004
+ "returns": [
1005
+ "address",
1006
+ "address_label",
1007
+ "bought_token_volume",
1008
+ "sold_token_volume",
1009
+ "token_trade_volume",
1010
+ "bought_volume_usd",
1011
+ "sold_volume_usd",
1012
+ "trade_volume_usd"
1013
+ ]
1014
+ },
1015
+ "flow-intelligence": {
1016
+ "description": "Detailed flow intelligence by label",
1017
+ "options": {
1018
+ "token": {
1019
+ "type": "string",
1020
+ "required": true
1021
+ },
1022
+ "chain": {
1023
+ "type": "string",
1024
+ "default": "solana"
1025
+ },
1026
+ "days": {
1027
+ "type": "number",
1028
+ "default": 30
1029
+ }
1030
+ },
1031
+ "returns": [
1032
+ "public_figure_net_flow_usd",
1033
+ "public_figure_avg_flow_usd",
1034
+ "public_figure_wallet_count",
1035
+ "top_pnl_net_flow_usd",
1036
+ "top_pnl_avg_flow_usd",
1037
+ "top_pnl_wallet_count",
1038
+ "whale_net_flow_usd",
1039
+ "whale_avg_flow_usd",
1040
+ "whale_wallet_count",
1041
+ "smart_trader_net_flow_usd",
1042
+ "smart_trader_avg_flow_usd",
1043
+ "smart_trader_wallet_count",
1044
+ "exchange_net_flow_usd",
1045
+ "exchange_avg_flow_usd",
1046
+ "exchange_wallet_count",
1047
+ "fresh_wallets_net_flow_usd",
1048
+ "fresh_wallets_avg_flow_usd",
1049
+ "fresh_wallets_wallet_count"
1050
+ ]
1051
+ },
1052
+ "transfers": {
1053
+ "description": "Token transfer history",
1054
+ "options": {
1055
+ "token": {
1056
+ "type": "string",
1057
+ "required": true
1058
+ },
1059
+ "chain": {
1060
+ "type": "string",
1061
+ "default": "solana"
1062
+ },
1063
+ "days": {
1064
+ "type": "number",
1065
+ "default": 30
1066
+ },
1067
+ "limit": {
1068
+ "type": "number"
1069
+ },
1070
+ "from": {
1071
+ "type": "string",
1072
+ "description": "Filter by sender address"
1073
+ },
1074
+ "to": {
1075
+ "type": "string",
1076
+ "description": "Filter by recipient address"
1077
+ },
1078
+ "enrich": {
1079
+ "type": "boolean",
1080
+ "description": "Enrich addresses with Nansen labels"
1081
+ },
1082
+ "sort": {
1083
+ "type": "string",
1084
+ "description": "Sort field:direction (e.g., value_usd:desc)"
1085
+ },
1086
+ "filters": {
1087
+ "type": "object",
1088
+ "description": "Additional filters as JSON"
1089
+ }
1090
+ },
1091
+ "returns": [
1092
+ "block_timestamp",
1093
+ "transaction_hash",
1094
+ "from_address",
1095
+ "to_address",
1096
+ "from_address_label",
1097
+ "to_address_label",
1098
+ "transaction_type",
1099
+ "transfer_amount",
1100
+ "transfer_value_usd"
1101
+ ]
1102
+ },
1103
+ "jup-dca": {
1104
+ "description": "Jupiter DCA orders for token",
1105
+ "options": {
1106
+ "token": {
1107
+ "type": "string",
1108
+ "required": true
1109
+ },
1110
+ "limit": {
1111
+ "type": "number"
1112
+ },
1113
+ "sort": {
1114
+ "type": "string",
1115
+ "description": "Sort field:direction (e.g., total_input:desc)"
1116
+ },
1117
+ "filters": {
1118
+ "type": "object",
1119
+ "description": "Additional filters as JSON"
1120
+ }
1121
+ },
1122
+ "returns": [
1123
+ "since_timestamp",
1124
+ "last_timestamp",
1125
+ "trader_address",
1126
+ "creation_hash",
1127
+ "trader_label",
1128
+ "dca_vault_address",
1129
+ "input_mint_address",
1130
+ "output_mint_address",
1131
+ "deposit_amount",
1132
+ "deposit_spent",
1133
+ "other_token_redeemed",
1134
+ "status",
1135
+ "token_input",
1136
+ "token_output",
1137
+ "deposit_usd_value"
1138
+ ]
1139
+ },
1140
+ "perp-trades": {
1141
+ "description": "Perp trades by token symbol",
1142
+ "options": {
1143
+ "symbol": {
1144
+ "type": "string",
1145
+ "required": true,
1146
+ "description": "Token symbol (e.g., BTC, ETH)"
1147
+ },
1148
+ "days": {
1149
+ "type": "number",
1150
+ "default": 30
1151
+ },
1152
+ "limit": {
1153
+ "type": "number"
1154
+ },
1155
+ "sort": {
1156
+ "type": "string",
1157
+ "description": "Sort field:direction (e.g., value_usd:desc)"
1158
+ },
1159
+ "filters": {
1160
+ "type": "object",
1161
+ "description": "Additional filters as JSON"
1162
+ }
1163
+ },
1164
+ "returns": [
1165
+ "trader_address_label",
1166
+ "trader_address",
1167
+ "token_symbol",
1168
+ "side",
1169
+ "action",
1170
+ "token_amount",
1171
+ "price_usd",
1172
+ "value_usd",
1173
+ "type",
1174
+ "block_timestamp",
1175
+ "transaction_hash"
1176
+ ]
1177
+ },
1178
+ "perp-positions": {
1179
+ "description": "Open perp positions by token symbol",
1180
+ "options": {
1181
+ "symbol": {
1182
+ "type": "string",
1183
+ "required": true
1184
+ },
1185
+ "limit": {
1186
+ "type": "number"
1187
+ },
1188
+ "sort": {
1189
+ "type": "string",
1190
+ "description": "Sort field:direction (e.g., unrealized_pnl:desc)"
1191
+ },
1192
+ "filters": {
1193
+ "type": "object",
1194
+ "description": "Additional filters as JSON"
1195
+ }
1196
+ },
1197
+ "returns": [
1198
+ "address",
1199
+ "address_label",
1200
+ "side",
1201
+ "position_value_usd",
1202
+ "position_size",
1203
+ "leverage",
1204
+ "leverage_type",
1205
+ "entry_price",
1206
+ "mark_price",
1207
+ "liquidation_price",
1208
+ "funding_usd",
1209
+ "upnl_usd"
1210
+ ]
1211
+ },
1212
+ "perp-pnl-leaderboard": {
1213
+ "description": "Perp PnL leaderboard by token",
1214
+ "options": {
1215
+ "symbol": {
1216
+ "type": "string",
1217
+ "required": true
1218
+ },
1219
+ "days": {
1220
+ "type": "number",
1221
+ "default": 30
1222
+ },
1223
+ "limit": {
1224
+ "type": "number"
1225
+ },
1226
+ "sort": {
1227
+ "type": "string",
1228
+ "description": "Sort field:direction (e.g., total_pnl:desc)"
1229
+ },
1230
+ "filters": {
1231
+ "type": "object",
1232
+ "description": "Additional filters as JSON"
1233
+ }
1234
+ },
1235
+ "returns": [
1236
+ "trader_address",
1237
+ "trader_address_label",
1238
+ "price_usd",
1239
+ "pnl_usd_realised",
1240
+ "pnl_usd_unrealised",
1241
+ "holding_amount",
1242
+ "position_value_usd",
1243
+ "max_balance_held",
1244
+ "max_balance_held_usd",
1245
+ "still_holding_balance_ratio",
1246
+ "netflow_amount_usd",
1247
+ "netflow_amount",
1248
+ "roi_percent_total",
1249
+ "roi_percent_realised",
1250
+ "roi_percent_unrealised",
1251
+ "pnl_usd_total",
1252
+ "nof_trades"
1253
+ ]
1254
+ }
1255
+ }
1256
+ },
1257
+ "search": {
1258
+ "description": "Search for tokens and entities across Nansen",
1259
+ "options": {
1260
+ "query": {
1261
+ "type": "string",
1262
+ "required": true,
1263
+ "description": "Search query (token name, symbol, address, or entity)"
1264
+ },
1265
+ "type": {
1266
+ "type": "string",
1267
+ "default": "any",
1268
+ "enum": [
1269
+ "token",
1270
+ "entity",
1271
+ "any"
1272
+ ],
1273
+ "description": "Result type filter"
1274
+ },
1275
+ "chain": {
1276
+ "type": "string",
1277
+ "description": "Filter by chain (e.g., ethereum, solana)"
1278
+ },
1279
+ "limit": {
1280
+ "type": "number",
1281
+ "default": 25,
1282
+ "description": "Max results (1-50)"
1283
+ }
1284
+ },
1285
+ "returns": [
1286
+ "tokens[name, symbol, chain, address, price]",
1287
+ "entities[name, tags, rank]",
1288
+ "total_results"
1289
+ ]
1290
+ },
1291
+ "perp": {
1292
+ "description": "Perpetual futures analytics",
1293
+ "subcommands": {
1294
+ "screener": {
1295
+ "description": "Screen perpetual futures contracts",
1296
+ "options": {
1297
+ "days": {
1298
+ "type": "number",
1299
+ "default": 30
1300
+ },
1301
+ "limit": {
1302
+ "type": "number"
1303
+ },
1304
+ "sort": {
1305
+ "type": "string"
1306
+ },
1307
+ "filters": {
1308
+ "type": "object"
1309
+ }
1310
+ },
1311
+ "returns": [
1312
+ "volume",
1313
+ "buy_volume",
1314
+ "sell_volume",
1315
+ "buy_sell_pressure",
1316
+ "trader_count",
1317
+ "token_symbol",
1318
+ "mark_price",
1319
+ "funding",
1320
+ "open_interest",
1321
+ "previous_price_usd"
1322
+ ]
1323
+ },
1324
+ "leaderboard": {
1325
+ "description": "Perpetual futures PnL leaderboard",
1326
+ "options": {
1327
+ "days": {
1328
+ "type": "number",
1329
+ "default": 30
1330
+ },
1331
+ "limit": {
1332
+ "type": "number"
1333
+ },
1334
+ "sort": {
1335
+ "type": "string"
1336
+ },
1337
+ "filters": {
1338
+ "type": "object"
1339
+ }
1340
+ },
1341
+ "returns": [
1342
+ "trader_address",
1343
+ "trader_address_label",
1344
+ "total_pnl",
1345
+ "roi",
1346
+ "account_value"
1347
+ ]
1348
+ }
1349
+ }
1350
+ },
1351
+ "portfolio": {
1352
+ "description": "Portfolio analytics",
1353
+ "subcommands": {
1354
+ "defi": {
1355
+ "description": "DeFi holdings across protocols",
1356
+ "options": {
1357
+ "wallet": {
1358
+ "type": "string",
1359
+ "required": true,
1360
+ "description": "Wallet address"
1361
+ }
1362
+ },
1363
+ "returns": [
1364
+ "protocol_name",
1365
+ "chain",
1366
+ "total_value_usd",
1367
+ "total_assets_usd",
1368
+ "total_debts_usd",
1369
+ "total_rewards_usd",
1370
+ "tokens"
1371
+ ]
1372
+ }
1373
+ }
1374
+ },
1375
+ "points": {
1376
+ "description": "Nansen Points analytics",
1377
+ "subcommands": {
1378
+ "leaderboard": {
1379
+ "description": "Points leaderboard",
1380
+ "options": {
1381
+ "tier": {
1382
+ "type": "string",
1383
+ "description": "Filter by tier"
1384
+ },
1385
+ "limit": {
1386
+ "type": "number"
1387
+ }
1388
+ },
1389
+ "returns": [
1390
+ "rank",
1391
+ "address",
1392
+ "address_label",
1393
+ "points",
1394
+ "tier"
1395
+ ]
1396
+ }
1397
+ }
1398
+ }
1399
+ }
1400
+ },
1401
+ "trade": {
1402
+ "description": "DEX trading commands",
1403
+ "subcommands": {
1404
+ "quote": {
1405
+ "description": "Get a DEX swap quote (chain, tokens, amount)",
1406
+ "options": {
1407
+ "chain": {
1408
+ "type": "string",
1409
+ "default": "base",
1410
+ "description": "Blockchain (solana or base)"
1411
+ },
1412
+ "from": {
1413
+ "type": "string",
1414
+ "required": true,
1415
+ "description": "Token to sell (address or symbol)"
1416
+ },
1417
+ "to": {
1418
+ "type": "string",
1419
+ "required": true,
1420
+ "description": "Token to buy (address or symbol)"
1421
+ },
1422
+ "amount": {
1423
+ "type": "string",
1424
+ "required": true,
1425
+ "description": "Amount to swap"
1426
+ },
1427
+ "wallet": {
1428
+ "type": "string",
1429
+ "description": "Wallet name (or \"walletconnect\"/\"wc\" for WalletConnect, EVM only). A configured wallet is required \u2014 run `nansen wallet create` if you haven't set one up yet."
1430
+ }
1431
+ },
1432
+ "prerequisites": [
1433
+ "A local wallet must be configured. Run: nansen wallet create"
1434
+ ]
1435
+ },
1436
+ "execute": {
1437
+ "description": "Sign and broadcast a quoted trade",
1438
+ "options": {
1439
+ "chain": {
1440
+ "type": "string",
1441
+ "default": "base",
1442
+ "description": "Blockchain (solana or base)"
1443
+ },
1444
+ "wallet": {
1445
+ "type": "string",
1446
+ "description": "Wallet name, or \"walletconnect\"/\"wc\" for WalletConnect (EVM only)"
1447
+ }
1448
+ }
1449
+ }
1450
+ }
1451
+ }
1452
+ },
1453
+ "globalOptions": {
1454
+ "pretty": {
1455
+ "type": "boolean",
1456
+ "description": "Format JSON output for readability"
1457
+ },
1458
+ "table": {
1459
+ "type": "boolean",
1460
+ "description": "Format output as human-readable table"
1461
+ },
1462
+ "fields": {
1463
+ "type": "string",
1464
+ "description": "Comma-separated list of fields to include in output"
1465
+ },
1466
+ "no-retry": {
1467
+ "type": "boolean",
1468
+ "description": "Disable automatic retry on rate limits/errors"
1469
+ },
1470
+ "retries": {
1471
+ "type": "number",
1472
+ "default": 3,
1473
+ "description": "Max retry attempts"
1474
+ },
1475
+ "format": {
1476
+ "type": "string",
1477
+ "enum": [
1478
+ "json",
1479
+ "csv"
1480
+ ],
1481
+ "description": "Output format (default: json)"
1482
+ },
1483
+ "x402-payment-signature": {
1484
+ "type": "string",
1485
+ "description": "Pre-signed x402 payment signature header"
1486
+ }
1487
+ },
1488
+ "chains": [
1489
+ "ethereum",
1490
+ "solana",
1491
+ "base",
1492
+ "bnb",
1493
+ "arbitrum",
1494
+ "polygon",
1495
+ "optimism",
1496
+ "avalanche",
1497
+ "linea",
1498
+ "scroll",
1499
+ "mantle",
1500
+ "ronin",
1501
+ "sei",
1502
+ "plasma",
1503
+ "sonic",
1504
+ "monad",
1505
+ "hyperevm",
1506
+ "iotaevm"
1507
+ ],
1508
+ "smartMoneyLabels": [
1509
+ "Fund",
1510
+ "Smart Trader",
1511
+ "30D Smart Trader",
1512
+ "90D Smart Trader",
1513
+ "180D Smart Trader",
1514
+ "Smart HL Perps Trader"
1515
+ ]
1516
+ }