github tiagosiebler/bybit-api v4.4.2
v4.4.2: Updated response fields (tickers, transaction log), new UTA endpoints (margin borrow/repay), new spot margin set leverage method/parameter

13 hours ago

What's Changed

  • feat(v4.4.2): Update full release notes since 1st October by @JJ-Cro in #504

Market Data APIs

  • Get Tickers (Linear/Inverse): Added new response fields basisRateYear, fundingIntervalHour, and fundingCap for enhanced funding rate information

Account APIs

  • Get Transaction Log: Added optional transSubType parameter to filter transaction logs by sub-type (e.g., "movePosition" for Move Position logs)

Spot Margin Trade (UTA) APIs - New Endpoints

  • Manual Borrow (POST /v5/account/borrow): New endpoint for UTA manual borrow operations

    • Added ManualBorrowParamsV5 request type
    • Added ManualBorrowResultV5 response type
  • Get Max Borrowable Amount (GET /v5/spot-margin-trade/max-borrowable): New endpoint to query maximum borrowable amount for a currency

    • Added GetMaxBorrowableAmountParamsV5 request type
    • Added MaxBorrowableAmountV5 response type
  • Get Position Tiers (GET /v5/spot-margin-trade/position-tiers): New endpoint to get loan position risk information

    • Added GetPositionTiersParamsV5 request type
    • Added PositionTierV5 and CurrencyPositionTiersV5 response types
  • Get Coin State (GET /v5/spot-margin-trade/coinstate): New endpoint to get currency leverage information

    • Added GetCoinStateParamsV5 request type
    • Added CoinStateV5 response type
  • Get Available Amount to Repay (GET /v5/spot-margin-trade/repayment-available-amount): New endpoint to query available amount for repayment

    • Added GetAvailableAmountToRepayParamsV5 request type
    • Added AvailableAmountToRepayV5 response type
  • Manual Repay Without Asset Conversion (POST /v5/account/no-convert-repay): New endpoint for manual repayment without asset conversion

    • Added ManualRepayWithoutConversionParamsV5 request type
    • Added ManualRepayWithoutConversionResultV5 response type
    • Note: Repayment is prohibited between 04:00 and 05:30 per hour

Spot Margin Trade - Updated Endpoints

  • Set Leverage (POST /v5/spot-margin-trade/set-leverage): Enhanced to support optional currency parameter for setting leverage by currency
    • Added SetSpotMarginLeverageParamsV5 type
    • Maintains backward compatibility

Code Quality Improvements

  • Get Affiliate User List: Extracted inline type definition to proper exported interface GetAffiliateUserListParamsV5 for better type reusability and maintainability

Type Definitions

  • All new request and response types are properly exported from their respective type definition files
  • Types are fully documented with JSDoc comments where applicable
  • All changes maintain backward compatibility

Full Changelog: v4.4.1...v4.4.2

Don't miss a new bybit-api release

NewReleases is sending notifications on new releases.