Skip to content

Commit 9aa457b

Browse files
committed
update openapi file
1 parent 40ab5c3 commit 9aa457b

File tree

2 files changed

+64
-258
lines changed

2 files changed

+64
-258
lines changed

finfeedapi/prediction-markets-api-rest/spec/openapi.json

Lines changed: 32 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@
425425
"outcome_name": "Yes",
426426
"price": 0.12,
427427
"status": "Open",
428-
"creation_date": "2025-10-11T06:06:39.5053871Z",
429-
"end_date": "2026-01-14T06:06:39.5053890Z",
430428
"exchange_id": "POLYMARKET",
431429
"outcome_type": "Binary"
432430
},
@@ -436,8 +434,6 @@
436434
"outcome_name": "No",
437435
"price": 0.88,
438436
"status": "Open",
439-
"creation_date": "2025-10-11T06:06:39.5053928Z",
440-
"end_date": "2026-01-14T06:06:39.5053929Z",
441437
"exchange_id": "POLYMARKET",
442438
"outcome_type": "Binary"
443439
}
@@ -462,8 +458,6 @@
462458
"outcome_name": "Yes",
463459
"price": 0.12,
464460
"status": "Open",
465-
"creation_date": "2025-10-11T06:06:39.5053871Z",
466-
"end_date": "2026-01-14T06:06:39.5053890Z",
467461
"exchange_id": "POLYMARKET",
468462
"outcome_type": "Binary"
469463
},
@@ -473,8 +467,6 @@
473467
"outcome_name": "No",
474468
"price": 0.88,
475469
"status": "Open",
476-
"creation_date": "2025-10-11T06:06:39.5053928Z",
477-
"end_date": "2026-01-14T06:06:39.5053929Z",
478470
"exchange_id": "POLYMARKET",
479471
"outcome_type": "Binary"
480472
}
@@ -499,8 +491,6 @@
499491
"outcome_name": "Yes",
500492
"price": 0.12,
501493
"status": "Open",
502-
"creation_date": "2025-10-11T06:06:39.5053871Z",
503-
"end_date": "2026-01-14T06:06:39.5053890Z",
504494
"exchange_id": "POLYMARKET",
505495
"outcome_type": "Binary"
506496
},
@@ -510,8 +500,6 @@
510500
"outcome_name": "No",
511501
"price": 0.88,
512502
"status": "Open",
513-
"creation_date": "2025-10-11T06:06:39.5053928Z",
514-
"end_date": "2026-01-14T06:06:39.5053929Z",
515503
"exchange_id": "POLYMARKET",
516504
"outcome_type": "Binary"
517505
}
@@ -536,8 +524,6 @@
536524
"outcome_name": "Yes",
537525
"price": 0.12,
538526
"status": "Open",
539-
"creation_date": "2025-10-11T06:06:39.5053871Z",
540-
"end_date": "2026-01-14T06:06:39.5053890Z",
541527
"exchange_id": "POLYMARKET",
542528
"outcome_type": "Binary"
543529
},
@@ -547,8 +533,6 @@
547533
"outcome_name": "No",
548534
"price": 0.88,
549535
"status": "Open",
550-
"creation_date": "2025-10-11T06:06:39.5053928Z",
551-
"end_date": "2026-01-14T06:06:39.5053929Z",
552536
"exchange_id": "POLYMARKET",
553537
"outcome_type": "Binary"
554538
}
@@ -572,7 +556,7 @@
572556
"tags": [
573557
"Markets"
574558
],
575-
"summary": "Lists active markets for a specific exchange.",
559+
"summary": "Lists active market IDs for a specific exchange.\nReturns only market IDs (not full market objects) because this data is derived from recent quotes and transactions only.\nUse the /history endpoint to retrieve full market details.",
576560
"parameters": [
577561
{
578562
"name": "exchange_id",
@@ -586,7 +570,7 @@
586570
{
587571
"name": "limit",
588572
"in": "query",
589-
"description": "Maximum number of markets to return (1-1000, default 100).",
573+
"description": "Maximum number of market IDs to return (1-1000, default 100).",
590574
"schema": {
591575
"type": "integer",
592576
"format": "int32",
@@ -606,41 +590,23 @@
606590
],
607591
"responses": {
608592
"200": {
609-
"description": "A list of markets for the given exchange.",
593+
"description": "A list of active market IDs for the given exchange.",
610594
"content": {
611595
"text/plain": {
612596
"schema": {
613597
"type": "array",
614598
"items": {
615-
"$ref": "#/components/schemas/Markets.MarketModel"
599+
"type": "string"
616600
}
617601
},
618602
"examples": {
619-
"Example list": {
603+
"Example active market IDs": {
620604
"value": [
621-
{
622-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
623-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
624-
"description": "Resolves based on official reporting by the Trump Administration.",
625-
"outcome_name": "Yes",
626-
"price": 0.12,
627-
"status": "Open",
628-
"creation_date": "2025-10-11T06:06:39.5073465Z",
629-
"end_date": "2026-01-14T06:06:39.5073474Z",
630-
"exchange_id": "POLYMARKET",
631-
"outcome_type": "Binary"
632-
},
633-
{
634-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
635-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
636-
"outcome_name": "No",
637-
"price": 0.88,
638-
"status": "Open",
639-
"creation_date": "2025-10-11T06:06:39.5073488Z",
640-
"end_date": "2026-01-14T06:06:39.5073489Z",
641-
"exchange_id": "POLYMARKET",
642-
"outcome_type": "Binary"
643-
}
605+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
606+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
607+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_YES",
608+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_NO",
609+
"CRYPTO-BTC-PRICE-ABOVE-100K-BY-EOY-2025_YES"
644610
]
645611
}
646612
}
@@ -649,35 +615,17 @@
649615
"schema": {
650616
"type": "array",
651617
"items": {
652-
"$ref": "#/components/schemas/Markets.MarketModel"
618+
"type": "string"
653619
}
654620
},
655621
"examples": {
656-
"Example list": {
622+
"Example active market IDs": {
657623
"value": [
658-
{
659-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
660-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
661-
"description": "Resolves based on official reporting by the Trump Administration.",
662-
"outcome_name": "Yes",
663-
"price": 0.12,
664-
"status": "Open",
665-
"creation_date": "2025-10-11T06:06:39.5073465Z",
666-
"end_date": "2026-01-14T06:06:39.5073474Z",
667-
"exchange_id": "POLYMARKET",
668-
"outcome_type": "Binary"
669-
},
670-
{
671-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
672-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
673-
"outcome_name": "No",
674-
"price": 0.88,
675-
"status": "Open",
676-
"creation_date": "2025-10-11T06:06:39.5073488Z",
677-
"end_date": "2026-01-14T06:06:39.5073489Z",
678-
"exchange_id": "POLYMARKET",
679-
"outcome_type": "Binary"
680-
}
624+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
625+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
626+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_YES",
627+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_NO",
628+
"CRYPTO-BTC-PRICE-ABOVE-100K-BY-EOY-2025_YES"
681629
]
682630
}
683631
}
@@ -686,35 +634,17 @@
686634
"schema": {
687635
"type": "array",
688636
"items": {
689-
"$ref": "#/components/schemas/Markets.MarketModel"
637+
"type": "string"
690638
}
691639
},
692640
"examples": {
693-
"Example list": {
641+
"Example active market IDs": {
694642
"value": [
695-
{
696-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
697-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
698-
"description": "Resolves based on official reporting by the Trump Administration.",
699-
"outcome_name": "Yes",
700-
"price": 0.12,
701-
"status": "Open",
702-
"creation_date": "2025-10-11T06:06:39.5073465Z",
703-
"end_date": "2026-01-14T06:06:39.5073474Z",
704-
"exchange_id": "POLYMARKET",
705-
"outcome_type": "Binary"
706-
},
707-
{
708-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
709-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
710-
"outcome_name": "No",
711-
"price": 0.88,
712-
"status": "Open",
713-
"creation_date": "2025-10-11T06:06:39.5073488Z",
714-
"end_date": "2026-01-14T06:06:39.5073489Z",
715-
"exchange_id": "POLYMARKET",
716-
"outcome_type": "Binary"
717-
}
643+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
644+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
645+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_YES",
646+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_NO",
647+
"CRYPTO-BTC-PRICE-ABOVE-100K-BY-EOY-2025_YES"
718648
]
719649
}
720650
}
@@ -723,35 +653,17 @@
723653
"schema": {
724654
"type": "array",
725655
"items": {
726-
"$ref": "#/components/schemas/Markets.MarketModel"
656+
"type": "string"
727657
}
728658
},
729659
"examples": {
730-
"Example list": {
660+
"Example active market IDs": {
731661
"value": [
732-
{
733-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
734-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
735-
"description": "Resolves based on official reporting by the Trump Administration.",
736-
"outcome_name": "Yes",
737-
"price": 0.12,
738-
"status": "Open",
739-
"creation_date": "2025-10-11T06:06:39.5073465Z",
740-
"end_date": "2026-01-14T06:06:39.5073474Z",
741-
"exchange_id": "POLYMARKET",
742-
"outcome_type": "Binary"
743-
},
744-
{
745-
"market_id": "WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
746-
"title": "Will Trump sell 10k-25k Gold Cards in 2025?",
747-
"outcome_name": "No",
748-
"price": 0.88,
749-
"status": "Open",
750-
"creation_date": "2025-10-11T06:06:39.5073488Z",
751-
"end_date": "2026-01-14T06:06:39.5073489Z",
752-
"exchange_id": "POLYMARKET",
753-
"outcome_type": "Binary"
754-
}
662+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_YES",
663+
"WILL-TRUMP-SELL-10K-25K-GOLD-CARDS-IN-2025_NO",
664+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_YES",
665+
"NFL-PIT-CAR-2025-08-21-SPREAD-AWAY-5PT5_NO",
666+
"CRYPTO-BTC-PRICE-ABOVE-100K-BY-EOY-2025_YES"
755667
]
756668
}
757669
}
@@ -762,7 +674,7 @@
762674
"description": "Bad request - invalid limit/offset"
763675
},
764676
"404": {
765-
"description": "Market not found"
677+
"description": "No active markets found"
766678
}
767679
}
768680
}
@@ -1429,16 +1341,6 @@
14291341
"status": {
14301342
"$ref": "#/components/schemas/Markets.MarketStatus"
14311343
},
1432-
"creation_date": {
1433-
"type": "string",
1434-
"description": "The date and time when the market was created.",
1435-
"format": "date-time"
1436-
},
1437-
"end_date": {
1438-
"type": "string",
1439-
"description": "The date and time when the market is scheduled to close or resolve.",
1440-
"format": "date-time"
1441-
},
14421344
"exchange": {
14431345
"$ref": "#/components/schemas/Metadata.ExchangeModel"
14441346
},

0 commit comments

Comments
 (0)