Open Positions
curl --request GET \
--url https://api.marks.finance/api/v2/partners/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marks.finance/api/v2/partners/positions"
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/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://api.marks.finance/api/v2/partners/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://api.marks.finance/api/v2/partners/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://api.marks.finance/api/v2/partners/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marks.finance/api/v2/partners/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": [
{
"market": "USDTNGN",
"side": "sell",
"size_usd": 100000,
"collateral_usdc": 5000,
"entry_price": 1619.8,
"mark_price": 1622,
"gross_pnl_usd": -135.9,
"accrued_carry_usd": 100,
"net_pnl_usd": -35.9,
"closing_fee_usd": 40,
"net_margin_usd": 4924.1,
"maturity_at": "2026-08-15T00:00:00Z"
}
],
"error": null,
"meta": {
"source": "onchain"
}
}{
"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": {}
}Account
Open Positions
Returns your open positions, aggregated per side (one line each for buy and sell). Each line shows entry and mark price, gross P&L (price only), accrued carry, net P&L (price plus carry), the fee to close, and net margin - what you’d reclaim if you closed now.
GET
/
positions
Open Positions
curl --request GET \
--url https://api.marks.finance/api/v2/partners/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.marks.finance/api/v2/partners/positions"
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/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://api.marks.finance/api/v2/partners/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://api.marks.finance/api/v2/partners/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://api.marks.finance/api/v2/partners/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.marks.finance/api/v2/partners/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": [
{
"market": "USDTNGN",
"side": "sell",
"size_usd": 100000,
"collateral_usdc": 5000,
"entry_price": 1619.8,
"mark_price": 1622,
"gross_pnl_usd": -135.9,
"accrued_carry_usd": 100,
"net_pnl_usd": -35.9,
"closing_fee_usd": 40,
"net_margin_usd": 4924.1,
"maturity_at": "2026-08-15T00:00:00Z"
}
],
"error": null,
"meta": {
"source": "onchain"
}
}{
"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": {}
}⌘I

