feat(v4.5.1): add new API endpoints for crypto loans and fiat trading, enhance existing functionality with new examples and documentation updates - #525
Merged
Conversation
…, enhance existing functionality with new examples and documentation updates
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
Updated the Bybit API connector with all API changes from release notes dated 2025-12-18 through 2026-01-16, including new endpoints, updated response fields, and WebSocket updates.
New Endpoints (6)
RFQ Trading: Accept non-LP Quote (POST /v5/rfq/accept-other-quote)
Asset: Get Small Balance List (GET /v5/asset/covert/small-balance-list)
Asset: Get Fiat Trading Pair List (GET /v5/fiat/query-coin-list)
Crypto Loan: Obtain Max Loan Amount (POST /v5/crypto-loan-common/max-loan)
Institutional Loan: Repay (POST /v5/ins-loan/repay-loan)
Spot Margin (UTA): Get/Set Auto Repay Mode (GET/POST /v5/spot-margin-trade/*-auto-repay-mode)
Updated Fields
RFQ: Added acceptOtherQuoteStatus field to RFQ responses (REST & WebSocket)
Institutional Loan: Added liqStatus field to LTV responses (indicates liquidation status: 0=Normal, 1=Under liquidation, 2=Manual repayment, 3=Transfer)
Orders: Added parentOrderLinkId field linking TP/SL orders to parent orders (REST & WebSocket)
Positions: Added breakEvenPrice field for linear & inverse positions (REST & WebSocket)
Trade History: Added settleCoin parameter for linear, inverse, option
WebSocket Updates
ADL Alert: Updated b field (T+1 refresh for shared insurance pool), deprecated mb field
Order & Position: Automatically include new parentOrderLinkId and breakEvenPrice fields
Files Changed
Types: 9 files (request/response types for v5-rfq, v5-asset, v5-crypto-loan, v5-spot-leverage-token, v5-trade, v5-position, ws-events)
Client: rest-client-v5.ts (added 10 new methods)
Examples: 9 new example files across RFQ, Asset, Crypto-Loan-New, Institutional-Loan, and Spot-Margin-Trade-UTA folders