Orders
List Orders
Returns orders for the authenticated user on the specified platform.
GET
/
v1
/
api
/
orders
List orders
curl --request GET \
--url https://api.dotprediction.io/v1/api/orders \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dotprediction.io/v1/api/orders"
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://api.dotprediction.io/v1/api/orders', 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.dotprediction.io/v1/api/orders",
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://api.dotprediction.io/v1/api/orders"
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://api.dotprediction.io/v1/api/orders")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dotprediction.io/v1/api/orders")
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{
"orders": [
{
"order_id": "<string>",
"platform": "<string>",
"market_id": "<string>",
"outcome": "<string>",
"price": 123,
"size": 123,
"filled_size": 123,
"remaining_size": 123,
"average_fill_price": 123,
"status": "<string>",
"time_in_force": "<string>",
"client_order_id": "<string>",
"fees": {
"maker_fee": 123,
"taker_fee": 123,
"total_fee": 123
},
"created_at": "<string>",
"updated_at": "<string>",
"expiration": "<string>"
}
],
"pagination": {
"total": 123,
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
},
"meta": {
"platform": "<string>",
"request_time_ms": 123,
"idempotent_replay": true
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}Authorizations
API key for authentication. Generate one via the dashboard or the /v1/api/auth/api-keys endpoint.
Query Parameters
The platform to query orders from.
Available options:
kalshi, polymarket, limitless Credential ID to use. Defaults to your stored credential for the platform.
Filter by market ID.
Filter by order status.
Max results to return (default 50, max 200).
Required range:
x <= 200Pagination cursor from a previous response.
⌘I
List orders
curl --request GET \
--url https://api.dotprediction.io/v1/api/orders \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dotprediction.io/v1/api/orders"
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://api.dotprediction.io/v1/api/orders', 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.dotprediction.io/v1/api/orders",
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://api.dotprediction.io/v1/api/orders"
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://api.dotprediction.io/v1/api/orders")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dotprediction.io/v1/api/orders")
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{
"orders": [
{
"order_id": "<string>",
"platform": "<string>",
"market_id": "<string>",
"outcome": "<string>",
"price": 123,
"size": 123,
"filled_size": 123,
"remaining_size": 123,
"average_fill_price": 123,
"status": "<string>",
"time_in_force": "<string>",
"client_order_id": "<string>",
"fees": {
"maker_fee": 123,
"taker_fee": 123,
"total_fee": 123
},
"created_at": "<string>",
"updated_at": "<string>",
"expiration": "<string>"
}
],
"pagination": {
"total": 123,
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
},
"meta": {
"platform": "<string>",
"request_time_ms": 123,
"idempotent_replay": true
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}