-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.json
More file actions
876 lines (860 loc) · 39.3 KB
/
sample.json
File metadata and controls
876 lines (860 loc) · 39.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
{
"info": {
"_postman_id": "globalfi-ultra-mvc",
"name": "Global-Fi Ultra API v1",
"description": "Complete API collection for Global-Fi Ultra financial data orchestration engine. Base URL: http://localhost:4000 API Prefix: /api/v1",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:4000/api/v1",
"type": "string"
},
{
"key": "userId",
"value": "",
"type": "string"
},
{
"key": "watchlistId",
"value": "",
"type": "string"
},
{
"key": "alertId",
"value": "",
"type": "string"
}
],
"item": [
{
"name": "Health",
"description": "Health check and readiness probe endpoints",
"item": [
{
"name": "Health Check",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/health/health",
"host": ["{{baseUrl}}"],
"path": ["health", "health"]
},
"description": "Basic liveness probe - returns server status and AI feature flag"
}
},
{
"name": "Readiness Check",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/health/readiness",
"host": ["{{baseUrl}}"],
"path": ["health", "readiness"]
},
"description": "Readiness probe - checks database, Redis, and AI service connectivity"
}
}
]
},
{
"name": "Users",
"description": "User management CRUD endpoints",
"item": [
{
"name": "List Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/users?page=1&limit=20",
"host": ["{{baseUrl}}"],
"path": ["users"],
"query": [
{"key": "page", "value": "1"},
{"key": "limit", "value": "20"},
{"key": "isActive", "value": "true", "disabled": true},
{"key": "sort", "value": "-createdAt", "disabled": true}
]
}
}
},
{
"name": "Get User by ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/users/{{userId}}",
"host": ["{{baseUrl}}"],
"path": ["users", "{{userId}}"]
}
}
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"john.doe@example.com\",\n \"username\": \"johndoe\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"preferences\": {\n \"currency\": \"USD\",\n \"theme\": \"dark\",\n \"notifications\": true\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/users",
"host": ["{{baseUrl}}"],
"path": ["users"]
}
}
},
{
"name": "Update User (PUT)",
"request": {
"method": "PUT",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"john.updated@example.com\",\n \"username\": \"johndoe_updated\",\n \"firstName\": \"John\",\n \"lastName\": \"Doe Updated\",\n \"preferences\": {\n \"currency\": \"EUR\",\n \"theme\": \"light\"\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/users/{{userId}}",
"host": ["{{baseUrl}}"],
"path": ["users", "{{userId}}"]
}
}
},
{
"name": "Patch User",
"request": {
"method": "PATCH",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"firstName\": \"Jane\"\n}"
},
"url": {
"raw": "{{baseUrl}}/users/{{userId}}",
"host": ["{{baseUrl}}"],
"path": ["users", "{{userId}}"]
}
}
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/users/{{userId}}",
"host": ["{{baseUrl}}"],
"path": ["users", "{{userId}}"]
}
}
}
]
},
{
"name": "Watchlists",
"description": "Watchlist management with asset tracking",
"item": [
{
"name": "List Watchlists",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/watchlists?page=1&limit=20",
"host": ["{{baseUrl}}"],
"path": ["watchlists"],
"query": [
{"key": "page", "value": "1"},
{"key": "limit", "value": "20"},
{"key": "userId", "value": "", "disabled": true},
{"key": "isPublic", "value": "true", "disabled": true},
{"key": "sort", "value": "-createdAt", "disabled": true}
]
}
}
},
{
"name": "Get User Watchlists",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/watchlists?userId={{userId}}",
"host": ["{{baseUrl}}"],
"path": ["watchlists"],
"query": [
{"key": "userId", "value": "{{userId}}"},
{"key": "sort", "value": "-createdAt", "disabled": true}
]
},
"description": "Get all watchlists for a specific user"
}
},
{
"name": "Get Watchlist by ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/watchlists/{{watchlistId}}",
"host": ["{{baseUrl}}"],
"path": ["watchlists", "{{watchlistId}}"]
}
}
},
{
"name": "Create Watchlist",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"userId\": \"{{userId}}\",\n \"name\": \"Tech Stocks\",\n \"description\": \"Top technology stocks to watch\",\n \"isPublic\": false\n}"
},
"url": {
"raw": "{{baseUrl}}/watchlists",
"host": ["{{baseUrl}}"],
"path": ["watchlists"]
}
}
},
{
"name": "Update Watchlist",
"request": {
"method": "PUT",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Updated Watchlist Name\",\n \"description\": \"Updated description\",\n \"isPublic\": true\n}"
},
"url": {
"raw": "{{baseUrl}}/watchlists/{{watchlistId}}",
"host": ["{{baseUrl}}"],
"path": ["watchlists", "{{watchlistId}}"]
}
}
},
{
"name": "Delete Watchlist",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/watchlists/{{watchlistId}}",
"host": ["{{baseUrl}}"],
"path": ["watchlists", "{{watchlistId}}"]
}
}
},
{
"name": "Add Asset to Watchlist",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"AAPL\",\n \"notes\": \"Watching for earnings report\"\n}"
},
"url": {
"raw": "{{baseUrl}}/watchlists/{{watchlistId}}/assets",
"host": ["{{baseUrl}}"],
"path": ["watchlists", "{{watchlistId}}", "assets"]
}
}
},
{
"name": "Remove Asset from Watchlist",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/watchlists/{{watchlistId}}/assets/AAPL",
"host": ["{{baseUrl}}"],
"path": ["watchlists", "{{watchlistId}}", "assets", "AAPL"]
}
}
}
]
},
{
"name": "Alerts",
"description": "Price alert management with activate/deactivate",
"item": [
{
"name": "List Alerts",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts?page=1&limit=20",
"host": ["{{baseUrl}}"],
"path": ["alerts"],
"query": [
{"key": "page", "value": "1"},
{"key": "limit", "value": "20"},
{"key": "userId", "value": "", "disabled": true},
{"key": "symbol", "value": "", "disabled": true},
{"key": "isActive", "value": "true", "disabled": true},
{"key": "isTriggered", "value": "false", "disabled": true},
{"key": "sort", "value": "-createdAt", "disabled": true}
]
}
}
},
{
"name": "Get User Alerts",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts?userId={{userId}}",
"host": ["{{baseUrl}}"],
"path": ["alerts"],
"query": [
{"key": "userId", "value": "{{userId}}"},
{"key": "isActive", "value": "true", "disabled": true},
{"key": "sort", "value": "-createdAt", "disabled": true}
]
},
"description": "Get all alerts for a specific user"
}
},
{
"name": "Get Alert by ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts/{{alertId}}",
"host": ["{{baseUrl}}"],
"path": ["alerts", "{{alertId}}"]
}
}
},
{
"name": "Create Alert",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"userId\": \"{{userId}}\",\n \"symbol\": \"AAPL\",\n \"type\": \"price_above\",\n \"targetPrice\": 200.00,\n \"message\": \"Apple stock hit $200!\"\n}"
},
"url": {
"raw": "{{baseUrl}}/alerts",
"host": ["{{baseUrl}}"],
"path": ["alerts"]
}
}
},
{
"name": "Update Alert",
"request": {
"method": "PUT",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"targetPrice\": 250.00,\n \"message\": \"Updated alert target\"\n}"
},
"url": {
"raw": "{{baseUrl}}/alerts/{{alertId}}",
"host": ["{{baseUrl}}"],
"path": ["alerts", "{{alertId}}"]
}
}
},
{
"name": "Delete Alert",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts/{{alertId}}",
"host": ["{{baseUrl}}"],
"path": ["alerts", "{{alertId}}"]
}
}
},
{
"name": "Activate Alert",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts/{{alertId}}/activate",
"host": ["{{baseUrl}}"],
"path": ["alerts", "{{alertId}}", "activate"]
}
}
},
{
"name": "Deactivate Alert",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "{{baseUrl}}/alerts/{{alertId}}/deactivate",
"host": ["{{baseUrl}}"],
"path": ["alerts", "{{alertId}}", "deactivate"]
}
}
}
]
},
{
"name": "Assets",
"description": "Financial asset tracking and live data",
"item": [
{
"name": "Search Assets",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/assets?page=1&limit=20",
"host": ["{{baseUrl}}"],
"path": ["assets"],
"query": [
{"key": "page", "value": "1"},
{"key": "limit", "value": "20"},
{"key": "type", "value": "stock", "disabled": true},
{"key": "search", "value": "", "disabled": true},
{"key": "isActive", "value": "true", "disabled": true},
{"key": "sort", "value": "-lastUpdated", "disabled": true}
]
}
}
},
{
"name": "Get Asset by Symbol",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/assets/AAPL",
"host": ["{{baseUrl}}"],
"path": ["assets", "AAPL"]
}
}
},
{
"name": "Get Live Asset Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/assets/AAPL/live?forceRefresh=true",
"host": ["{{baseUrl}}"],
"path": ["assets", "AAPL", "live"],
"query": [
{"key": "forceRefresh", "value": "true", "disabled": true}
]
},
"description": "Fetch live financial data for a specific asset symbol. Supports both stocks and crypto."
}
},
{
"name": "Create Asset",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"AAPL\",\n \"name\": \"Apple Inc.\",\n \"type\": \"stock\",\n \"exchange\": \"NASDAQ\",\n \"description\": \"Technology company\"\n}"
},
"url": {
"raw": "{{baseUrl}}/assets",
"host": ["{{baseUrl}}"],
"path": ["assets"]
}
}
},
{
"name": "Update Asset",
"request": {
"method": "PUT",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Apple Inc. Updated\",\n \"description\": \"Updated description\"\n}"
},
"url": {
"raw": "{{baseUrl}}/assets/AAPL",
"host": ["{{baseUrl}}"],
"path": ["assets", "AAPL"]
}
}
},
{
"name": "Delete Asset",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/assets/AAPL",
"host": ["{{baseUrl}}"],
"path": ["assets", "AAPL"]
}
}
}
]
},
{
"name": "Financial Data",
"description": "Live and cached financial data orchestration",
"item": [
{
"name": "Get Live Financial Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/financial/live?symbol=IBM&crypto=bitcoin,ethereum¤cy=USD&newsQuery=finance&fredSeries=GDP",
"host": ["{{baseUrl}}"],
"path": ["financial", "live"],
"query": [
{"key": "symbol", "value": "IBM", "description": "Stock symbol (default: IBM)"},
{"key": "crypto", "value": "bitcoin,ethereum", "description": "Crypto IDs comma-separated (default: bitcoin,ethereum)"},
{"key": "currency", "value": "USD", "description": "Base currency (default: USD)"},
{"key": "newsQuery", "value": "finance", "description": "News search query (default: finance OR stock market)"},
{"key": "fredSeries", "value": "GDP", "description": "FRED series ID (default: GDP)"}
]
},
"description": "Triggers API calls to all 6 financial data providers and returns aggregated data. Broadcasts to WebSocket if successful."
}
},
{
"name": "Get Cached Financial Data",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/financial/cached",
"host": ["{{baseUrl}}"],
"path": ["financial", "cached"]
},
"description": "Returns cached data only, no API calls triggered"
}
}
]
},
{
"name": "Admin",
"description": "Administrative endpoints for cache management and metrics",
"item": [
{
"name": "Clear Cache",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{baseUrl}}/admin/cache/clear",
"host": ["{{baseUrl}}"],
"path": ["admin", "cache", "clear"]
},
"description": "Clear all Redis cache"
}
},
{
"name": "Get Metrics",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/admin/metrics?hours=24",
"host": ["{{baseUrl}}"],
"path": ["admin", "metrics"],
"query": [
{"key": "hours", "value": "24", "description": "Time period in hours (default: 24)"}
]
},
"description": "Get system metrics for specified time period"
}
},
{
"name": "Get Logs",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/admin/logs?limit=20",
"host": ["{{baseUrl}}"],
"path": ["admin", "logs"],
"query": [
{"key": "limit", "value": "20", "description": "Number of logs to retrieve (default: 20)"}
]
},
"description": "Get recent error logs from audit log repository"
}
}
]
},
{
"name": "Status",
"description": "API provider status monitoring",
"item": [
{
"name": "Get Circuit Breakers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/status/circuit-breakers",
"host": ["{{baseUrl}}"],
"path": ["status", "circuit-breakers"]
},
"description": "Returns circuit breaker states for all API clients"
}
},
{
"name": "Get Rate Limits",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/status/rate-limits",
"host": ["{{baseUrl}}"],
"path": ["status", "rate-limits"]
},
"description": "Returns rate limit usage for all external API providers"
}
}
]
},
{
"name": "AI",
"description": "AI-powered financial analysis features. Requires GROQ_API_KEY to be configured.",
"item": [
{
"name": "Analyze Sentiment",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"text\": \"Apple reported record quarterly revenue of $124.3 billion, beating analyst expectations.\",\n \"type\": \"news\"\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/sentiment",
"host": ["{{baseUrl}}"],
"path": ["ai", "sentiment"]
},
"description": "Analyze sentiment of text. Type can be 'news' or 'general'."
}
},
{
"name": "Analyze Asset",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"AAPL\",\n \"priceData\": {\n \"currentPrice\": 185.50,\n \"previousClose\": 183.20,\n \"volume\": 45000000,\n \"high52Week\": 199.62,\n \"low52Week\": 124.17\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/analyze",
"host": ["{{baseUrl}}"],
"path": ["ai", "analyze"]
},
"description": "AI-powered analysis of a single asset with price data"
}
},
{
"name": "Compare Assets",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"assets\": [\n {\n \"symbol\": \"AAPL\",\n \"price\": 185.50,\n \"marketCap\": 2900000000000\n },\n {\n \"symbol\": \"MSFT\",\n \"price\": 415.20,\n \"marketCap\": 3100000000000\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/compare",
"host": ["{{baseUrl}}"],
"path": ["ai", "compare"]
},
"description": "Compare multiple assets (minimum 2 required)"
}
},
{
"name": "Generate Recommendation",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"userProfile\": {\n \"riskTolerance\": \"moderate\",\n \"investmentGoal\": \"growth\",\n \"timeHorizon\": \"5-10 years\"\n },\n \"marketData\": [\n {\n \"symbol\": \"AAPL\",\n \"price\": 185.50\n },\n {\n \"symbol\": \"MSFT\",\n \"price\": 415.20\n },\n {\n \"symbol\": \"GOOGL\",\n \"price\": 141.80\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/recommend",
"host": ["{{baseUrl}}"],
"path": ["ai", "recommend"]
},
"description": "Generate personalized investment recommendations based on user profile"
}
},
{
"name": "Analyze Portfolio",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"holdings\": [\n {\n \"symbol\": \"AAPL\",\n \"shares\": 50,\n \"avgCost\": 150.00\n },\n {\n \"symbol\": \"MSFT\",\n \"shares\": 30,\n \"avgCost\": 380.00\n },\n {\n \"symbol\": \"GOOGL\",\n \"shares\": 20,\n \"avgCost\": 130.00\n }\n ],\n \"marketConditions\": {\n \"trend\": \"bullish\",\n \"volatility\": \"moderate\"\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/portfolio",
"host": ["{{baseUrl}}"],
"path": ["ai", "portfolio"]
},
"description": "Analyze a portfolio of holdings with market conditions"
}
},
{
"name": "Predict Price",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"AAPL\",\n \"historicalData\": [\n {\n \"date\": \"2026-02-01\",\n \"close\": 180.50\n },\n {\n \"date\": \"2026-02-02\",\n \"close\": 182.30\n },\n {\n \"date\": \"2026-02-03\",\n \"close\": 181.10\n },\n {\n \"date\": \"2026-02-04\",\n \"close\": 184.90\n },\n {\n \"date\": \"2026-02-05\",\n \"close\": 185.50\n }\n ],\n \"daysAhead\": 7\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/predict",
"host": ["{{baseUrl}}"],
"path": ["ai", "predict"]
},
"description": "Predict future price movements based on historical data (default: 7 days ahead)"
}
},
{
"name": "Explain Movement",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"symbol\": \"AAPL\",\n \"changePercent\": -3.5,\n \"recentNews\": [\n \"Apple faces antitrust lawsuit in EU\",\n \"iPhone sales decline in China\"\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/explain",
"host": ["{{baseUrl}}"],
"path": ["ai", "explain"]
},
"description": "Explain market movements with AI analysis and recent news context"
}
},
{
"name": "Analyze News Impact",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"newsArticles\": [\n {\n \"title\": \"Fed raises interest rates by 0.25%\",\n \"source\": \"Reuters\",\n \"publishedAt\": \"2026-02-14\"\n },\n {\n \"title\": \"Tech stocks rally on AI optimism\",\n \"source\": \"Bloomberg\",\n \"publishedAt\": \"2026-02-14\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/news/impact",
"host": ["{{baseUrl}}"],
"path": ["ai", "news", "impact"]
},
"description": "Analyze market impact of news articles"
}
},
{
"name": "Generate News Summary",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"newsArticles\": [\n {\n \"title\": \"S&P 500 hits all-time high\",\n \"content\": \"The S&P 500 index reached a new record high today...\"\n },\n {\n \"title\": \"Oil prices drop on OPEC+ decision\",\n \"content\": \"Crude oil prices fell sharply after OPEC+ announced...\"\n }\n ],\n \"maxLength\": 100\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/news/summary",
"host": ["{{baseUrl}}"],
"path": ["ai", "news", "summary"]
},
"description": "Generate a concise summary of multiple news articles (default max length: 100)"
}
},
{
"name": "Submit AI Job",
"request": {
"method": "POST",
"header": [
{"key": "Content-Type", "value": "application/json"}
],
"body": {
"mode": "raw",
"raw": "{\n \"jobType\": \"sentiment_analysis\",\n \"data\": {\n \"text\": \"Market conditions look favorable for tech stocks\"\n },\n \"priority\": 1\n}"
},
"url": {
"raw": "{{baseUrl}}/ai/jobs",
"host": ["{{baseUrl}}"],
"path": ["ai", "jobs"]
},
"description": "Submit an async AI job to the queue (requires job queue to be configured)"
}
},
{
"name": "Get Job Queue Stats",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/ai/jobs/stats",
"host": ["{{baseUrl}}"],
"path": ["ai", "jobs", "stats"]
},
"description": "Get statistics about the AI job queue (requires job queue to be configured)"
}
}
]
}
]
}