QuantifyMe Strategy API

Generate Python strategy code from natural language.

GitHub OpenAPI

Operations 3

POST /api/v1/generate Generate Python strategy code from natural language #
POST /api/v1/generate/from-template Generate strategy code from a curated template with optional overrides #
POST /api/v1/generate/stream Stream strategy code generation token-by-token (SSE) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/quantifyme-ai:quantifyme-ai-strategy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

quantifyme-ai-strategy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quantifyme Ai Strategy API
  version: 1.0.0
  contact:
    email: support@quantifyme.ai
    name: QuantifyMe
    url: https://quantifyme.ai
  license:
    name: MIT
  description: 'Operations tagged Strategy across 2 of this provider''s published API definitions: quantifyme-ai.json, quantifyme-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Production
  url: https://api.quantifyme.ai
security:
- ApiKeyAuth: []
tags:
- description: Generate Python strategy code from natural language.
  name: Strategy
paths:
  /api/v1/generate:
    post:
      operationId: generateStrategy
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResponse'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      summary: Generate Python strategy code from natural language
      tags:
      - Strategy
    servers:
    - description: Production
      url: https://api.quantifyme.ai
  /api/v1/generate/from-template:
    post:
      operationId: generateFromTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FromTemplateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateResponse'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      summary: Generate strategy code from a curated template with optional overrides
      tags:
      - Strategy
    servers:
    - description: Production
      url: https://api.quantifyme.ai
  /api/v1/generate/stream:
    post:
      operationId: generateStrategyStream
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateRequest'
        required: true
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/OneShotSseEvents'
          description: 'SSE stream. Events: `token` `{text}`, `done` `{code}`, `error` `{error}`. — Server-Sent Events stream. Each message is `event: <type>\ndata: <json>\n\n`.'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      summary: Stream strategy code generation token-by-token (SSE)
      tags:
      - Strategy
    servers:
    - description: Production
      url: https://api.quantifyme.ai
