Redeem
curl --request POST \
--url https://api.simmer.markets/api/sdk/redeem \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>"
}
'import requests
url = "https://api.simmer.markets/api/sdk/redeem"
payload = { "market_id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({market_id: '<string>'})
};
fetch('https://api.simmer.markets/api/sdk/redeem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.simmer.markets/api/sdk/redeem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'market_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.simmer.markets/api/sdk/redeem"
payload := strings.NewReader("{\n \"market_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.simmer.markets/api/sdk/redeem")
.header("Content-Type", "application/json")
.body("{\n \"market_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simmer.markets/api/sdk/redeem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"tx_hash": "<string>",
"unsigned_tx": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Trading
Redeem
Redeem winning Polymarket position for USDC.e on Polygon.
Requires API key in Authorization header. Rate limited: 10/minute per API key.
For managed wallets: signs and submits server-side, returns tx_hash. For external wallets: returns unsigned_tx for client-side signing (sign locally, then broadcast via POST /api/sdk/wallet/broadcast-tx).
POST
/
api
/
sdk
/
redeem
Redeem
curl --request POST \
--url https://api.simmer.markets/api/sdk/redeem \
--header 'Content-Type: application/json' \
--data '
{
"market_id": "<string>"
}
'import requests
url = "https://api.simmer.markets/api/sdk/redeem"
payload = { "market_id": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({market_id: '<string>'})
};
fetch('https://api.simmer.markets/api/sdk/redeem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.simmer.markets/api/sdk/redeem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'market_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.simmer.markets/api/sdk/redeem"
payload := strings.NewReader("{\n \"market_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.simmer.markets/api/sdk/redeem")
.header("Content-Type", "application/json")
.body("{\n \"market_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simmer.markets/api/sdk/redeem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"tx_hash": "<string>",
"unsigned_tx": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Managed wallet: Server signs and submits, returns
tx_hash.
External wallet: Server returns unsigned_tx for you to sign. The Python SDK handles this automatically with client.redeem().
Use
GET /api/sdk/positions and look for "redeemable": true to find positions ready to redeem.Body
application/json
⌘I
