Account
Get current trading account with equity and P&L
Returns the primary trading account for the authenticated user.
Includes real-time equity calculated from current_balance + unrealized P&L across all open positions, with each position marked at read time exactly as on GET /trade/positions (the same values as the WebSocket AccountUpdate). current_drawdown and drawdown_from_hwm use that equity. Also returns the linked trading rule (profit target, loss limits, max contracts), daily P&L, drawdown from high-water mark, and current lockout status if any.
Use this to display account overview, equity curve, and rule progress in your UI.
GET
/
trade
/
account
fetch
const response = await fetch('/trade/account', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data } = await response.json();
console.log('Equity:', data.equity);curl -X GET '/trade/account' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN'import requests
url = "https://api.hyperprop.com/trade/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/account",
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.hyperprop.com/trade/account"
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.hyperprop.com/trade/account")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/account")
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{
"account_number": "HP-12345",
"current_balance": 50250,
"current_drawdown": 125,
"daily_pnl": 375,
"daily_starting_balance": 50000,
"drawdown_from_hwm": 125,
"equity": 50375,
"high_water_mark": 50500,
"id": "550e8400-e29b-41d4-a716-446655440000",
"initial_balance": 50000,
"lockout": {
"active": true,
"ends_at": "2026-03-01T22:00:00Z",
"mode": "trading_day",
"reason": "Initiated by user",
"remaining_minutes": 540,
"starts_at": "2026-02-28T13:00:00Z"
},
"rule": {
"best_day_stop_pct": 0,
"consistency": 30,
"daily_drawdown": 2,
"daily_loss": 1500,
"daily_profit": 0,
"daily_profit_enforced": false,
"description": "Standard evaluation rules",
"drawdown_type": "trailing",
"id": "935ba1f8-c21a-41a5-bc1a-3f94449e80ea",
"max_contracts": 5,
"max_drawdown": 5,
"max_loss": 2500,
"max_profit": 0,
"micro_conversion_ratio": 10,
"name": "Standard 50K Rules",
"profit_target": 3000
},
"started_at": "2024-01-15T10:00:00Z",
"status": "InProgress",
"total_pnl": 250,
"unrealized_pnl": 125,
"violation_reason": null
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}Authorizations
Response
Account details with real-time equity
Trading account summary with real-time equity
Example Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_number": "HP-12345",
"initial_balance": 50000.00,
"current_balance": 50250.00,
"high_water_mark": 50500.00,
"daily_starting_balance": 50000.00,
"total_pnl": 250.00,
"unrealized_pnl": 125.00,
"equity": 50375.00,
"drawdown_from_hwm": 125.00,
"daily_pnl": 375.00,
"current_drawdown": 125.00,
"status": "InProgress",
"started_at": "2024-01-15T10:00:00Z",
"violation_reason": null,
"rule": { ... }
}
⌘I
fetch
const response = await fetch('/trade/account', {
headers: { 'Authorization': `Bearer ${token}` }
});
const { data } = await response.json();
console.log('Equity:', data.equity);curl -X GET '/trade/account' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN'import requests
url = "https://api.hyperprop.com/trade/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/trade/account",
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.hyperprop.com/trade/account"
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.hyperprop.com/trade/account")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/trade/account")
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{
"account_number": "HP-12345",
"current_balance": 50250,
"current_drawdown": 125,
"daily_pnl": 375,
"daily_starting_balance": 50000,
"drawdown_from_hwm": 125,
"equity": 50375,
"high_water_mark": 50500,
"id": "550e8400-e29b-41d4-a716-446655440000",
"initial_balance": 50000,
"lockout": {
"active": true,
"ends_at": "2026-03-01T22:00:00Z",
"mode": "trading_day",
"reason": "Initiated by user",
"remaining_minutes": 540,
"starts_at": "2026-02-28T13:00:00Z"
},
"rule": {
"best_day_stop_pct": 0,
"consistency": 30,
"daily_drawdown": 2,
"daily_loss": 1500,
"daily_profit": 0,
"daily_profit_enforced": false,
"description": "Standard evaluation rules",
"drawdown_type": "trailing",
"id": "935ba1f8-c21a-41a5-bc1a-3f94449e80ea",
"max_contracts": 5,
"max_drawdown": 5,
"max_loss": 2500,
"max_profit": 0,
"micro_conversion_ratio": 10,
"name": "Standard 50K Rules",
"profit_target": 3000
},
"started_at": "2024-01-15T10:00:00Z",
"status": "InProgress",
"total_pnl": 250,
"unrealized_pnl": 125,
"violation_reason": null
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}{
"code": "ERROR_CODE",
"data": null,
"error": "Error message describing what went wrong",
"success": false
}