List ledger entries
curl --request GET \
--url https://api.portfobit.com/api/v1/ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/ledger', 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.portfobit.com/api/v1/ledger",
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://api.portfobit.com/api/v1/ledger"
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://api.portfobit.com/api/v1/ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/v1/ledger")
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": [
{
"id": "led_01J2K8L",
"account_id": "acc_01H8XFK9A",
"venue": "binance",
"venue_entry_id": "1502190862293484880",
"entry_type": "funding",
"asset": "USDT",
"symbol": "BTC/USDT:USDT",
"venue_symbol": "BTCUSDT",
"direction": "out",
"venue_entry_type": "FUNDING_FEE",
"status": "ok",
"amount": "0.00278793",
"fee": {
"cost": "0.0001",
"currency": "USDT"
},
"before_balance": "100",
"after_balance": "99.99711207",
"venue_reference_id": "trade_987",
"occurred_at": "2026-09-10T00:00:00Z"
}
],
"meta": {
"limit": 50,
"next_cursor": null,
"has_next": false,
"activity_history_collection": {
"window_days": 7,
"status": "complete"
},
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:03:00Z"
}
}{
"error": {
"code": "plan_required",
"message": "This operation requires an active Plus or Pro subscription.",
"details": {
"feature": "activity_history",
"required_plan": "Plus",
"current_plan": "Free"
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}Activity
List ledger entries
Requires ledger:read and an active Plus or Pro subscription. This is not a tax-grade PnL statement.
GET
/
ledger
List ledger entries
curl --request GET \
--url https://api.portfobit.com/api/v1/ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/ledger', 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.portfobit.com/api/v1/ledger",
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://api.portfobit.com/api/v1/ledger"
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://api.portfobit.com/api/v1/ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/v1/ledger")
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": [
{
"id": "led_01J2K8L",
"account_id": "acc_01H8XFK9A",
"venue": "binance",
"venue_entry_id": "1502190862293484880",
"entry_type": "funding",
"asset": "USDT",
"symbol": "BTC/USDT:USDT",
"venue_symbol": "BTCUSDT",
"direction": "out",
"venue_entry_type": "FUNDING_FEE",
"status": "ok",
"amount": "0.00278793",
"fee": {
"cost": "0.0001",
"currency": "USDT"
},
"before_balance": "100",
"after_balance": "99.99711207",
"venue_reference_id": "trade_987",
"occurred_at": "2026-09-10T00:00:00Z"
}
],
"meta": {
"limit": 50,
"next_cursor": null,
"has_next": false,
"activity_history_collection": {
"window_days": 7,
"status": "complete"
},
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:03:00Z"
}
}{
"error": {
"code": "plan_required",
"message": "This operation requires an active Plus or Pro subscription.",
"details": {
"feature": "activity_history",
"required_plan": "Plus",
"current_plan": "Free"
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-08T08:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Restrict results to one connected CEX account.
CCXT unified symbol.
Venue-native market ID, for example BTCUSDT.
Inclusive RFC 3339 UTC timestamp.
Inclusive RFC 3339 UTC timestamp.
Required range:
1 <= x <= 100Cursor returned as next_cursor by a prior page.