---
title: "Create strategy"
method: POST
path: "/markets/strategy/create"
tags: ["strategy"]
---

# Create strategy

`POST /markets/strategy/create`

Creates a new lending strategy, deposits the initial principal amount, and may return multiple transactions when lookup-table setup or external yield account initialization is required.

## Headers

- `Idempotent-Key` string, nullable

## Request body

- TxnCreateStrategyParams
  - `amount` integer, required
  - `collateralTerms` MultiCollateralTermsUpdateParamsSchema[]
    - `apy` integer, required — APY in basis points of a hundredth (cbps).
    - `indices` CollateralTermsIndicesSchema[], required — (collateral, duration) slots this APY applies to.
      - `collateralIndex` integer, required — Index into the market's collateral map.
      - `durationIndex` integer, required — Index into the strategy's offered durations.
  - `externalYieldSourceArgs` TxnExternalYieldSourceArgs
    - `createExternalYieldAccount` boolean, required
    - `newExternalYieldSource` integer, required
  - `interestFee` integer
  - `lender` string, required
  - `liquidityBuffer` integer
  - `marketInformation` string, nullable
  - `originationCap` integer
  - `originationFee` integer
  - `originationsEnabled` boolean
  - `principalMint` string, required

## Response `200`

One or more serialized transactions needed to create and fund the strategy.

- VersionedTransactionReturn[]
  - `message` string, required — serialized message
  - `signatures` VersionedTransactionSignature[], required — serialized signatures
    - `publicKey` string, required — serialized message
    - `signature` string, required — serialized signatures

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `409` — Idempotency-Key reused with a different request body
- `500` — Internal server error

---

[API](https://skmtc.dev/loopscale/apis/loopscale-api.md) · [All operations](https://skmtc.dev/loopscale/apis/loopscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/loopscale/loopscale-api/revisions/531f64dbe09c/schema)
