What's Changed
Market Data APIs
- Get Tickers (Linear/Inverse): Added new response fields
basisRateYear,fundingIntervalHour, andfundingCapfor enhanced funding rate information
Account APIs
- Get Transaction Log: Added optional
transSubTypeparameter 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
ManualBorrowParamsV5request type - Added
ManualBorrowResultV5response type
- Added
-
Get Max Borrowable Amount (
GET /v5/spot-margin-trade/max-borrowable): New endpoint to query maximum borrowable amount for a currency- Added
GetMaxBorrowableAmountParamsV5request type - Added
MaxBorrowableAmountV5response type
- Added
-
Get Position Tiers (
GET /v5/spot-margin-trade/position-tiers): New endpoint to get loan position risk information- Added
GetPositionTiersParamsV5request type - Added
PositionTierV5andCurrencyPositionTiersV5response types
- Added
-
Get Coin State (
GET /v5/spot-margin-trade/coinstate): New endpoint to get currency leverage information- Added
GetCoinStateParamsV5request type - Added
CoinStateV5response type
- Added
-
Get Available Amount to Repay (
GET /v5/spot-margin-trade/repayment-available-amount): New endpoint to query available amount for repayment- Added
GetAvailableAmountToRepayParamsV5request type - Added
AvailableAmountToRepayV5response type
- Added
-
Manual Repay Without Asset Conversion (
POST /v5/account/no-convert-repay): New endpoint for manual repayment without asset conversion- Added
ManualRepayWithoutConversionParamsV5request type - Added
ManualRepayWithoutConversionResultV5response type - Note: Repayment is prohibited between 04:00 and 05:30 per hour
- Added
Spot Margin Trade - Updated Endpoints
- Set Leverage (
POST /v5/spot-margin-trade/set-leverage): Enhanced to support optionalcurrencyparameter for setting leverage by currency- Added
SetSpotMarginLeverageParamsV5type - Maintains backward compatibility
- Added
Code Quality Improvements
- Get Affiliate User List: Extracted inline type definition to proper exported interface
GetAffiliateUserListParamsV5for 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