Skip to main content
Complete connection setup first. We’ll arrange test pUSD, credentials and approvals during onboarding.

Configure Your Integration

NEX is a drop-in replacement for the CLOB API.
1

Switch the Base URL

Keep your existing routes, payloads and response handling.
2

Use Sandbox Signing and Credentials

Sign for Polygon Amoy (80002) using the Amoy exchange contracts configured during onboarding. Authenticate with your sandbox trading credentials. Use an EOA or Deposit Wallet; Safe and Proxy Wallets are unavailable. EOAs need Amoy POL for their own approval transactions.
3

Check the API

Expect HTTP 200.
Set NEX_CLOB_URL to the NEX base URL above. These examples use an EOA; complete your existing authentication flow before trading. For a Deposit Wallet, retain its signing configuration.
@polymarket/clob-client-v2 is deprecated. Prefer @polymarket/client for new integrations.
Use your existing signer, configured for Amoy:
See the SDK migration guide to move an existing TypeScript or Python integration to the unified SDK.

Find a Market

Choose an outcome from a sandbox market, then read its order book.
Use the Gamma credentials we sent privately to list sandbox markets:
Choose an outcome from the response. Use its position ID for Polymarket V2 or its token ID for CTF. Set NEX_ASSET_ID to that identifier, then read its book:
See List Markets and Get Order Book for response schemas.

Place and Track an Order

Place a small limit order, read it back, then cancel the remaining quantity. A resting order can fill before you cancel it.
Use your sandbox credentials and the Amoy signing configuration validated during onboarding.
1

Place an Order

Submit a small limit order. Follow the market’s tick size and minimum order size. See Post a New Order.
2
3

Cancel the Remaining Quantity

See Manage Orders for cancellation requests.
Order reads return open orders. If it fills before you read it back, follow updates on the user feed. A match happens before settlement; follow settlement before checking your position.