curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup \
--header 'X-Api-Key: <api-key>'import requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup', 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.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"userWallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"maker": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"signer": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"marketId": "<string>",
"side": "buy",
"outcome": "<string>",
"price": "<string>",
"quantity": "<string>",
"filledQty": "<string>",
"remainingQty": "<string>",
"expiration": 123,
"feeRateBps": 123,
"orderSource": "owner_state",
"orderType": "LIMIT",
"timeInForce": "GTC",
"status": "PENDING",
"clientOrderId": "<string>",
"orderHash": "0x84a930f9e902ae9133b85e4e6c4bde91f2bdc2f0a8e1c9e7b5d6a4f3c2b1a0e9",
"avgFillPrice": "0.461000000000000000",
"totalFilledQuote": "93.663961000000000000",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Find an order by clientOrderId or orderHash
Find one of your orders by a key you hold before you have its orderId: the clientOrderId you sent (or the server-generated srv-* key a placement_unknown / placement_matched / placement_resting 503 returned in details.clientOrderId), or the order’s EIP-712 orderHash (the digest of the struct you signed). Pass exactly one of the two; neither or both answers 400 invalid_request. Returns the same Order as GET /api/orders/{id}. An unknown key, and an order of another wallet, answer 404 order_not_found. Built for recovering from a place request that timed out or answered 5xx. A 404 right after such a timeout does not prove the order was never placed: it may not be recorded yet. Re-sending the identical request under the same clientOrderId stays the authoritative answer; never sign a new order until you know the first one was not placed.
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup \
--header 'X-Api-Key: <api-key>'import requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup', 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.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/orders/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"userWallet": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"maker": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"signer": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3",
"marketId": "<string>",
"side": "buy",
"outcome": "<string>",
"price": "<string>",
"quantity": "<string>",
"filledQty": "<string>",
"remainingQty": "<string>",
"expiration": 123,
"feeRateBps": 123,
"orderSource": "owner_state",
"orderType": "LIMIT",
"timeInForce": "GTC",
"status": "PENDING",
"clientOrderId": "<string>",
"orderHash": "0x84a930f9e902ae9133b85e4e6c4bde91f2bdc2f0a8e1c9e7b5d6a4f3c2b1a0e9",
"avgFillPrice": "0.461000000000000000",
"totalFilledQuote": "93.663961000000000000",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Authorizations
Partner / integrator key — format ps_live_<keyId>_<secret>. Partner keys are issued by PredictStreet; a user can also create keys bound to their own wallet from their account settings in the web app. Never ship to a browser. multi_wallet partners must additionally send X-User-Wallet: 0x<40-hex> on every authenticated request to declare the acting wallet. See the API keys guide for scope taxonomy, partner kinds, rate limits, and rotation procedure.
Headers
Required for multi_wallet partners on every authenticated request; ignored for single_wallet. Declares the acting end-user wallet for this request — drives KYC checks, balances/positions/orders attribution, rate-limit buckets, and audit. Lower-cased server-side. Missing on a multi_wallet key → 401 api_key_user_wallet_required; malformed → 401 api_key_user_wallet_invalid. The on-chain CTFExchange/Vault contracts still verify EIP-712 signer ↔ vault binding, so loosening API-layer attribution is safe by construction.
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb3"
Query Parameters
Response
OK
EIP-712 digest of the signed order, lowercase 0x + 64 hex. The same hash the exchange contract emits in OrderFilled, and one you can compute before sending; look an order up by it with GET /api/orders/lookup?orderHash=. null only on a record that never stored one.
"0x84a930f9e902ae9133b85e4e6c4bde91f2bdc2f0a8e1c9e7b5d6a4f3c2b1a0e9"
Average price per share the order filled at (decimal string, USDC), weighted by the shares of each of its settled and settlement-pending fills, in the order's own outcome and side. On a MARKET order price is the signed limit (the slippage cap), not what was paid: read this field for the executed price. Parse it as a decimal number: it can carry trailing zeros and many decimal places. null while the order has no such fill; it can briefly be null beside a non-zero filledQty (a fill counted before its trade is recorded or submitted for settlement).
"0.461000000000000000"
USDC notional of the order's settled and settlement-pending fills, taker and maker legs alike: what the order paid on a BUY, or received on a SELL, before fees. A decimal string: parse it as a decimal number, as it can carry trailing zeros and, on fills priced from a signed price, more than 6 decimal places. On a MINT taker leg (a BUY crossed with a BUY of the other outcome) it is the net amount after the on-chain refund. Use it as the order's total rather than avgFillPrice × filledQty. Since RND-2590 it also counts fills where the order was the resting maker; before, an order filled partly as maker showed only its taker part, and one filled only as maker answered null. null while the order has no such fill; like avgFillPrice, it trails filledQty while a fill is not yet submitted for settlement.
"93.663961000000000000"