Get open positions
curl --request GET \
--url https://api.orbscan.com/v1/trader/{address}/positions/open \
--header 'Authorization: <api-key>'import requests
url = "https://api.orbscan.com/v1/trader/{address}/positions/open"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.orbscan.com/v1/trader/{address}/positions/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.orbscan.com/v1/trader/{address}/positions/open",
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://api.orbscan.com/v1/trader/{address}/positions/open"
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://api.orbscan.com/v1/trader/{address}/positions/open")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbscan.com/v1/trader/{address}/positions/open")
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{
"message": "OK",
"status_code": "1",
"data": {
"items": [
{
"marketId": "3656310",
"marketSlug": "btc-updown-5m-1787031000",
"eventSlug": "btc-updown-5m-1787031000",
"conditionId": "0xa31ec3151a6791a9e74d5f5f84b1f0c00fa077212f9b63fc5582fba6bfc87cce",
"marketTitle": "Bitcoin Up or Down - August 18, 1:30AM-1:35AM ET",
"logo": "https://polymarket-upload.s3.us-east-2.amazonaws.com/BTC+fullsize.png",
"closed": false,
"tokenId": "100556202915779895602586020414430867023426296240912333256993650161520744311843",
"positionSide": "Up",
"outcomeIndex": 0,
"balance": "45",
"avgPrice": "0.175555",
"currentPrice": "0.01",
"avgExit": "0",
"totalInvested": "7.899975",
"totalBought": "45",
"value": "0.45",
"unrealizedPnl": "-7.449975",
"realizedPnl": "0",
"totalPnl": "-7.449975",
"percentPnl": "-94.303779",
"closedAt": 1787031184
}
],
"nextCursor": null
}
}{
"message": "Missing or invalid API key",
"status_code": "0",
"data": null
}Endpoints
Get Open Positions
Returns all currently open positions for a wallet — every outcome token held with a non-zero balance, along with pricing, PnL, and market metadata.
GET
/
v1
/
trader
/
{address}
/
positions
/
open
Get open positions
curl --request GET \
--url https://api.orbscan.com/v1/trader/{address}/positions/open \
--header 'Authorization: <api-key>'import requests
url = "https://api.orbscan.com/v1/trader/{address}/positions/open"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.orbscan.com/v1/trader/{address}/positions/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.orbscan.com/v1/trader/{address}/positions/open",
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://api.orbscan.com/v1/trader/{address}/positions/open"
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://api.orbscan.com/v1/trader/{address}/positions/open")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbscan.com/v1/trader/{address}/positions/open")
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{
"message": "OK",
"status_code": "1",
"data": {
"items": [
{
"marketId": "3656310",
"marketSlug": "btc-updown-5m-1787031000",
"eventSlug": "btc-updown-5m-1787031000",
"conditionId": "0xa31ec3151a6791a9e74d5f5f84b1f0c00fa077212f9b63fc5582fba6bfc87cce",
"marketTitle": "Bitcoin Up or Down - August 18, 1:30AM-1:35AM ET",
"logo": "https://polymarket-upload.s3.us-east-2.amazonaws.com/BTC+fullsize.png",
"closed": false,
"tokenId": "100556202915779895602586020414430867023426296240912333256993650161520744311843",
"positionSide": "Up",
"outcomeIndex": 0,
"balance": "45",
"avgPrice": "0.175555",
"currentPrice": "0.01",
"avgExit": "0",
"totalInvested": "7.899975",
"totalBought": "45",
"value": "0.45",
"unrealizedPnl": "-7.449975",
"realizedPnl": "0",
"totalPnl": "-7.449975",
"percentPnl": "-94.303779",
"closedAt": 1787031184
}
],
"nextCursor": null
}
}{
"message": "Missing or invalid API key",
"status_code": "0",
"data": null
}Authorizations
Pass your Orbscan API key as a Bearer token, formatted as Bearer <your_api_key>.
Path Parameters
The wallet address to query.
Example:
"0x0484e64092ba4108c2786b61e6fc052d3bf41b1a"
⌘I