---
title: "Withdraw from strategy"
method: POST
path: "/markets/strategy/withdraw"
tags: ["strategy"]
---

# Withdraw from strategy

`POST /markets/strategy/withdraw`

Withdraws principal from an existing lending strategy, optionally closing out the full position.

## Headers

- `Idempotent-Key` string, nullable

## Request body

- TxnWithdrawStrategyParams
  - `amount` integer, required
  - `strategy` string, required
  - `withdrawAll` boolean, required

## Response `200`

Serialized transaction for the strategy withdrawal.

- VersionedTransactionReturn — versioned txn return
  - `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)
