Fetch Markets
You can request available markets on Panana using the HTTP POST endpoint:
https://app.panana.fun/api/markets
This endpoint accepts a JSON body with optional filter parameters that allow you to sort, paginate, narrow by category, search by text, and more.
Request Body Fields
| Field | Type | Description |
|---|---|---|
sortBy | enum | Sort results by either trading volume or markets ending soon. Possible values: volume, ending. |
marketStateIn | array | Filter markets by their state. Accepts one or multiple of: open, resolved, proposed. |
categoryIn | array | Filter markets by category. You may include multiple. Full list of supported categories is below. |
search | string | Full-text search across market titles. Useful for narrowing keyword-based queries. |
sortDirection | enum | Sorting direction, either ascending or descending. Use asc or desc. |
creator | string (address) | Only return markets created by a specific address. |
page | number | Page index (1-based). Defaults to page 1 if omitted. |
pageSize | number | Number of markets returned per page. Max is 200. Default is 50. |
Available Market States
| Value | Meaning |
|---|---|
open | Market is actively tradable. |
resolved | Outcome has been finalized. |
proposed | Created but not yet opened. |
Available Categories
| Category |
|---|
| PoliticsAndElections |
| GeopoliticsAndConflict |
| MacroEconomy |
| TraditionalFinance |
| CryptoAndDeFi |
| TechAndAI |
| BusinessAndStartups |
| LegalAndRegulation |
| ScienceAndSpace |
| HealthAndBiotech |
| EnergyAndClimate |
| Sports |
| EsportsAndGaming |
| EntertainmentAndMedia |
| InternetAndCulture |
| RealEstateAndHousing |
| TransportationAndMobility |
| EducationAndAcademia |
| PublicPolicyAndSociety |
| PlatformAndMeta |
Example curl Request
curl -X POST "https://app.panana.fun/api/markets" \
-H "Content-Type: application/json" \
-d '{
"sortBy": "volume",
"sortDirection": "desc",
"marketStateIn": ["open", "proposed"],
"search": "Bitcoin",
"page": 1,
"pageSize": 50
}'