Get positions
curl --request GET \
--url https://api.numofx.com/positionsimport requests
url = "https://api.numofx.com/positions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/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.numofx.com/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.numofx.com/positions"
req, _ := http.NewRequest("GET", url, nil)
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.numofx.com/positions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"futures": [
{
"market": "cNGN-30NOV26",
"sub_id": "1796047200",
"status": "trading",
"contracts": "-2.5",
"side": "long",
"notional_usdc": "1800",
"mark_price": "0.00072",
"mark_updated_at": "2026-10-19T13:53:27Z",
"pending_vm_cngn": "-125000",
"pending_vm_usdc": "-125"
}
],
"futures_account": {
"subaccount_id": "15",
"manager": "0x0705219a1594d5fc5dc2573da4082caf3e1b0950",
"im_surplus_usd": "500",
"mm_surplus_usd": "800"
},
"positions": [
{}
],
"accounts": [
{}
]
}{
"error": "<string>"
}Markets service
Get positions
An account’s futures positions and margin, read from chain.
GET
/
positions
Get positions
curl --request GET \
--url https://api.numofx.com/positionsimport requests
url = "https://api.numofx.com/positions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/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.numofx.com/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.numofx.com/positions"
req, _ := http.NewRequest("GET", url, nil)
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.numofx.com/positions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"futures": [
{
"market": "cNGN-30NOV26",
"sub_id": "1796047200",
"status": "trading",
"contracts": "-2.5",
"side": "long",
"notional_usdc": "1800",
"mark_price": "0.00072",
"mark_updated_at": "2026-10-19T13:53:27Z",
"pending_vm_cngn": "-125000",
"pending_vm_usdc": "-125"
}
],
"futures_account": {
"subaccount_id": "15",
"manager": "0x0705219a1594d5fc5dc2573da4082caf3e1b0950",
"im_surplus_usd": "500",
"mm_surplus_usd": "800"
},
"positions": [
{}
],
"accounts": [
{}
]
}{
"error": "<string>"
}An account’s futures positions and margin, read from chain. No authentication is needed.
Reading a position
futures has one entry per series the account holds.
contractsis signed. A long gains when the base strengthens against the dollar.notional_usdcis |contracts| × the contract size ×mark_price.statusistrading, thenclosingafterlast_trade_time, thensettled.pending_vm_usdcis variation margin accrued since the last settlement, positive when owed to you. See Variation margin. The retiredUSDC-cNGN-30NOV26reportspending_vm_cngninstead.
Margin
futures_account reports margin once for the whole account:
- Below zero
im_surplus_usd, the account cannot open or add to a position. - Below zero
mm_surplus_usd, the account is liquidated.
Unreadable fields
A value the venue could not read is left out. Treat an absent field as unknown, not as zero.Query Parameters
Response
The account's positions
Read futures and futures_account. Other keys are reserved.
Was this page helpful?

