# POST /api/v1/margin/repay/all is deprecated

KuCoin API deprecated POST /api/v1/margin/repay/all without giving a shutdown date yet.

KuCoin deprecated the POST /api/v1/margin/repay/all endpoint on September 22, 2023, without a shutdown date. Calls made to this endpoint will eventually fail as the interface is being abandoned.

## What to use instead

Repay with POST /api/v3/margin/repay instead.

- 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/repay/all`
- Source: [Announcement](https://www.kucoin.com/announcement/the-kucoin-api-upgrade-has-been-completed-2023-0922)
- Verified: November 6, 2026, against KuCoin API's own pages
- Page: https://www.okapi.bot/providers/kucoin-api/breaking-changes/post-api-v1-margin-repay-all-is-deprecated/

## KuCoin API's words

> Deprecated: Quick Repayment, abandon the "POST /api/v1/margin/repay/all" interface and replace it with the "POST /api/v3/margin/repay" interface

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
