Skip to main content
POST
/
api
/
{exchange}
/
close
import pmxt

# API key optional — enables faster catalog-backed lookups
exchange = pmxt.Polymarket(
    pmxt_api_key="YOUR_PMXT_API_KEY",
)
result = exchange.close()
{
  "success": true,
  "error": {
    "message": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://pmxt.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

exchange
enum<string>
required

The prediction market exchange to target.

Available options:
polymarket,
kalshi,
kalshi-demo,
limitless,
probable,
baozi,
myriad,
opinion,
metaculus,
smarkets,
polymarket_us,
gemini-titan,
hyperliquid,
suibets,
mock,
router

Body

application/json
args
any[]
credentials
object

Optional authentication credentials for exchange operations.

Response

200 - application/json

Close response

success
boolean
Example:

true

error
object