Okapi Okapi

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

Bybit API, Announcement

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

  1. No date GET /v5/broker/earning-recordEndpoint removal Deprecated, no date
  2. No date /v5/user/modify-master-apikeyParameter removal Deprecated, no date
  3. No date POST /v5/asset/transfer/save-transfer-sub-memberEndpoint removal Deprecated, no date
  4. No date POST /v5/crypto-loan/borrowEndpoint removal Deprecated, no date
  5. 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.

Add to GitHub

Get notifications

Subscribe to Bybit API

Hear about each breaking change Bybit API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Bybit API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.