Demo
List demo accounts
Returns all demo trading accounts for the authenticated user, with organization and plan details.
GET
/
v1
/
user
/
demo
/
accounts
List demo accounts
curl --request GET \
--url https://api.hyperprop.com/platform/v1/user/demo/accountsimport requests
url = "https://api.hyperprop.com/platform/v1/user/demo/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hyperprop.com/platform/v1/user/demo/accounts', 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.hyperprop.com/platform/v1/user/demo/accounts",
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.hyperprop.com/platform/v1/user/demo/accounts"
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.hyperprop.com/platform/v1/user/demo/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/user/demo/accounts")
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{
"success": true,
"data": {
"accounts": [
{
"id": "<string>",
"accountNumber": "DEMO-M3X7K9P2",
"type": "evaluation",
"status": "in_progress",
"initialBalance": 50000,
"currentBalance": 51250,
"highWaterMark": 51250,
"startedAt": "<string>",
"completedAt": "<string>",
"violationReason": "<string>",
"performanceData": {},
"isDemo": true,
"organization": {
"id": "<string>",
"name": "FakePropFirm"
},
"tradingPlan": {
"id": "<string>",
"name": "50K Challenge",
"accountSize": 50000
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 3,
"limitPerOrganization": 3,
"accountsPerOrganization": {}
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}Related topics
List demo organizationsList demo organization plansImport demo accountDelete demo accountList payouts for an account⌘I
List demo accounts
curl --request GET \
--url https://api.hyperprop.com/platform/v1/user/demo/accountsimport requests
url = "https://api.hyperprop.com/platform/v1/user/demo/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hyperprop.com/platform/v1/user/demo/accounts', 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.hyperprop.com/platform/v1/user/demo/accounts",
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.hyperprop.com/platform/v1/user/demo/accounts"
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.hyperprop.com/platform/v1/user/demo/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/user/demo/accounts")
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{
"success": true,
"data": {
"accounts": [
{
"id": "<string>",
"accountNumber": "DEMO-M3X7K9P2",
"type": "evaluation",
"status": "in_progress",
"initialBalance": 50000,
"currentBalance": 51250,
"highWaterMark": 51250,
"startedAt": "<string>",
"completedAt": "<string>",
"violationReason": "<string>",
"performanceData": {},
"isDemo": true,
"organization": {
"id": "<string>",
"name": "FakePropFirm"
},
"tradingPlan": {
"id": "<string>",
"name": "50K Challenge",
"accountSize": 50000
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"total": 3,
"limitPerOrganization": 3,
"accountsPerOrganization": {}
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}