GET /traders/{address}/positions/closed: Closed Positions
curl --request GET \
--url https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closedimport requests
url = "https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed', 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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed",
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed"
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed")
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{
"trader": "<string>",
"positions": [
{}
],
"total": 123,
"limit": 123,
"offset": 123
}Trader analytics
GET /traders/{address}/positions/closed: Closed Positions
The wallet’s closed positions.
GET
/
trader-analytics
/
traders
/
{address}
/
positions
/
closed
GET /traders/{address}/positions/closed: Closed Positions
curl --request GET \
--url https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closedimport requests
url = "https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed', 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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed",
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed"
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed")
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{
"trader": "<string>",
"positions": [
{}
],
"total": 123,
"limit": 123,
"offset": 123
}Sign each request with a fresh HMAC signature. The cURL and HTTP header values below are placeholders, not reusable credentials. For runnable signing code, use request signing examples. Python examples use the signed session from that page; Node.js examples use its
bravadoFetch helper.realized_pnl of 0). A position is a token the wallet actually bought, received or sold; cash collected on a market’s redemption record without any shares moving is not listed. Response shape matches /positions.
GET https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/positions/closed
Path Parameters
Query Parameters
Number of closed positions to skip. Page with
limit and offset until positions is shorter than limit.Response
Closed positions, most recently closed first (ties by
token_id). Same row shape as /positions. mark_price_cents is the average exit price in cents: cash received over shares exited, counting sells (including merges), resolutions and redemptions only. It is null when no exit carried cash, for example a position that left only by conversion or transfer.Example
cURL
curl https://partner-api.bravadotrade.com/trader-analytics/traders/0xabc.../positions/closed \
-H "X-BRAVADO-API-KEY: $BRAVADO_API_KEY" \
-H "X-BRAVADO-TIMESTAMP: <unix-ms>" \
-H "X-BRAVADO-SIGNATURE: <signature-for-this-request>"