Closed Hedge History
curl --request GET \
--url https://api.marks.finance/api/v2/partners/hedges/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marks.finance/api/v2/partners/hedges/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marks.finance/api/v2/partners/hedges/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": [
{
"market": "USDTNGN",
"side": "sell",
"size_usd": 100000,
"collateral_usdc": 5000,
"entry_price": 1619.8,
"exit_price": 1631.2,
"opened_at": "2026-08-08T12:00:00Z",
"closed_at": "2026-08-15T00:00:00Z",
"exit_type": "closed",
"gross_pnl_usd": 703,
"net_pnl_usd": 273,
"carry_usd": -350,
"fees_usd": 80
}
],
"error": null,
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}Hedges
Closed Hedge History
Returns your closed hedges, newest first, with realized P&L, carry, and fees. Each record covers the full open-to-close lifecycle: entry and exit price, gross and net realized P&L, carry, and fees.
GET
/
hedges
/
history
Closed Hedge History
curl --request GET \
--url https://api.marks.finance/api/v2/partners/hedges/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marks.finance/api/v2/partners/hedges/history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/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://api.marks.finance/api/v2/partners/hedges/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marks.finance/api/v2/partners/hedges/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": [
{
"market": "USDTNGN",
"side": "sell",
"size_usd": 100000,
"collateral_usdc": 5000,
"entry_price": 1619.8,
"exit_price": 1631.2,
"opened_at": "2026-08-08T12:00:00Z",
"closed_at": "2026-08-15T00:00:00Z",
"exit_type": "closed",
"gross_pnl_usd": 703,
"net_pnl_usd": 273,
"carry_usd": -350,
"fees_usd": 80
}
],
"error": null,
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {}
}Authorizations
Partner API key: mk_live_... (production) or mk_test_... (sandbox).
Query Parameters
⌘I

