# POST /api/v5/asset/set-lending-rate stops working

Calls to POST /api/v5/asset/set-lending-rate, /api/v5/asset/set-lending-rate on OKX API stopped working on January 22, 2024.

On January 22, 2024, the POST /api/v5/asset/set-lending-rate endpoint was taken offline. Calls made to this endpoint after that date fail.

## What to use instead

Call POST /api/v5/finance/savings/set-lending-rate instead.

- API: OKX API (www.okx.com)
- Kind: Endpoint removal
- Announced: March 15, 2023
- Takes effect: January 22, 2024
- Calls after that day: fail
- Calls it hits: `POST /api/v5/asset/set-lending-rate`, `/api/v5/asset/set-lending-rate`
- Source: [Announcement](https://www.okx.com/docs-v5/log_en/)
- Verified: November 6, 2026, against OKX API's own pages
- Page: https://www.okapi.bot/providers/okx-api/breaking-changes/post-api-v5-asset-set-lending-rate-stops-working/

## OKX API's words

> OKX has migrated savings endpoints to the new. The new endpoints have been released in production on 2023/03/15. The corresponding old endpoints has been offline on 2024/01/22

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