API ReferenceExecution
List available execution venues
const url = 'https://exec.predictefy.com/v1/exec/venues';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://exec.predictefy.com/v1/exec/venues \ --header 'Authorization: Bearer <token>'Requires Authorization: Bearer <api-key> with the trade scope. Lists available execution venues and their supported operations and artifact limits. A missing venue is not available for execution.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Enabled execution venues and their effective capabilities.
object
object
Present only when the deployment advertises batch cancel for this venue (currently Polymarket while its batch-cancel switch is on). A venue can serve POST /v1/exec/{venue}/orders/batch-cancel while the field stays omitted, so callers must also treat a 501 NOT_IMPLEMENTED answer as unsupported. The field is OMITTED otherwise, so a deployment without the feature answers exactly the pre-feature capability rows.
Whether the venue supports caller-signed approved-agent authorization.
Which take-profit / stop-loss modes this venue can serve. Derived, never asserted.
object
The VENUE holds the trigger itself, so no Predictefy watcher is involved.
Predictefy may replay an encrypted, already-signed submit body when the trigger fires. True only where every credential this venue requires is a client-side wallet signer and the venue declares a credential-free submit path.
Always available: Predictefy watches the book and emits conditional.triggered; you submit with your own credentials.
object
False means all build requests are rejected, even when the venue appears in this list.
Whether a caller-facing execution geofence is active or the venue is known to reject hosted submit from the relay's egress region.
object
Hosted execution services available for this product venue.
Why lanes is empty; null when a hosted service exists.
object
Request/config field or caller-controlled capability needed for this venue.
Where or how the caller obtains this credential without giving Predictefy custody.
object
Public venue-eligibility summary, or null when no verified summary is encoded.
Venue-owned site where the caller starts account onboarding.
Predictefy's venue-specific trading guide path.
Example
{ "success": true, "data": [ { "conditional": { "client": true }, "gating": { "armed": true }, "requirements": { "lanes": [ "hosted" ], "reason": "venue_api_agreement_pending", "credentials": [ { "kind": "venue_api_key" } ], "funding": { "custody": "venue" } } } ]}Missing, invalid, unknown, or revoked Predictefy API key.
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 the mandatory trade scope.
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" }}Authentication, billing, or execution storage is temporarily unavailable.
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" }}