AI trading agent: tell it LONG or SHORT and it executes across onchain markets via x402 payment.
What it does
This Questflow x402 endpoint exposes an AI trading-oriented agent swarm that accepts a simple text instruction — typically a LONG or SHORT directive — and returns the agent's response. It is part of Questflow's "AI Clone" platform, which aggregates onchain markets such as Polymarket, Pump.fun, OKX, and Opinion Labs for autonomous trading and alpha discovery.
The endpoint is live and responds with an x402 payment challenge requiring USDC on the Base network. The maximum payment per call is 500,000 units of USDC (0x8335…2913 on Base), paid to the operator's address. The request body is a simple JSON object with a single required `input` string field, and the response contains a `response` string from the agent. The maximum timeout is 1200 seconds (20 minutes), suggesting the agent may perform non-trivial work before replying.
Documentation is minimal — there is no OpenAPI spec, no dedicated docs page, and the endpoint description is terse ("Ask me LONG OR SHORT then just do it"). The Questflow landing page describes a broader platform for creating autonomous AI trading clones, but does not document this specific endpoint's behavior, risk parameters, or output format in detail. Users should exercise caution: the agent's actual trading behavior, risk controls, and what "just do it" entails are not specified.
Capabilities
Use cases
- —Sending a LONG or SHORT trading directive to an autonomous AI agent
- —Programmatic interaction with an onchain trading agent via x402 micropayment
- —Integrating autonomous market execution into an agent-to-agent workflow
Fit
Best for
- —Developers building agent-to-agent trading pipelines
- —Users wanting a simple text-command interface to an autonomous trading agent
- —Experimenting with x402-paid AI agent endpoints
Not for
- —Users needing detailed trade execution logs or transparency into agent decisions
- —Anyone requiring regulated or auditable financial trading services
- —Use cases needing deterministic, well-documented API responses
Quick start
curl -X POST https://api.questflow.ai/x402/swarm/qrn:swarm:68fb3bd9bd72982773fff32b \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402_payment_token>" \
-d '{"input": "LONG ETH"}'Example
Request
{
"input": "LONG ETH"
}Response
{
"response": "Executed LONG position on ETH across aggregated markets."
}Endpoint
Quality
The endpoint is live with a valid x402 challenge and a basic outputSchema, but documentation is essentially absent. The description is a single vague sentence, there is no OpenAPI spec, no docs page, and the actual agent behavior and risk parameters are undocumented. The example response is inferred, not sourced.
Warnings
- —No API documentation or OpenAPI spec available
- —Agent behavior and risk controls are completely undocumented — 'just do it' is the only description
- —The example response is inferred from the schema, not from an actual observed response
- —maxAmountRequired of 500000 USDC units — verify decimal precision before paying
- —Financial/trading endpoint with no disclosed risk parameters or regulatory information
- —1200-second timeout suggests potentially long-running operations
Citations
- —The endpoint returns a 402 x402 challenge requiring USDC on Base network with maxAmountRequired of 500000https://api.questflow.ai/x402/swarm/qrn:swarm:68fb3bd9bd72982773fff32b
- —Questflow aggregates Polymarket, Pump.fun, OKX, and Opinion Labs for autonomous tradinghttps://api.questflow.ai
- —The outputSchema specifies a POST with a required 'input' string field and a 'response' string outputhttps://api.questflow.ai/x402/swarm/qrn:swarm:68fb3bd9bd72982773fff32b
- —Maximum timeout is 1200 secondshttps://api.questflow.ai/x402/swarm/qrn:swarm:68fb3bd9bd72982773fff32b