Bybit API
/v5/lending/* endpoint removal
Stopped workingSubscribe to Bybit APIShare
On March 1, 2024, the Bybit API removed all /v5/lending/* endpoints due to a merge between Lending and Flexible Savings. Calls to these endpoints now fail. The decommissioned routes include Get Lending Coin Info, Deposit Funds, Redeem Funds, Cancel Redeem, Get Order Records, and Get Lending Account Info.
Calls it hits
/v5/lending/*
What to use instead of these calls
Use Bybit Earn's flexible savings instead, calling GET /v5/earn/product, POST /v5/earn/place-order, and GET /v5/earn/position with category=FlexibleSaving.
In Bybit API's words
2024-03-01 REST API - All C2C-Lending APIs are abandoned due to the merge between Lending and Flexible Savings - Get Lending Coin Info - Deposit Funds - Redeem Funds - Cancel Redeem - Get Order Records - Get Lending Account Info
Facts
- API
- Bybit API
api.bybit.com - Kind
- Endpoint removal
- Announced
- March 1, 2024
- Takes effect
- March 1, 2024
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Bybit API's own pages
Questions
When does this change take effect?
Calls to /v5/lending/* on Bybit API stopped working on March 1, 2024.
What happens to calls after March 1, 2024?
They have failed since March 1, 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 Bybit API 5
-
No date
GET /v5/broker/earning-recordEndpoint removal Deprecated, no date -
No date
/v5/user/modify-master-apikeyParameter removal Deprecated, no date -
No date
POST /v5/asset/transfer/save-transfer-sub-memberEndpoint removal Deprecated, no date -
No date
POST /v5/crypto-loan/borrowEndpoint removal Deprecated, no date -
No date
POST /v5/position/set-risk-limitEndpoint removal Deprecated, no date
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.