Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.predexon.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Predexon Trading API manages wallets on behalf of accounts. Instead of handling private keys, gas, or transaction signing, the API handles all of that automatically.

Simplified Integration

No wallet SDKs or key management needed in your application

No Gas Management

All transaction fees are handled by the platform

Secure Key Management

Private keys are securely managed — you never handle them

How It Works

  1. Your application calls the Predexon Trading API
  2. Predexon API manages account wallets and executes trades
  3. Venues settle transactions on their respective chains (Polygon for Polymarket, BSC for Predict and Opinion, Base for Limitless, HyperCore for Hyperliquid)

Wallet Management

Accounts are created empty on the /api/accounts path. Each venue must be explicitly enabled via POST /api/accounts/{accountId}/enable, which provisions a wallet, funds gas, and sets token approvals.
VenueChainCollateral
PolymarketPolygonUSDC.e
Predict.funBSCUSDT (BEP-20)
OpinionBSCUSDT (BEP-20)
LimitlessBaseUSDC (native)
HyperliquidHyperCoreUSDC
Fetch the on-chain wallet address via Get Account — each enabled venue carries an address once it reaches status: "active".
The legacy /api/users path auto-provisions Polymarket and Predict wallets at create time and returns them in polymarketWalletAddress / predictWalletAddress fields. See the legacy reference.

Key Security

Private keys are managed by Turnkey, a secure, hardware-backed key management infrastructure:
  • Predexon never has access to private keys — keys are generated and stored in Turnkey’s secure enclaves
  • Hardware-backed security — keys never leave the enclaves
  • No key management in your app — all signing happens server-side

Market Identification

On the accounts path, every order or redeem request identifies a market with either:
  • predexonId — a cross-venue stable identifier (format: {venue}:{primaryId}[:{outcome}]), resolved server-side against Data API metadata.
  • market bag — venue-specific fields (tokenId, marketId, ticker, outcome, assetId, marketSlug). Required fields differ by venue — see the Place Order reference.

Order Execution

All venues use an orderbook model with limit and market orders. Order types:
  • Limit orders — rest on the orderbook at a specific price until matched.
  • Market orders — execute immediately at the best available price.
Execution model:
  • Orders can be partially filled.
  • Open orders can be cancelled.
  • Response status is normalized across venues: open, filled, cancelled, expired, pending, failed.
Fees and gas mechanics differ by venue — see Fees & Monetization for the per-venue fee comparison and partner-fee setup.

Position Lifecycle

1

Active

Market is still trading. You can sell the position or monitor P&L.
2

Resolved

Market has settled. Check result to see if the position won or lost.
3

Redeemable

Winning positions are redeemed via Redeem Position for payout in the venue’s stablecoin.

Security Model

Each API key can only access accounts it created. Attempting to access another API key’s account returns 403 Forbidden.

Comparison to Self-Custody

FeaturePredexonSelf-Custody
Key managementHandled by APIYou manage
Transaction feesHandled by the platformYou pay
Integration complexityREST API callsWallet SDKs + signing
Multi-chain supportUnified APISeparate integrations
WithdrawalAPI callDirect blockchain tx

Best Practices

1

Store account IDs

Save the accountId returned by Create Account — it’s required for every subsequent call.
2

Enable venues explicitly

Call Enable Venue for each venue the account should trade on, and poll Get Account until the venue’s status is active.
3

Check balance before orders

Always verify available funds with Get Balance before placing orders.
4

Handle errors gracefully

Retry 5xx and 503 responses with exponential backoff. Do not retry 4xx.
5

Withdraw before deleting

Always withdraw funds before deleting an account — the action is irreversible.

Next Steps

Funding & Withdrawals

Deposit funds into your trading wallet

Placing Trades

Order types, venues, and the full trading workflow

Fees & Monetization

Set up partner fees to earn revenue