curl --request GET \
--url https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary \
--header 'X-Api-Key: <api-key>'import requests
url = "https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary"
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.adipredictstreet.com/api/orders/{id}/fees-summary', 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/orders/{id}/fees-summary",
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.adipredictstreet.com/api/orders/{id}/fees-summary"
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.adipredictstreet.com/api/orders/{id}/fees-summary")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary")
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{
"orderId": "<string>",
"feeUsdc": "<string>",
"feeShares": "<string>",
"feeShareTokenId": "<string>",
"byRole": {
"maker": {
"feeUsdc": "<string>",
"feeShares": "<string>"
},
"taker": {
"feeUsdc": "<string>",
"feeShares": "<string>"
}
}
}Per-leg fee totals for one order (USDC + OUTCOME_TOKENS)
Returns { orderId, feeUsdc, feeShares, feeShareTokenId, byRole } — the sum of the fees charged on this wallet’s matched, settling and settled fills of this order (failed fills are not counted), split by the denomination the exchange contract charged in. USDC totals come from SELL-leg fills (collateral-side fees); OUTCOME_TOKENS totals come from BUY-leg fills (the outcome tokens withheld from what the fill delivered to your vault). byRole: { maker: { feeUsdc, feeShares }, taker: { feeUsdc, feeShares } } splits the same totals by the order’s role on each fill (maker = it rested in the book, taker = it crossed it); each pair sums to the totals above. An order that has been archived is still read. Behavioural note: same as /fills — a well-formed UUID that does not belong to the authenticated wallet (or does not exist) returns 200 { orderId, feeUsdc: "0", feeShares: "0", feeShareTokenId: null, byRole: { maker: { feeUsdc: "0", feeShares: "0" }, taker: { feeUsdc: "0", feeShares: "0" } } } rather than 404, so callers can batch-poll across an order-id list without per-id error handling.
curl --request GET \
--url https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary \
--header 'X-Api-Key: <api-key>'import requests
url = "https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary"
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.adipredictstreet.com/api/orders/{id}/fees-summary', 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/orders/{id}/fees-summary",
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.adipredictstreet.com/api/orders/{id}/fees-summary"
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.adipredictstreet.com/api/orders/{id}/fees-summary")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core-api.adipredictstreet.com/api/orders/{id}/fees-summary")
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{
"orderId": "<string>",
"feeUsdc": "<string>",
"feeShares": "<string>",
"feeShareTokenId": "<string>",
"byRole": {
"maker": {
"feeUsdc": "<string>",
"feeShares": "<string>"
},
"taker": {
"feeUsdc": "<string>",
"feeShares": "<string>"
}
}
}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.