|
425 | 425 | "outcome_name": "Yes", |
426 | 426 | "price": 0.12, |
427 | 427 | "status": "Open", |
428 | | - "creation_date": "2025-10-11T06:06:39.5053871Z", |
429 | | - "end_date": "2026-01-14T06:06:39.5053890Z", |
430 | 428 | "exchange_id": "POLYMARKET", |
431 | 429 | "outcome_type": "Binary" |
432 | 430 | }, |
|
436 | 434 | "outcome_name": "No", |
437 | 435 | "price": 0.88, |
438 | 436 | "status": "Open", |
439 | | - "creation_date": "2025-10-11T06:06:39.5053928Z", |
440 | | - "end_date": "2026-01-14T06:06:39.5053929Z", |
441 | 437 | "exchange_id": "POLYMARKET", |
442 | 438 | "outcome_type": "Binary" |
443 | 439 | } |
|
462 | 458 | "outcome_name": "Yes", |
463 | 459 | "price": 0.12, |
464 | 460 | "status": "Open", |
465 | | - "creation_date": "2025-10-11T06:06:39.5053871Z", |
466 | | - "end_date": "2026-01-14T06:06:39.5053890Z", |
467 | 461 | "exchange_id": "POLYMARKET", |
468 | 462 | "outcome_type": "Binary" |
469 | 463 | }, |
|
473 | 467 | "outcome_name": "No", |
474 | 468 | "price": 0.88, |
475 | 469 | "status": "Open", |
476 | | - "creation_date": "2025-10-11T06:06:39.5053928Z", |
477 | | - "end_date": "2026-01-14T06:06:39.5053929Z", |
478 | 470 | "exchange_id": "POLYMARKET", |
479 | 471 | "outcome_type": "Binary" |
480 | 472 | } |
|
499 | 491 | "outcome_name": "Yes", |
500 | 492 | "price": 0.12, |
501 | 493 | "status": "Open", |
502 | | - "creation_date": "2025-10-11T06:06:39.5053871Z", |
503 | | - "end_date": "2026-01-14T06:06:39.5053890Z", |
504 | 494 | "exchange_id": "POLYMARKET", |
505 | 495 | "outcome_type": "Binary" |
506 | 496 | }, |
|
510 | 500 | "outcome_name": "No", |
511 | 501 | "price": 0.88, |
512 | 502 | "status": "Open", |
513 | | - "creation_date": "2025-10-11T06:06:39.5053928Z", |
514 | | - "end_date": "2026-01-14T06:06:39.5053929Z", |
515 | 503 | "exchange_id": "POLYMARKET", |
516 | 504 | "outcome_type": "Binary" |
517 | 505 | } |
|
536 | 524 | "outcome_name": "Yes", |
537 | 525 | "price": 0.12, |
538 | 526 | "status": "Open", |
539 | | - "creation_date": "2025-10-11T06:06:39.5053871Z", |
540 | | - "end_date": "2026-01-14T06:06:39.5053890Z", |
541 | 527 | "exchange_id": "POLYMARKET", |
542 | 528 | "outcome_type": "Binary" |
543 | 529 | }, |
|
547 | 533 | "outcome_name": "No", |
548 | 534 | "price": 0.88, |
549 | 535 | "status": "Open", |
550 | | - "creation_date": "2025-10-11T06:06:39.5053928Z", |
551 | | - "end_date": "2026-01-14T06:06:39.5053929Z", |
552 | 536 | "exchange_id": "POLYMARKET", |
553 | 537 | "outcome_type": "Binary" |
554 | 538 | } |
|
572 | 556 | "tags": [ |
573 | 557 | "Markets" |
574 | 558 | ], |
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.", |
576 | 560 | "parameters": [ |
577 | 561 | { |
578 | 562 | "name": "exchange_id", |
|
586 | 570 | { |
587 | 571 | "name": "limit", |
588 | 572 | "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).", |
590 | 574 | "schema": { |
591 | 575 | "type": "integer", |
592 | 576 | "format": "int32", |
|
606 | 590 | ], |
607 | 591 | "responses": { |
608 | 592 | "200": { |
609 | | - "description": "A list of markets for the given exchange.", |
| 593 | + "description": "A list of active market IDs for the given exchange.", |
610 | 594 | "content": { |
611 | 595 | "text/plain": { |
612 | 596 | "schema": { |
613 | 597 | "type": "array", |
614 | 598 | "items": { |
615 | | - "$ref": "#/components/schemas/Markets.MarketModel" |
| 599 | + "type": "string" |
616 | 600 | } |
617 | 601 | }, |
618 | 602 | "examples": { |
619 | | - "Example list": { |
| 603 | + "Example active market IDs": { |
620 | 604 | "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" |
644 | 610 | ] |
645 | 611 | } |
646 | 612 | } |
|
649 | 615 | "schema": { |
650 | 616 | "type": "array", |
651 | 617 | "items": { |
652 | | - "$ref": "#/components/schemas/Markets.MarketModel" |
| 618 | + "type": "string" |
653 | 619 | } |
654 | 620 | }, |
655 | 621 | "examples": { |
656 | | - "Example list": { |
| 622 | + "Example active market IDs": { |
657 | 623 | "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" |
681 | 629 | ] |
682 | 630 | } |
683 | 631 | } |
|
686 | 634 | "schema": { |
687 | 635 | "type": "array", |
688 | 636 | "items": { |
689 | | - "$ref": "#/components/schemas/Markets.MarketModel" |
| 637 | + "type": "string" |
690 | 638 | } |
691 | 639 | }, |
692 | 640 | "examples": { |
693 | | - "Example list": { |
| 641 | + "Example active market IDs": { |
694 | 642 | "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" |
718 | 648 | ] |
719 | 649 | } |
720 | 650 | } |
|
723 | 653 | "schema": { |
724 | 654 | "type": "array", |
725 | 655 | "items": { |
726 | | - "$ref": "#/components/schemas/Markets.MarketModel" |
| 656 | + "type": "string" |
727 | 657 | } |
728 | 658 | }, |
729 | 659 | "examples": { |
730 | | - "Example list": { |
| 660 | + "Example active market IDs": { |
731 | 661 | "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" |
755 | 667 | ] |
756 | 668 | } |
757 | 669 | } |
|
762 | 674 | "description": "Bad request - invalid limit/offset" |
763 | 675 | }, |
764 | 676 | "404": { |
765 | | - "description": "Market not found" |
| 677 | + "description": "No active markets found" |
766 | 678 | } |
767 | 679 | } |
768 | 680 | } |
|
1429 | 1341 | "status": { |
1430 | 1342 | "$ref": "#/components/schemas/Markets.MarketStatus" |
1431 | 1343 | }, |
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 | | - }, |
1442 | 1344 | "exchange": { |
1443 | 1345 | "$ref": "#/components/schemas/Metadata.ExchangeModel" |
1444 | 1346 | }, |
|
0 commit comments