-
Notifications
You must be signed in to change notification settings - Fork 81
Description
Request
Could you please consider:
Adding a POST /redeem endpoint to the CLOB API that securely initiates a redeem through the Safe on behalf of the user?
Or providing an SDK method to handle this flow, so users don’t need to manually construct execTransaction calls?
This would greatly improve developer UX and make the SDK complete for automated trading and settlement.
Thank you for considering!
Details
Currently, it's not possible to programmatically redeem outcome tokens via the py-clob-client
SDK or CLOB HTTP API.
The Polymarket redeem.py
example shows how to call redeemPositions
directly on the Conditional Tokens contract:
txn_hash_bytes = ctf.functions.redeemPositions(
usdc_address,
HASH_ZERO,
condition_id,
[1, 2],
).transact()
However, this approach does not work in practice for real Polymarket accounts because user positions are held by a Safe (proxy multisig). The Safe must execute redeemPositions internally using execTransaction, which requires multiple owners and signatures.
This makes it impossible to redeem purely via the smart contract if you only have your EOA key.