curl --request GET \
--url https://data.gravia.trade/api/v1/users/positions \
--header 'Authorization: <api-key>'import requests
url = "https://data.gravia.trade/api/v1/users/positions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://data.gravia.trade/api/v1/users/positions', 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://data.gravia.trade/api/v1/users/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://data.gravia.trade/api/v1/users/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://data.gravia.trade/api/v1/users/positions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.gravia.trade/api/v1/users/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_address": "0x00000000000000000000000000000000000000ab",
"observed_at": "2026-07-15T06:12:34.123Z",
"positions": [
{
"market": {
"id": "42",
"slug": "sample-market",
"question": "Will the sample event happen?",
"event_slug": "sample-event",
"image": "https://example.com/sample-market.png"
},
"outcome": {
"token_id": "123456789",
"name": "Yes"
},
"quantity": 250,
"avg_entry_price": 0.42,
"current_price": 0.55,
"value_usdc": 137.5,
"realized_pnl_usdc": 12.25,
"unrealized_pnl_usdc": 32.5,
"total_pnl_usdc": 44.75,
"status": "open",
"updated_at": "2026-07-15T05:58:02.004Z"
}
],
"page": {
"has_more": false
}
}Get a user's positions
Resolves a wallet address or Polymarket username and returns a curated, paginated view of current holdings. Supplying start_date switches the response to per-position performance. Without end_date, performance runs through the current live portfolio; with end_date, it covers that inclusive closed UTC range.
curl --request GET \
--url https://data.gravia.trade/api/v1/users/positions \
--header 'Authorization: <api-key>'import requests
url = "https://data.gravia.trade/api/v1/users/positions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://data.gravia.trade/api/v1/users/positions', 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://data.gravia.trade/api/v1/users/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://data.gravia.trade/api/v1/users/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://data.gravia.trade/api/v1/users/positions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.gravia.trade/api/v1/users/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_address": "0x00000000000000000000000000000000000000ab",
"observed_at": "2026-07-15T06:12:34.123Z",
"positions": [
{
"market": {
"id": "42",
"slug": "sample-market",
"question": "Will the sample event happen?",
"event_slug": "sample-event",
"image": "https://example.com/sample-market.png"
},
"outcome": {
"token_id": "123456789",
"name": "Yes"
},
"quantity": 250,
"avg_entry_price": 0.42,
"current_price": 0.55,
"value_usdc": 137.5,
"realized_pnl_usdc": 12.25,
"unrealized_pnl_usdc": 32.5,
"total_pnl_usdc": 44.75,
"status": "open",
"updated_at": "2026-07-15T05:58:02.004Z"
}
],
"page": {
"has_more": false
}
}Authorizations
Raw database-backed API key.
Query Parameters
A 20-byte 0x wallet address, @username, or bare Polymarket username.
1 - 255Include dust and fully exited positions in live mode only.
Restrict live positions or date-range contributions by up to 20
comma-separated selectors: market slugs, 0x-prefixed condition IDs,
decimal outcome token IDs, or category:<dotted-slug>. Mixed
selectors are ORed. Exact market identifiers do not expand to
grouped markets; category parents include descendants through
inherited category membership.
5299Inclusive UTC start date for performance mode, in YYYY-MM-DD format. If end_date is omitted, the end state is live.
Optional inclusive closed UTC end date for performance mode. Must be before today and no more than 365 days after start_date.
Live mode accepts value, pnl, or updated. Date-range performance mode accepts pnl, volume, or updated.
value, pnl, volume, updated 1 <= x <= 100Opaque cursor returned by the previous page.
Response
Current positions, or performance when start_date is supplied.