List positions
curl --request GET \
--url https://carboncopy.inc/api/v1/portfolio/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://carboncopy.inc/api/v1/portfolio/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://carboncopy.inc/api/v1/portfolio/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://carboncopy.inc/api/v1/portfolio/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: Bearer <token>"
],
]);
$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://carboncopy.inc/api/v1/portfolio/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://carboncopy.inc/api/v1/portfolio/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://carboncopy.inc/api/v1/portfolio/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "0x1234abcd...",
"title": "Will BTC exceed $100k by end of 2025?",
"direction": "YES",
"shares": 12.5,
"avgPrice": 47,
"currentPrice": 52,
"positionValue": 6.5,
"pnl": 0.62,
"pnlPercentage": 9.5,
"openedAt": 1710000000000,
"eventSlug": "bitcoin-markets",
"marketSlug": "will-btc-exceed-100k-by-end-of-2025",
"copiedFromWallet": "0xAbCd1234...",
"copiedFromName": "sharptrader"
}
]
},
"meta": {
"requestId": "cf7301af-0c1e-4354-85a8-9153db69ae6d",
"timestamp": 1741600000000
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "forbidden",
"message": "This key does not have the required scope."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry after 30 seconds."
}
}Portfolio
List positions
Returns live open positions (mark-to-market). status=closed currently returns an empty set.
GET
/
api
/
v1
/
portfolio
/
positions
List positions
curl --request GET \
--url https://carboncopy.inc/api/v1/portfolio/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://carboncopy.inc/api/v1/portfolio/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://carboncopy.inc/api/v1/portfolio/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://carboncopy.inc/api/v1/portfolio/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: Bearer <token>"
],
]);
$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://carboncopy.inc/api/v1/portfolio/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://carboncopy.inc/api/v1/portfolio/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://carboncopy.inc/api/v1/portfolio/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"id": "0x1234abcd...",
"title": "Will BTC exceed $100k by end of 2025?",
"direction": "YES",
"shares": 12.5,
"avgPrice": 47,
"currentPrice": 52,
"positionValue": 6.5,
"pnl": 0.62,
"pnlPercentage": 9.5,
"openedAt": 1710000000000,
"eventSlug": "bitcoin-markets",
"marketSlug": "will-btc-exceed-100k-by-end-of-2025",
"copiedFromWallet": "0xAbCd1234...",
"copiedFromName": "sharptrader"
}
]
},
"meta": {
"requestId": "cf7301af-0c1e-4354-85a8-9153db69ae6d",
"timestamp": 1741600000000
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}{
"error": {
"code": "forbidden",
"message": "This key does not have the required scope."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry after 30 seconds."
}
}Authorizations
API key in the format cc_<64 hex characters>. Obtain from the Dashboard under Settings → API Keys.
Query Parameters
Required range:
1 <= x <= 200Unix ms timestamp lower bound for position openedAt.
Unix ms timestamp upper bound for position openedAt.
Filter positions by status.
Available options:
open, closed, all Set to true to bypass cached positions fetch.
Was this page helpful?
⌘I

