List open orders
curl --request GET \
--url https://api.bravadotrade.com/v2/trade/orders/openimport requests
url = "https://api.bravadotrade.com/v2/trade/orders/open"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bravadotrade.com/v2/trade/orders/open', 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.bravadotrade.com/v2/trade/orders/open",
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.bravadotrade.com/v2/trade/orders/open"
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.bravadotrade.com/v2/trade/orders/open")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bravadotrade.com/v2/trade/orders/open")
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{
"orders": [
{
"order_id": "<string>",
"asset_id": "<string>",
"side": "<string>",
"status": "<string>",
"price": "<string>",
"original_size": "<string>",
"size_matched": "<string>",
"remaining_size": "<string>",
"order_type": "<string>",
"expiration": "<string>",
"created_at": 123,
"is_take_profit": true,
"is_stop_loss": true,
"is_pegged": true
}
],
"count": 123
}trade.read
List open orders
Open CLOB orders for the bound user, optionally filtered by ?token_id. is_take_profit / is_stop_loss / is_pegged reflect the partner-managed-order joins: TP at creation, SL post- trigger (executionOrderId), Pegged while the runner is actively maintaining it (current_order_id). Pre-trigger SLs are correctly excluded since they have no live CLOB order until fired.
GET
/
v2
/
trade
/
orders
/
open
List open orders
curl --request GET \
--url https://api.bravadotrade.com/v2/trade/orders/openimport requests
url = "https://api.bravadotrade.com/v2/trade/orders/open"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.bravadotrade.com/v2/trade/orders/open', 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.bravadotrade.com/v2/trade/orders/open",
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.bravadotrade.com/v2/trade/orders/open"
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.bravadotrade.com/v2/trade/orders/open")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bravadotrade.com/v2/trade/orders/open")
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{
"orders": [
{
"order_id": "<string>",
"asset_id": "<string>",
"side": "<string>",
"status": "<string>",
"price": "<string>",
"original_size": "<string>",
"size_matched": "<string>",
"remaining_size": "<string>",
"order_type": "<string>",
"expiration": "<string>",
"created_at": 123,
"is_take_profit": true,
"is_stop_loss": true,
"is_pegged": true
}
],
"count": 123
}⌘I