curl --request POST \
--url https://core-api.adipredictstreet.com/api/me/positions/redeem \
--header 'Content-Type: application/json' \
--data '
{
"marketId": "PM-WC26-R16-USA-WC26-1910V2",
"outcomeIndex": 0
}
'import requests
url = "https://core-api.adipredictstreet.com/api/me/positions/redeem"
payload = {
"marketId": "PM-WC26-R16-USA-WC26-1910V2",
"outcomeIndex": 0
}
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({marketId: 'PM-WC26-R16-USA-WC26-1910V2', outcomeIndex: 0})
};
fetch('https://core-api.adipredictstreet.com/api/me/positions/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://core-api.adipredictstreet.com/api/me/positions/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([
'marketId' => 'PM-WC26-R16-USA-WC26-1910V2',
'outcomeIndex' => 0
]),
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://core-api.adipredictstreet.com/api/me/positions/redeem"
payload := strings.NewReader("{\n \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\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://core-api.adipredictstreet.com/api/me/positions/redeem")
.header("Content-Type", "application/json")
.body("{\n \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/me/positions/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 \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\n}"
response = http.request(request)
puts response.read_body{
"jobId": "4210",
"status": "pending"
}Claim a settled position without paying gas
Enqueues a redeem_positions meta-tx for the submitter to broadcast on the user’s behalf — the user pays no gas. Identify the position by (marketId, outcomeIndex) (the compound key on every Position from GET /api/me/positions); the server re-reads the authoritative position from exchange-service, verifies it is redeemable, builds the on-chain payload itself (binary conditionId+indexSets or neg-risk marketId+questionIndex+amount — client-supplied payloads are deliberately not accepted), and queues the job. Returns { jobId, status }; poll GET /api/me/positions/redeem/{jobId} until the job confirms. The credited payout then appears on the vault balance via the standard PositionRedeemed pipeline. API-key (partner) callers MUST include the owner-signed auth bundle (EIP-712 RedeemAuthorization); Privy-JWT (retail) callers omit it. Failures: 400 not_redeemable / neg_risk_not_ready / no_quantity / no_condition_id; 403 no_vault; 404 position_not_found. Rate limit: 10/60s per wallet. Requires vault:write scope and deposit tier ≥ 1.
curl --request POST \
--url https://core-api.adipredictstreet.com/api/me/positions/redeem \
--header 'Content-Type: application/json' \
--data '
{
"marketId": "PM-WC26-R16-USA-WC26-1910V2",
"outcomeIndex": 0
}
'import requests
url = "https://core-api.adipredictstreet.com/api/me/positions/redeem"
payload = {
"marketId": "PM-WC26-R16-USA-WC26-1910V2",
"outcomeIndex": 0
}
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({marketId: 'PM-WC26-R16-USA-WC26-1910V2', outcomeIndex: 0})
};
fetch('https://core-api.adipredictstreet.com/api/me/positions/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://core-api.adipredictstreet.com/api/me/positions/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([
'marketId' => 'PM-WC26-R16-USA-WC26-1910V2',
'outcomeIndex' => 0
]),
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://core-api.adipredictstreet.com/api/me/positions/redeem"
payload := strings.NewReader("{\n \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\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://core-api.adipredictstreet.com/api/me/positions/redeem")
.header("Content-Type", "application/json")
.body("{\n \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/me/positions/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 \"marketId\": \"PM-WC26-R16-USA-WC26-1910V2\",\n \"outcomeIndex\": 0\n}"
response = http.request(request)
puts response.read_body{
"jobId": "4210",
"status": "pending"
}Body
Market identifier of the position to redeem — the marketId field from the Position payload (GET /api/me/positions).
"PM-WC26-R16-USA-WC26-1910V2"
Outcome index of the held position (0 = YES, 1 = NO). For binary markets this scopes the CTF indexSets bitmask to the single side the user holds; for neg-risk it only disambiguates which Position row to read (the adapter burns both sides in one call regardless).
0 <= x <= 2550
Owner-signed EIP-712 RedeemAuthorization bundle. REQUIRED only for API-key (partner) callers — it binds the redeem to the wallet owner so a spoofable X-User-Wallet header cannot force a third-party redeem. Privy-JWT (retail) callers omit it. Signed struct: RedeemAuthorization{owner, marketId, outcomeIndex, deadline} under domain {name:'PredictStreetRedeem', version:'1', chainId}.
Show child attributes
Show child attributes
Response
Job accepted (idempotent on payload hash — an identical in-flight redeem returns the existing job).