List copy trade history
curl --request GET \
--url https://carboncopy.inc/api/v1/portfolio/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://carboncopy.inc/api/v1/portfolio/history"
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/history', 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/history",
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/history"
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/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://carboncopy.inc/api/v1/portfolio/history")
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": "k17abc123def456",
"traderWallet": "0xAbCd1234...",
"marketId": "0x1234abcd...",
"side": "YES",
"amount": 50,
"status": "open",
"createdAt": 1741550000000,
"marketQuestion": "Will BTC exceed $100k by end of 2025?",
"price": 0.62,
"pnl": 12.5
}
],
"nextCursor": "<string>",
"hasMore": true
},
"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 copy trade history
Returns a paginated list of all copy trades. Every item includes a pnl field (0 when not yet realized). Also available at /api/v1/portfolio/trades.
GET
/
api
/
v1
/
portfolio
/
history
List copy trade history
curl --request GET \
--url https://carboncopy.inc/api/v1/portfolio/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://carboncopy.inc/api/v1/portfolio/history"
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/history', 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/history",
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/history"
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/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://carboncopy.inc/api/v1/portfolio/history")
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": "k17abc123def456",
"traderWallet": "0xAbCd1234...",
"marketId": "0x1234abcd...",
"side": "YES",
"amount": 50,
"status": "open",
"createdAt": 1741550000000,
"marketQuestion": "Will BTC exceed $100k by end of 2025?",
"price": 0.62,
"pnl": 12.5
}
],
"nextCursor": "<string>",
"hasMore": true
},
"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 — filter trades on or after this time.
Unix ms — filter trades before this time.
Was this page helpful?
⌘I

