---
title: "Lag Features"
method: POST
path: "/quantlib/ml/features/lags"
tags: ["quantlib-ml"]
---

# Lag Features

`POST /quantlib/ml/features/lags`

## Request

- Base URL: `https://api.fincept.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fincept.in/quantlib/ml/features/lags`
- Auth: API key in header `X-API-Key`

Generate lag, lead, and return features

## Request body

- LagsFeaturesRequest
  - `data` number[], required
  - `n_lags` integer
  - `include_leads` boolean
  - `include_returns` boolean
  - `include_log_returns` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fincept/apis/fincept-api.md) · [All operations](https://skmtc.dev/fincept/apis/fincept-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fincept/apis/fincept-api/revisions/e9c0076ea55a?raw)
