A new endpoint returns total account costs and payouts received.
Detected by PropBench's daily crawl of this page.
Total account costs and payouts received
curl --request GET \ --url https://developers.myfundedperpetuals.com/v1/account-summary \ --header 'Authorization: Bearer <token>'
` import requests
url = "https://developers.myfundedperpetuals.com/v1/account-summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text) `
` const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://developers.myfundedperpetuals.com/v1/account-summary', 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://developers.myfundedperpetuals.com/v1/account-summary", 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://developers.myfundedperpetuals.com/v1/account-summary"
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://developers.myfundedperpetuals.com/v1/account-summary") .header("Authorization", "Bearer <token>") .asString();
` require 'uri' require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/account-summary")
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": { "account_count": 123, "costs": { "paid": { "cash": 123, "store_credit": 123, "total": 123 }, "refunded": { "cash": 123, "store_credit": 123, "total": 123 }, "net": { "cash": 123, "store_credit": 123, "total": 123 } }, "payouts_received": { "cash": 123, "store_credit": 123, "total": 123, "count": 123 } } }
{ "error": { "code": "<string>", "message": "<string>", "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "details": [ { "field": "<string>", "issue": "<string>" } ] } }
GET
https://developers.myfundedperpetuals.comhttps://sandbox.myfundedperpetuals.com
/
v1
/
account-summary
Total account costs and payouts received
curl --request GET \ --url https://developers.myfundedperpetuals.com/v1/account-summary \ --header 'Authorization: Bearer <token>'
` import requests
url = "https://developers.myfundedperpetuals.com/v1/account-summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text) `
` const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://developers.myfundedperpetuals.com/v1/account-summary', 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://developers.myfundedperpetuals.com/v1/account-summary", 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://developers.myfundedperpetuals.com/v1/account-summary"
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://developers.myfundedperpetuals.com/v1/account-summary") .header("Authorization", "Bearer <token>") .asString();
` require 'uri' require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/account-summary")
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": { "account_count": 123, "costs": { "paid": { "cash": 123, "store_credit": 123, "total": 123 }, "refunded": { "cash": 123, "store_credit": 123, "total": 123 }, "net": { "cash": 123, "store_credit": 123, "total": 123 } }, "payouts_received": { "cash": 123, "store_credit": 123, "total": 123, "count": 123 } } }
{ "error": { "code": "<string>", "message": "<string>", "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "details": [ { "field": "<string>", "issue": "<string>" } ] } }
bearerAuthbearerAuth & partnerKeybearerAuthbearerAuth & partnerKey
Authorization
string
header
required
API key beginning with fp_live_ (live keys, served at developers.myfundedperpetuals.com) or fp_test_ (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with 401 and a message naming the correct host. Affiliate API keys are fp_live_ keys created on the Affiliates page: they read only the /v1/affiliate endpoints and get 403 with code insufficient_scope on every other authenticated endpoint. Every other key gets the same 403 on /v1/affiliate.
Totals across your accounts.
data
object
required
Show child attributes
Saved copies: after on the Wayback Machine.