feat(v4.4.3): new crypto loan endpoints for renewing borrow orders and an additional response field for USDT pre-market contracts. - #511
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update Bybit V5 API client to support the latest release notes from 2025-11-25 and 2025-11-27. This includes new crypto loan endpoints for renewing borrow orders and an additional response field for USDT pre-market contracts.
Changes Made
Get Instruments Info: Added skipCallAuction?: boolean field to LinearInverseInstrumentInfoV5 interface for USDT pre-market contracts
Get Account Instruments Info: Inherited skipCallAuction field through AccountLinearInverseInstrumentInfoV5 extension
Files Modified:
src/types/response/v5-market.ts
Added two new endpoints for renewing fixed crypto loans:
New Request Parameter Types:
RenewBorrowOrderFixedParamsV5 - Parameters for renewing borrow orders
GetRenewOrderInfoFixedParamsV5 - Parameters for querying renew order info
New Response Types:
RenewBorrowOrderFixedV5 - Returns orderId for renewed borrow order
RenewOrderInfoFixedV5 - Detailed renew order information including amount, autoRepay, borrowCurrency, contractNo, dueTime, loanId, orderId, renewLoanNo, and time
New Methods:
renewBorrowOrderFixed() - POST /v5/crypto-loan-fixed/renew
Allows re-borrowing previously repaid principal with same amount
Rate limit: 1 req/second
Permission: "Spot trade"
getRenewOrderInfoFixed() - GET /v5/crypto-loan-fixed/renew-info
Query renew order information with pagination support
Rate limit: 5 req/second
Permission: "Spot trade"
Files Modified:
src/types/request/v5-crypto-loan.ts
src/types/response/v5-crypto-loan.ts
src/rest-client-v5.ts
Breaking Changes
None - all changes are additive
API Version
V5
References
Bybit API Release Notes: 2025-11-27
Bybit API Release Notes: 2025-11-25