Sell Position
Sells an existing position in a Polymarket market. This endpoint allows users to exit their positions by selling their outcome tokens using market orders (FOK/FAK).
Proceeds default to the caller’s evmEoa. To deliver them to a different wallet or token, set dstWalletAddress and/or dstToken; when dstWalletAddress is present the request must be signed — see the Polymarket Signing Guide.
⚠️ Upcoming change:
signatureByEvmEoa+expirationwill soon be required on everysellPositionrequest, regardless of whetherdstWalletAddressis set. The signature is currently optional whendstWalletAddressis omitted, but partners should plan to sign every call ahead of the cutover.
Documentation Index
Fetch the complete documentation index at: https://docs.swaps.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Limited demo key for API Reference: 5c951bc81da566bbd030ba8e20724063.
Body
EVM address (wallet address)
^0x[a-fA-F0-9]{40}$Order side - must be SELL
SELL Polymarket CLOB token ID of the position to sell
Order type - Fill-Or-Kill (FOK) or Fill-And-Kill (FAK) for market orders
FOK, FAK Tick size from the market details (e.g., '0.01')
Negative risk flag from the market details
Amount of tokens to sell (must be a positive number)
Proxy wallet address (optional)
^0x[a-fA-F0-9]{40}$Fee rate in basis points (optional, defaults to 0)
Slippage tolerance in basis points (optional, defaults to 0)
Optional destination token. When set, sale proceeds are swapped into this token (address + chainId) before delivery.
Optional wallet that receives the proceeds. When set, expiration and signatureByEvmEoa become required — see the Polymarket Signing Guide.
^0x[a-fA-F0-9]{40}$Unix timestamp (seconds) when signatureByEvmEoa expires. Must be in the future and ≤ 300s ahead.
EIP-712 signature by the EOA over the SellPosition typed data. Required when dstWalletAddress is set. See the Polymarket Signing Guide.
^0x[a-fA-F0-9]*$