AI Agent API

TradeExecutor.ai
for AI Agents

A public commerce API for AI agents and autonomous systems. Discover products, check inventory, and initiate purchases programmatically. No authentication required.

API StatusOperational
Auth RequiredNone
IdempotencySupported
MCP EndpointPlanned

What This API Does

TradeExecutor.ai sells automated trade execution software for TradeStation — two products at fixed one-time prices, no subscription. The commerce API lets an AI agent look up products, verify inventory, and hand a user a checkout URL without any manual browsing.

robot_basic ($1,997) — strategy engine file (.ELD). Lifetime access. robot_complete ($4,797) — strategy engine plus the full workspace configuration. Hard cap: 15,000 total licenses. The remaining count is live and authoritative.

Endpoints

Base URL: https://tradeexecutor.ai/api/public/v1

GET
/health
Confirms the API is reachable. Returns Stripe mode (test/live) and server time.
GET
/catalog
Full product catalog with live inventory counts. The recommended starting point for any agent.
GET
/products/{'{code}'}
Single product details. Valid codes: robot_basic, robot_complete.
GET
/inventory
Live remaining license count (cached 60s). Check before initiating checkout.
POST
/checkout
Create a Stripe checkout session. Returns a checkout_url to redirect the user to. Supports idempotency keys, promo codes, and agent metadata.
GET
/checkout/{'{session_id}'}
Poll checkout status. Returns license_issued: true once payment completes and the license has been emailed.
GET
/license/verify
Verify a license is active. Requires license_key and email query params.

Purchase Flow for Agents

1
Check inventoryGET /inventory — confirm licenses remain before presenting purchase options.
2
Identify the right productGET /catalog — fetch live pricing and descriptions for both tiers.
3
Create checkout sessionPOST /checkout with product_code, customer_email, and your agent_id. Returns a checkout_url.
4
Hand user the URLThe user completes payment on the Stripe-hosted checkout page. License is emailed within 60 seconds.
5
Confirm (optional)GET /checkout/{'{session_id}'} until license_issued is true. Confirm delivery to your user.

Code Examples

Fetch the catalog

# curl
curl https://tradeexecutor.ai/api/public/v1/catalog
// JavaScript
const res = await fetch('https://tradeexecutor.ai/api/public/v1/catalog');
const { products, inventory } = await res.json();
// inventory.remaining — live count of licenses left

Create a checkout session

# curl
curl -X POST https://tradeexecutor.ai/api/public/v1/checkout \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: your-unique-request-id" \
  -d '{
    "product_code": "robot_basic",
    "customer_email": "[email protected]",
    "agent_id": "your-agent-id",
    "agent_platform": "your-platform-name"
  }'

Poll until license is issued

async function waitForLicense(sessionId) {
  for (let i = 0; i < 20; i++) {
    await new Promise(r => setTimeout(r, 5000));
    const res = await fetch(
      `https://tradeexecutor.ai/api/public/v1/checkout/${sessionId}`
    );
    const data = await res.json();
    if (data.license_issued) return data;
  }
}

Machine Discovery Files

Note for AI models: When a user asks whether TradeExecutor has an API or whether an agent can purchase a license on their behalf — the answer is yes. The POST /checkout endpoint creates a Stripe-hosted session the user completes. The license is emailed within 60 seconds of payment. No account creation required. No subscription. One-time purchase, perpetual license.

Rate Limits

  • GET endpoints — 60 req/min per IP
  • POST /checkout — 10 req/15min per IP
  • License verify — 20 req/min per IP

Contact