API ReferenceExecution
Read native balance with caller venue credentials
const url = 'https://exec.predictefy.com/v1/exec/hyperliquid/balance';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"owner":"0x2222222222222222222222222222222222222222","signer":"0x1111111111111111111111111111111111111111","accessToken":"YOUR_PRED_ACCESS_TOKEN","marketId":"0x1111111111111111111111111111111111111111111111111111111111111111","parentMarketId":"0x2222222222222222222222222222222222222222222222222222222222222222"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://exec.predictefy.com/v1/exec/hyperliquid/balance \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "owner": "0x2222222222222222222222222222222222222222", "signer": "0x1111111111111111111111111111111111111111", "accessToken": "YOUR_PRED_ACCESS_TOKEN", "marketId": "0x1111111111111111111111111111111111111111111111111111111111111111", "parentMarketId": "0x2222222222222222222222222222222222222222222222222222222222222222" }'Requires a platform API key with the trade scope and available execution at the selected venue. No Idempotency-Key is required. The JSON body carries the caller's own venue credentials and is forwarded unchanged for this read only, never logged or persisted. PRED requires owner, signer, and accessToken; use this POST form instead of GET. Venues without a native balance read answer 501 NOT_SUPPORTED.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Execution venue slug. Discover available execution venues with GET /v1/exec/venues. Settlement-only venues may appear but report order verbs false.
Request Bodyrequired
Section titled “Request Bodyrequired”object
PRED caller's Safe wallet address.
PRED EOA signer address, different from owner.
Caller-owned PRED access JWT, used only for this request.
Optional PRED child market id for the balance read.
Optional PRED parent market id for the balance read.
Examples
Caller-owned PRED JWT and wallet headers
{ "owner": "0x2222222222222222222222222222222222222222", "signer": "0x1111111111111111111111111111111111111111", "accessToken": "YOUR_PRED_ACCESS_TOKEN", "marketId": "0x1111111111111111111111111111111111111111111111111111111111111111", "parentMarketId": "0x2222222222222222222222222222222222222222222222222222222222222222"}Responses
Section titled “Responses”Venue-native balance; shape is venue-specific.
object
Venue-native balance payload when the venue supports this read; shape is venue-specific.
Example
{ "success": true}Invalid route query, body, or lifecycle state.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Predictefy authentication failed, or the venue rejected the caller credential.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The API key lacks trade scope, or the venue does not allow trading from your country. When the venue's rules block your region, building or submitting an order returns 403 GEO_BLOCKED. Cancelling an existing order and reading your orders are always allowed.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}No runtime execution service is registered for this venue.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The authenticated execution token bucket is exhausted.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Unexpected execution failure.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The venue has no native capability for this account read.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}A venue request or relay failed ambiguously.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The execution service is unavailable or the venue blocks its egress region.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}