TypeScript SDK
import { createClient } from "@parlayx/sdk";
const client = createClient({ apiKey: process.env.PARLAYX_API_KEY! });
const balance = await client.getBalance();
console.log("cash:", balance.cash);
console.log("reserved:", balance.reserved);
console.log("positions:", balance.positions);
curl --request GET \
--url https://api.parlayx.com/v1/balances \
--header 'x-api-key: <api-key>'import requests
url = "https://api.parlayx.com/v1/balances"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.parlayx.com/v1/balances', 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.parlayx.com/v1/balances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.parlayx.com/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.parlayx.com/v1/balances")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parlayx.com/v1/balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cash": 51.5,
"reserved": 15,
"positions": 120,
"retrievedAt": "2026-06-05T18:30:00.000Z"
}{
"error": {
"message": "<string>"
}
}{
"message": "Forbidden"
}{
"error": {
"message": "<string>"
}
}Balances
Get Balance
Returns the customer’s account-state summary, in USD.
GET
/
v1
/
balances
TypeScript SDK
import { createClient } from "@parlayx/sdk";
const client = createClient({ apiKey: process.env.PARLAYX_API_KEY! });
const balance = await client.getBalance();
console.log("cash:", balance.cash);
console.log("reserved:", balance.reserved);
console.log("positions:", balance.positions);
curl --request GET \
--url https://api.parlayx.com/v1/balances \
--header 'x-api-key: <api-key>'import requests
url = "https://api.parlayx.com/v1/balances"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.parlayx.com/v1/balances', 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.parlayx.com/v1/balances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.parlayx.com/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.parlayx.com/v1/balances")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parlayx.com/v1/balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cash": 51.5,
"reserved": 15,
"positions": 120,
"retrievedAt": "2026-06-05T18:30:00.000Z"
}{
"error": {
"message": "<string>"
}
}{
"message": "Forbidden"
}{
"error": {
"message": "<string>"
}
}Authorizations
Response
Balance found
Spendable collateral the customer can deploy into a new order right now, in USD.
Example:
51.5
Collateral that is not spendable, in USD. The combination of funds still in the wallet but earmarked for a pending action (open orders, requested withdrawals/rebalances) and funds already debited and in flight (withdrawals/rebalances moving).
Example:
15
Indicative midpoint value of open prediction-market positions, in USD. Market exposure, not cash. Must be sold or redeemed before it is spendable again.
Example:
120
ISO-8601 time the account state was read; balances are read live, so this is the freshness stamp.
Example:
"2026-06-05T18:30:00.000Z"
⌘I