Skip to content
Fourohtwo

x402.minara.ai/x402/strategy-studio/codegen-prompt

Returns everything an AI agent needs to write an algorithmic trading strategy in code: a code-generation system prompt plus an indexed API reference (and, on request, individual reference modules with full signatures). The target language is a TypeScript-based trading DSL modeled on TradingView PineScript — series-style market data, ta.* technical indicators, strategy.* order actions, input.* para

BaseAnswering
POSThttps://x402.minara.ai/x402/strategy-studio/codegen-prompt

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.minara.ai/x402/strategy-studio/codegen-prompt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"modules":{"type":"string","required":false,"description":"Comma-separated list of API reference modules to inline into the response. Omit to get only corePrompt + apiIndex (the index describes every module so you can choose which to pull on a follow-up call). Enum names: taBasic, taAdvanced, plotting, drawing, multiTf, examples, barstate, inputAdvanced, containers, mathUtils, gridOrders. "}}),
});
console.log(await res.json());

Example input

{
  "modules": {
    "type": "string",
    "required": false,
    "description": "Comma-separated list of API reference modules to inline into the response. Omit to get only corePrompt + apiIndex (the index describes every module so you can choose which to pull on a follow-up call). Enum names: taBasic, taAdvanced, plotting, drawing, multiTf, examples, barstate, inputAdvanced, containers, mathUtils, gridOrders. "
  }
}