Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
CDE: Predictions API
cURL
curl --request GET \ --url https://api.example.com/api/orders
import requests url = "https://api.example.com/api/orders" response = requests.get(url) print(response.text)
const options = {method: 'GET'}; fetch('https://api.example.com/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.example.com/api/orders", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", ]); $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.example.com/api/orders" req, _ := http.NewRequest("GET", url, nil) 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.example.com/api/orders") .asString();
require 'uri' require 'net/http' url = URI("https://api.example.com/api/orders") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body
{ "data": [ { "order_id": "698471892348", "instrument_id": "598471892347", "ticker": "NFL-GAMEWINNER-26NOV28LARSF-LAR", "side": "BUY", "price": "0.590000", "quantity": "25.00", "filled_quantity": "10.00", "remaining_quantity": "15.00", "time_in_force": "GTC", "client_order_id": "ord-100", "sub_account": "fund-a" } ], "cursor": "<string>" }
Returns your resting orders. Requires an active API key.
Filter by instrument ID.
Filter by sub-account.
Sort field: order_id (default), price, quantity, or remaining_quantity.
Sort direction: asc or desc. Default desc.
Maximum number of orders per page. Default 100; must be 1 to 500, otherwise 400.
Opaque cursor from the previous page's cursor field. Omit on the first request.
Open orders page. IOC, FOK, and fully filled orders are never listed.
Show child attributes
Was this page helpful?