# POST /api/v1/margin/toggle-auto-lend is deprecated

KuCoin API deprecated POST /api/v1/margin/toggle-auto-lend without giving a shutdown date yet.

- API: KuCoin API (api.kucoin.com)
- Kind: Endpoint removal
- Announced: September 22, 2023
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /api/v1/margin/toggle-auto-lend`
- Source: [Announcement](https://www.kucoin.com/announcement/the-kucoin-api-upgrade-has-been-completed-2023-0922)
- Page: https://www.okapi.bot/providers/kucoin-api/breaking-changes/post-api-v1-margin-toggle-auto-lend-is-deprecated/

## What to use instead

Remove the auto-lend call; it answers 404.

KuCoin documents no API replacement: its Lending Market endpoints left the Classic REST docs on 2026-10-21.

## KuCoin API's words

> Deprecated: Set Auto-lend, abandon the "POST /api/v1/margin/toggle-auto-lend" interface
