---
title: "Update strategy"
method: POST
path: "/markets/strategy/update"
tags: ["strategy"]
---

# Update strategy

`POST /markets/strategy/update`

Updates strategy settings and collateral terms. Large collateral-term updates may be split across multiple returned transactions.

## Headers

- `Idempotent-Key` string, nullable

## Request body

- UpdateStrategyQueryParams
  - `collateralTerms` StrategyCollateralUpdates
    - `addCollateral` object
    - `removeCollateral` object
    - `updateAssetAllocation` CollateralAllocationUpdateArgs[]
      - `assetIdentifier` string, required
      - `maxAllocationPct` string, required
    - `updateCollateral` object
  - `strategy` string, required
  - `updateParams` EditStrategySettingsArgs
    - `externalYieldSource` ExternalYieldSourceParams
      - `newExternalYieldSource` integer, required
    - `interestFee` integer, nullable
    - `liquidityBuffer` integer, nullable
    - `originationCap` integer, nullable
    - `originationFee` integer, nullable
    - `originationsEnabled` boolean, nullable
    - `principalFee` integer, nullable

## Response `200`

One or more serialized transactions needed to apply the strategy update.

- 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)
