API ReferenceExecution
Validate and relay a venue-specific execution
const url = 'https://exec.predictefy.com/v1/exec/hyperliquid/orders/submit';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"executionId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","apiKeyId":"example","privateKeyPem":"example","subaccount":1}'};
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/orders/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "executionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "apiKeyId": "example", "privateKeyPem": "example", "subaccount": 1 }'Requires Authorization: Bearer <api-key> with the trade scope and a unique
Idempotency-Key. executionId must identify the built order, cancel, modify, or
redemption intent being submitted; the remaining authentication/signature fields are
venue-specific.
acked means accepted and relayed, not confirmed resting or filled. Confirm venue
state with the execution status or refresh operation.
Per venue:
- Polymarket and XO submissions require the caller's own
apiKey,apiSecret, andapiPassphrasein this request; those credentials are used in-process for L2 HMAC headers and never persisted. - Gemini requires the caller's own
apiKeyandapiSecret; the server adds an epoch-seconds nonce, constructs the exact HMAC-SHA384 headers, sends one empty-body POST, and discards credentials and headers. The Gemini key MUST enableUses a time based nonce; counter-nonce keys are refused because this stateless relay could race the caller's own bot.Requires Heartbeatmust be disabled. - Kalshi requires the caller's write-only
apiKeyIdandprivateKeyPem, plus an optional non-negative integersubaccount. Stored-artifact, intent, notional, and strict-field checks finish before the RSA key is read; the server signs one fixed Kalshi request in memory, then discards credentials and generated headers without storing or logging them. - PRED submissions require the caller's own partner
apiKey,accessToken, andrefreshToken; signature recovery and stored-artifact checks finish before those fields are read, the order endpoint uses the access token, and no auth material is persisted. - Pascal submit accepts only
executionId, the base58 Ed25519signature, and the build-declaredowner; it verifies the signature over the stored permit bytes before composing the venue request. An incompatible persisted server-built artifact is rejected with a typed 409 before any venue relay. - Polymarket US submissions instead require transient
keyIdandsecretKey. After the stored artifact passes version, bounds, and notional-integrity checks, the service signs${timestamp}${METHOD}${pathname}with Ed25519, relays the exact stored body over TLS, and discards the credential. The venue signature does not cover the body, so a captured header set is replayable with another body inside the venue timestamp window; never log these headers or request bodies. - Predict.fun submissions carry the caller's own
authTokenand either a raw EOA signature over the stored digest or a Predict smart-wallet envelope (0x01+ Kernel validator + ECDSA). A smart-wallet signature is verified with the account's on-chain ERC-1271 check before any relay; a deployment that cannot run that check refuses it. - Rain is intentionally relayless: the client broadcasts its signed raw EIP-155
transaction; this endpoint only verifies chain, recovered owner, and byte-equal
{to,data,value}, then recordssignedwithout claiming a broadcast. - Hyperliquid multi-order submits are accepted only through the group's LEADER
execution id (the top-level
executionIdof the build response). One signature covers the ONE action, so ONE relay places every order; the response returns the leader plus every member inexecutions, each with its own status,venueRefand fills taken from the venue's positionally alignedstatuses[]. A follower execution id is refused with the leader's id. An alignment failure never guesses: every member takes the aggregate status and no venue reference is invented.
PRED refuses platform-key submissions for caller-owned Safe makers. Hosted PRED execution is not available; the required credentials must come from your own arrangement with PRED.
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.
Header Parameters
Section titled “Header Parameters”Caller-generated non-empty key. Build/cancel/modify keys identify newly persisted intents; a submit key identifies that relay attempt and cannot be rebound to another ID. The literal strings undefined and null are rejected with 400 VALIDATION_ERROR, so a client that stringified a missing key cannot bind or replay one. Two prefixes are RESERVED by the execution service for keys it mints itself and are rejected with 400 RESERVED_IDEMPOTENCY_KEY before anything is written: cond: (a hosted conditional order's own fire key) and dry-run: (the preview key handed to a venue integration). The match is case-sensitive.
Request Bodyrequired
Section titled “Request Bodyrequired”Submit one stored official Kalshi order or cancel artifact. Artifact compatibility, notional, intent, and strict-field checks run before credentials are read. The RSA key is used in memory for one request and is never stored or logged.
object
Caller-owned Kalshi API key id, transited for this request only.
Caller-owned RSA private key, used in memory then discarded.
Optional non-negative Kalshi subaccount routed with an order submit.
The built execution ID plus venue-specific authorization or signed artifact. The service compares the signed or authenticated facts with the server-persisted build before any relay. Pascal verifies the base58 Ed25519 signature over its stored permit bytes. Polymarket and XO consume the caller's own write-only API credential triple only in-process for L2 HMAC auth. PredictStreet first recovers the signature over the server-stored digest, then consumes one caller apiKey for the allowlisted relay. Gemini consumes the caller's write-only apiKey + apiSecret to HMAC one allowlisted request. Polymarket US consumes write-only keyId and secretKey only after version, bounds, and integrity checks, signs the stored method/path in-process, and persists no credential or auth header. PRED consumes the caller's partner key plus access/refresh JWTs only after artifact and signer verification. Credentials and generated headers are never included in submittedArtifact.
object
object
object
object
Caller-owned venue API key; for PRED it gates login and remains transit-only.
Canonical Polymarket US API key UUID; used only for this request.
Base64 32- or 64-byte Polymarket US Ed25519 secret; used and discarded.
Caller-owned PRED access JWT used for the order relay; never persisted.
Caller-owned PRED refresh JWT carried per request; never persisted.
Examplegenerated
{ "executionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "apiKeyId": "example", "privateKeyPem": "example", "subaccount": 1}Responses
Section titled “Responses”Current persisted execution and observed fills.
object
object
acked means the venue accepted/relayed the artifact; it does not by itself prove the order is resting. Use the status/refresh operations for confirmation.
object
Fixed-point whole-contract count, for example 5.00.
Fixed-point whole-cent probability strictly between zero and one.
Present only when the build requested reduceOnly; never false.
object
object
Validated client-signed or authless relayed artifact, or null before submission. Polymarket US submitted artifacts exclude keyId, secretKey, timestamp, and auth headers.
Venue fee estimate or null when no verified model is available. Polymarket estimates carry fee, unit: "usd" and takerOnly; fee is a taker fee estimate in USD. Both sides settle it in pUSD collateral on the V2 exchange, and Polymarket charges makers no fee.
The platform end-user reference supplied on build, or null when the order was not attributed. Present while the platform-accounts feature is enabled; omitted otherwise.
Present on Hyperliquid HIP-4 order builds and their persisted responses.
object
First-party HIP-4 outcome assets have no perp-DEX component.
Present only on a member of a Hyperliquid multi-order action. Every order of that action shares this id and its own groupIndex.
Zero-based position of this order in the group action. It aligns this row with the venue's positional statuses[] ack.
Venue-shaped fill events observed for this execution.
Optional credential-redacted venue metadata returned by refresh, including reasons a status stayed unchanged. This observation is not persisted.
object
ONE Hyperliquid multi-order action. The top-level fields are the LEADER execution (the submit target); executions holds every order in action order. Client-direct reserve and acknowledgment are refused for a group.
object
acked means the venue accepted/relayed the artifact; it does not by itself prove the order is resting. Use the status/refresh operations for confirmation.
object
Fixed-point whole-contract count, for example 5.00.
Fixed-point whole-cent probability strictly between zero and one.
Present only when the build requested reduceOnly; never false.
object
object
Validated client-signed or authless relayed artifact, or null before submission. Polymarket US submitted artifacts exclude keyId, secretKey, timestamp, and auth headers.
Venue fee estimate or null when no verified model is available. Polymarket estimates carry fee, unit: "usd" and takerOnly; fee is a taker fee estimate in USD. Both sides settle it in pUSD collateral on the V2 exchange, and Polymarket charges makers no fee.
The platform end-user reference supplied on build, or null when the order was not attributed. Present while the platform-accounts feature is enabled; omitted otherwise.
Present on Hyperliquid HIP-4 order builds and their persisted responses.
object
First-party HIP-4 outcome assets have no perp-DEX component.
Present only on a member of a Hyperliquid multi-order action. Every order of that action shares this id and its own groupIndex.
Zero-based position of this order in the group action. It aligns this row with the venue's positional statuses[] ack.
Sum of the member notionals; the daily-cap and reservation grain.
object
acked means the venue accepted/relayed the artifact; it does not by itself prove the order is resting. Use the status/refresh operations for confirmation.
object
Fixed-point whole-contract count, for example 5.00.
Fixed-point whole-cent probability strictly between zero and one.
Present only when the build requested reduceOnly; never false.
object
object
Validated client-signed or authless relayed artifact, or null before submission. Polymarket US submitted artifacts exclude keyId, secretKey, timestamp, and auth headers.
Venue fee estimate or null when no verified model is available. Polymarket estimates carry fee, unit: "usd" and takerOnly; fee is a taker fee estimate in USD. Both sides settle it in pUSD collateral on the V2 exchange, and Polymarket charges makers no fee.
The platform end-user reference supplied on build, or null when the order was not attributed. Present while the platform-accounts feature is enabled; omitted otherwise.
Present on Hyperliquid HIP-4 order builds and their persisted responses.
object
First-party HIP-4 outcome assets have no perp-DEX component.
Present only on a member of a Hyperliquid multi-order action. Every order of that action shares this id and its own groupIndex.
Zero-based position of this order in the group action. It aligns this row with the venue's positional statuses[] ack.
THIS order's venue fill events (submit responses only).
The leader's venue fill events (submit responses only).
Same pre-signing advisories as an ordinary Hyperliquid build.
Example
{ "success": true, "data": { "intent": "order", "status": "built", "unsigned": { "side": "bid", "time_in_force": "good_till_canceled", "self_trade_prevention_type": "taker_at_cross", "reduce_only": true }, "collateral": { "ledger": "spot" } }}Headers
Section titled “Headers”Present with value true when stored state satisfied an idempotent retry.
A missing or RESERVED Idempotency-Key, or an invalid request/body/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 request breaches a spend cap or the account lacks endpoint credits.
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. Where the venue allows closing only, GEO_BLOCKED is returned when the stored order is neither a sell nor a redemption. Cancelling an existing order is 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" }}The venue integration is absent or the execution is missing/not owned by the caller.
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 submit key is already bound to a different execution, or the persisted server-built artifact uses incompatible construction semantics, or Gemini rejected a key whose nonce or heartbeat setting is unsafe for a stateless relay, or a conditional order on this execution is still live or was closed as not_submitted, or the target execution named by a cancel has already finished. An outstanding marker bound to another client attempt returns CONDITIONAL_ATTEMPT_CONFLICT before submission is recorded or relayed.
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 failure or an unsigned artifact escaped its registered bounds.
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 runtime venue integration does not implement this lifecycle verb.
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" }}