Skip to main content

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

FieldTypeDescription
sortByenumSort results by either trading volume or markets ending soon. Possible values: volume, ending.
marketStateInarrayFilter markets by their state. Accepts one or multiple of: open, resolved, proposed.
categoryInarrayFilter markets by category. You may include multiple. Full list of supported categories is below.
searchstringFull-text search across market titles. Useful for narrowing keyword-based queries.
sortDirectionenumSorting direction, either ascending or descending. Use asc or desc.
creatorstring (address)Only return markets created by a specific address.
pagenumberPage index (1-based). Defaults to page 1 if omitted.
pageSizenumberNumber of markets returned per page. Max is 200. Default is 50.

Available Market States

ValueMeaning
openMarket is actively tradable.
resolvedOutcome has been finalized.
proposedCreated 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
}'