components:
  schemas:
    OneShotSseEvents:
      description: Server-Sent Events stream (text/event-stream). See `description` for event types.
      properties:
        _event_done:
          description: 'Event: done. Terminal success.'
          properties:
            channels:
              items:
                type: string
              type: array
            live_url:
              type: string
            model:
              type: string
            stem:
              type: string
          type: object
        _event_error:
          description: 'Event: error. Terminal failure: `code` is a fixed word for a program, `message` the sentence for the user; a credit refusal adds credits_remaining, credits_required and top_up_url, a cap or rate refusal retry_after_s.'
          properties:
            code:
              type: string
            error:
              type: string
            message:
              type: string
          type: object
        _event_step:
          description: 'Event: step. Coarse progress between phases.'
          properties:
            msg:
              type: string
            pct:
              type: integer
            stage:
              enum:
              - generate
              - train
              - deploy
              type: string
          type: object
        _event_token:
          description: 'Event: token. Streamed during code generation.'
          properties:
            text:
              type: string
          type: object
      type: object
    ErrorResponse:
      properties:
        code:
          description: A fixed word a program can branch on (insufficient_credits, daily_cap, rate_limited, free_tier_exhausted, free_model_limit, prompt_too_long, unsupported_model, ...); a few auth answers still carry the HTTP status number.
          example: insufficient_credits
          type:
          - string
          - integer
        credits_remaining:
          description: 'On ''Insufficient credits'': the account balance.'
          type: integer
        credits_required:
          description: 'On ''Insufficient credits'': the estimated credits the call needs before it will start (depends on claude_model).'
          type: integer
        error:
          example: Invalid or missing API key
          type: string
        message:
          description: 'The sentence to show the user: what was refused, the numbers, and what to do next.'
          type: string
        request_id:
          description: 'On code ''internal_error'' (an unexpected server error): the reference to quote to support (also the X-QM-Request-Id header). `error` and `message` are then a fixed sentence; the detail is in the server log under this id.'
          type: string
        retry_after_s:
          description: 'On a cap or rate refusal: seconds until a retry can pass (also the Retry-After header).'
          type: integer
        top_up_url:
          description: 'On ''Insufficient credits'': the Billing page.'
          type: string
      required:
      - error
      type: object
    GenerateRequest:
      description: 'Each text field (description, features, signals, model, optimization, risk, risk_function) holds at most 4,000 characters, and all of them together at most 8,000. A longer request is refused with 400 {error: prompt_too_long, field, limit, length, message} before anything is charged.'
      properties:
        api_key:
          description: Your API key, if you cannot set the X-API-Key header. Agents that mint a key at runtime (e.g. a ChatGPT Action calling POST /api/v1/key/trial) should pass the returned `api_key` here on every subsequent call. The X-API-Key header wins when both are present.
          type: string
        aux_feeds:
          $ref: '#/components/schemas/AuxFeeds'
        claude_model:
          enum:
          - sonnet
          - opus
          - haiku
          type: string
        description:
          description: Optional one-line natural-language summary; Claude treats it as PRIMARY USER REQUEST.
          maxLength: 4000
          type: string
        end_date:
          example: '2026-04-01'
          format: date
          type: string
        features:
          example: RSI 14, Bollinger Bands
          maxLength: 4000
          type: string
        indicators:
          $ref: '#/components/schemas/Indicators'
        model:
          example: Random Forest
          maxLength: 4000
          type: string
        optimization:
          maxLength: 4000
          type: string
        pos_rules:
          $ref: '#/components/schemas/PosRules'
        risk:
          example: 0.5% stop loss
          maxLength: 4000
          type: string
        risk_function:
          maxLength: 4000
          type: string
        signals:
          example: Buy when RSI < 30
          maxLength: 4000
          type: string
        start_date:
          example: '2025-01-01'
          format: date
          type: string
        symbol:
          default: EURUSD
          description: Forex pair to train/backtest on.
          enum:
          - EURUSD
          - GBPUSD
          - USDJPY
          - USDCHF
          - AUDUSD
          - NZDUSD
          - USDCAD
          - BTCUSD
          type: string
        timeframe:
          default: 15min
          description: OHLC bar size.
          enum:
          - 1min
          - 5min
          - 15min
          - 1h
          type: string
        train_split:
          example: 0.7
          type: number
      type: object
    FromTemplateRequest:
      description: 'Each text field (description, features, signals, model, optimization, risk, risk_function) holds at most 4,000 characters, and all of them together at most 8,000. A longer request is refused with 400 {error: prompt_too_long, field, limit, length, message} before anything is charged.'
      properties:
        aux_feeds:
          $ref: '#/components/schemas/AuxFeeds'
        claude_model:
          type: string
        end_date:
          format: date
          type: string
        indicators:
          $ref: '#/components/schemas/Indicators'
        model:
          maxLength: 4000
          type: string
        pos_rules:
          $ref: '#/components/schemas/PosRules'
        start_date:
          format: date
          type: string
        symbol:
          default: EURUSD
          enum:
          - EURUSD
          - GBPUSD
          - USDJPY
          - USDCHF
          - AUDUSD
          - NZDUSD
          - USDCAD
          - BTCUSD
          type: string
        template:
          enum:
          - macd_momentum
          - mean_reversion
          - trend_following
          - scalper
          - conservative_long
          type: string
        timeframe:
          default: 15min
          enum:
          - 1min
          - 5min
          - 15min
          - 1h
          type: string
        train_split:
          type: number
      required:
      - template
      type: object
    GenerateResponse:
      properties:
        code:
          description: Full generated Python strategy code (feature_engineering + strategy_config functions).
          type: string
        credits_remaining:
          type: integer
      type: object
    AuxFeeds:
      description: Extra (symbol, timeframe) feeds merged into the strategy's features as aux_* columns. Max 3; must differ from the primary.
      example:
      - symbol: USDCHF
        timeframe: 15min
      items:
        properties:
          symbol:
            enum:
            - EURUSD
            - GBPUSD
            - USDJPY
            - USDCHF
            - AUDUSD
            - NZDUSD
            - USDCAD
            - BTCUSD
            type: string
          timeframe:
            enum:
            - 1min
            - 5min
            - 15min
            - 1h
            type: string
        type: object
      maxItems: 3
      type: array
    Indicators:
      additionalProperties: true
      description: Flat indicator config. See GET /api/v1/indicator-schema for full param list.
      example:
        macd_enabled: true
        macd_fast: 12
        macd_signal: 9
        macd_slow: 26
        rsi_enabled: true
        rsi_period: 14
      properties: {}
      type: object
    PosRules:
      properties:
        cooldown:
          example: 0
          type: integer
        direction:
          enum:
          - both
          - long
          - short
          type: string
        max_pos:
          example: 1
          type: integer
        on_opposite:
          enum:
          - reverse
          - close_only
          - ignore
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Get a key via POST /api/v1/key/trial (anonymous) or sign in at quantifyme.ai. If you cannot set this header — ChatGPT Actions store one static credential and have no per-user header short of OAuth — send the key as the `api_key` request field instead (body on POST, query on GET). The header wins when both are sent.
      in: header
      name: X-API-Key
      type: apiKey
x-refined-from:
- quantifyme-ai.json
- quantifyme-ai-openapi.json