/api/v5/asset/set-lending-rate → endpoint removal
Stopped working
On January 22, 2024, the POST /api/v5/asset/set-lending-rate endpoint was removed. Calls made to this endpoint after that day fail.
Calls it hits
/api/v5/asset/set-lending-rate
What to use instead of these calls
Use /api/v5/finance/savings/set-lending-rate instead.
In OKX API's words
Set lending rate adjusted endpoint path from /api/v5/asset/set-lending-rate to /api/v5/finance/savings/set-lending-rate
Facts
Questions
When does this change take effect?
Calls to /api/v5/asset/set-lending-rate on OKX API stopped working on January 22, 2024.
What happens to calls after January 22, 2024?
They have failed since January 22, 2024.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from OKX API 6
-
GET /api/v5/asset/lending-historyEndpoint removal Stopped working -
/api/v5/asset/lending-historyEndpoint removal Stopped working -
GET /api/v5/asset/lending-rate-historyEndpoint removal Stopped working -
/api/v5/asset/lending-rate-historyEndpoint removal Stopped working -
GET /api/v5/asset/lending-rate-summaryEndpoint removal Stopped working -
/api/v5/asset/lending-rate-summaryEndpoint removal Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.