QuantifyMe Training API

Submit and poll training jobs.

GitHub OpenAPI

Operations 2

POST /api/v1/train Submit a training job (non-blocking, returns job_id for polling) #
GET /api/v1/train/{job_id} Poll training job status. Returns metrics when status=done #

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-training-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-training-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quantifyme Ai Training API
  version: 1.0.0
  contact:
    email: support@quantifyme.ai
    name: QuantifyMe
    url: https://quantifyme.ai
  license:
    name: MIT
  description: 'Operations tagged Training 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: Submit and poll training jobs.
  name: Training
paths:
  /api/v1/train:
    post:
      operationId: train
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrainRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainStartResponse'
          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: Submit a training job (non-blocking, returns job_id for polling)
      tags:
      - Training
    servers:
    - description: Production
      url: https://api.quantifyme.ai
  /api/v1/train/{job_id}:
    get:
      operationId: trainStatus
      parameters:
      - in: path
        name: job_id
        required: true
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStatus'
          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: Poll training job status. Returns metrics when status=done
      tags:
      - Training
    servers:
    - description: Production
      url: https://api.quantifyme.ai
components:
  schemas:
    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
    TrainRequest:
      properties:
        aux_feeds:
          $ref: '#/components/schemas/AuxFeeds'
        capital:
          description: Account balance in USD. Drives the $ P&L and return-on-equity (P&L % = $ P&L / balance).
          example: 10000
          type: number
        claude_model:
          type: string
        code:
          description: Full Python strategy code (typically from /api/v1/generate). At most 64,000 characters; a longer one is refused with 400 prompt_too_long.
          type: string
        commission:
          description: 'Round-trip commission, USD per lot of the market. Omit for the market''s own: 6.00 on forex, 0.26 on XAUUSD (1 oz), 0.004 on XAGUSD (1 oz), 56.72 on BTCUSD (1 coin).'
          example: 6.0
          type: number
        confidence_threshold:
          description: 'Signal strictness: the raw predict_proba cutoff a bar must clear to fire, as a percent (55 = a score of 0.55). NOT a calibrated probability — a 55 setting was measured delivering a 50.0% hit rate. Overrides the value in strategy_config(). Classification-only (#432) - a regression strategy (task=''regression'') refuses this with 400; use signal_rules instead (return/spread units).'
          example: 55
          type: number
        end_date:
          format: date
          type: string
        indicators:
          $ref: '#/components/schemas/Indicators'
        leverage:
          description: Margin only — sets required margin (notional / leverage); does NOT multiply P&L. Stored for future margin/liquidation modeling.
          example: 30
          type: number
        lot_size:
          description: 'Position size in standard lots (1.0 = 100,000 units). This is the P&L driver: $ P&L = units × (exit−entry) / FX_conv − commission/swap.'
          example: 1.0
          type: number
        model_name:
          description: Optional. Auto-named Model N+1 if omitted.
          example: Model 1
          type: string
        risk_unit:
          default: pips
          description: How stop_loss/take_profit are interpreted. 'pips' = pip distance; 'usd' = $ risk at this lot; 'pct' = legacy fraction of price. The engine back-solves the price level per pair (pip_size + FX conversion).
          enum:
          - pips
          - usd
          - pct
          type: string
        start_date:
          format: date
          type: string
        stop_loss:
          description: Stop-loss magnitude in risk_unit (e.g. 25 pips, or $250 when risk_unit='usd'). Omit/null to disable. Overrides the value in strategy_config().
          example: 25
          type: number
        swap_long:
          description: 'USD per lot per night held long. Omit for the market''s own: -1.00 on forex, -0.58 on XAUUSD, -0.0087 on XAGUSD, -18.91 on BTCUSD.'
          type: number
        swap_short:
          description: 'USD per lot per night held short. Omit for the market''s own: 0.30 on forex, -0.06 on XAUUSD, -0.0009 on XAGUSD, 0.00 on BTCUSD. A default swap outside forex is never a credit; a number you send is charged as sent.'
          type: number
        symbol:
          default: EURUSD
          description: Must match the symbol the code was generated for.
          enum:
          - EURUSD
          - GBPUSD
          - USDJPY
          - USDCHF
          - AUDUSD
          - NZDUSD
          - USDCAD
          - BTCUSD
          type: string
        take_profit:
          description: Take-profit magnitude in risk_unit (e.g. 50 pips). Omit/null to disable. Overrides the value in strategy_config().
          example: 50
          type: number
        timeframe:
          default: 15min
          enum:
          - 1min
          - 5min
          - 15min
          - 1h
          type: string
        train_split:
          example: 0.7
          type: number
      required:
      - code
      type: object
    TrainStartResponse:
      properties:
        job_id:
          type: integer
        model_name:
          type: string
        model_stem:
          description: 'PKL filename stem: <user_id>_<SYMBOL>_<timeframe>_<model_name>'
          type: string
        status:
          example: queued
          type: string
      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
    TradeStats:
      properties:
        avg:
          description: Avg trade return (decimal pct)
          type: number
        best:
          type: number
        expect:
          description: Expectancy ($/trade)
          type: number
        losses:
          type: integer
        mdd:
          description: Max drawdown (decimal pct, signed)
          type: number
        n:
          description: Total trades
          type: integer
        np:
          description: Net profit ($)
          type: number
        pf:
          description: Profit factor (gross wins / gross losses)
          type: number
        ret:
          description: Total return (decimal pct)
          type: number
        rr:
          description: Risk:Reward (avg win / avg loss)
          type: number
        wins:
          type: integer
        worst:
          type: number
        wr:
          description: Win rate (0-1)
          type: number
      type: object
    JobStatus:
      properties:
        error:
          type: string
        job_id:
          type: integer
        long_stats:
          $ref: '#/components/schemas/TradeStats'
        model_name:
          type: string
        model_stem:
          type: string
        short_stats:
          $ref: '#/components/schemas/TradeStats'
        status:
          enum:
          - queued
          - running
          - done
          - failed
          type: string
        test_stats:
          $ref: '#/components/schemas/TradeStats'
        train_stats:
          $ref: '#/components/schemas/TradeStats'
      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