Strategy

Generate strategy code from a curated template with optional overrides

post/api/v1/generate/from-template

Request

  • Base URL: https://api.quantifyme.ai
  • URL: https://api.quantifyme.ai/api/v1/generate/from-template
  • Auth: API key in header X-API-Key

Request body

claude_modelstring
end_datestring date
indicatorsIndicators

Flat indicator config. See GET /api/v1/indicator-schema for full param list.

modelstring
start_datestring date
symbol'EURUSD' | 'GBPUSD' | 'USDJPY' | 'USDCHF' | 'AUDUSD' | 'NZDUSD' | 'USDCAD' | 'BTCUSD'
template'macd_momentum' | 'mean_reversion' | 'trend_following' | 'scalper' | 'conservative_long' required
timeframe'1min' | '5min' | '15min' | '1h'
train_splitnumber

Example request

{
  "aux_feeds": [
    {
      "symbol": "USDCHF",
      "timeframe": "15min"
    }
  ],
  "indicators": {
    "macd_enabled": true,
    "macd_fast": 12,
    "macd_signal": 9,
    "macd_slow": 26,
    "rsi_enabled": true,
    "rsi_period": 14
  },
  "pos_rules": {
    "max_pos": 1
  }
}

Response

Successful response

codestring

Full generated Python strategy code (feature_engineering + strategy_config functions).

credits_remaininginteger

Changes

No recorded changes to this operation across all 1 revision of this API.