Bug Fixes
market_service.go - Fixed endpoints:
GetIndexPriceKline: /v5/market/mark-price-kline → /v5/market/index-price-kline
GetPremiumIndexPriceKline: /v5/market/mark-price-kline → /v5/market/premium-index-price-kline
New Files
api_limit.go - API limit query
apilimit.go - API rate limit management
fiat.go - Fiat trading endpoints
rfq.go - RFQ (Request for Quote) trading endpoints
examples/SpotMargin/auto-repay-mode.go
examples/SpotMargin/set-auto-repay-mode.go
New API Endpoints (54 total)
account.go (9 endpoints)
GetAccountInstrumentsInfo() - Get account instruments info
ManualBorrow() - Manual borrow
GetMaxBorrowableAmount() - Get max borrowable amount
GetPositionTiers() - Get position tiers
GetCoinState() - Get coin state
GetAvailableAmountToRepay() - Get available amount to repay
ManualRepay() - Manual repay
ManualRepayWithoutAssetConversion() - Manual repay without asset conversion
SetLimitPriceAction() - Set limit order price action
api_limit.go (2 endpoints)
QueryCap() - Query API limit cap
QueryAll() - Query all API limits
apilimit.go (2 endpoints)
SetApiRateLimit() - Set API rate limit
GetApiRateLimit() - Get API rate limit
asset.go (5 endpoints)
GetWithdrawalAddress() - Get withdrawal address
GetSmallBalanceList() - Get convertible small balance list
GetSmallBalanceConvertQuote() - Get small balance conversion quote
ExecuteSmallBalanceConvert() - Execute small balance conversion
GetSmallBalanceConvertHistory() - Get small balance conversion history
crypto_loan.go (5 endpoints)
RepayCollateral() - Repay collateral
RepayFixedCollateral() - Repay fixed collateral
RenewBorrowOrder() - Renew borrow order
GetRenewOrderInfo() - Get renew order info
GetCryptoLoanMaxCollateralAmount() - Get max collateral amount
fiat.go (7 endpoints)
GetFiatCoinList() - Query supported fiat coins
GetFiatReferencePrice() - Get fiat reference price
ApplyFiatQuote() - Apply for fiat quote
ExecuteFiatTrade() - Execute fiat trade
QueryFiatTrade() - Query fiat trade
GetFiatTradeHistory() - Get fiat trade history
GetFiatBalance() - Query fiat balance
ins_loan.go (1 endpoint)
RepayInsLoan() - Repay institutional loan
market_service.go (5 endpoints)
GetRPIOrderBook() - Get RPI order book
GetNewDeliveryPrice() - Get new delivery price
GetADLAlerts() - Get ADL alerts
GetIndexPriceComponents() - Get index price components
GetFeeGroupStructure() - Get fee group structure
rfq.go (14 endpoints)
GetRFQConfig() - Get RFQ config
CreateRFQ() - Create RFQ
CancelRFQ() - Cancel RFQ
CancelAllRFQ() - Cancel all RFQ
GetRFQList() - Get RFQ list
GetRFQRealtimePrice() - Get RFQ realtime price
GetRFQQuoteRealtime() - Get RFQ quote realtime
CreateRFQQuote() - Create RFQ quote
ExecuteRFQQuote() - Execute RFQ quote
CancelRFQQuote() - Cancel RFQ quote
GetRFQQuoteList() - Get RFQ quote list
GetRFQHistory() - Get RFQ history
GetRFQPublicTrades() - Get RFQ public trades
GetRFQTradeList() - Get RFQ trade list
saving.go (2 endpoints)
GetYieldHistory() - Get yield history
GetHourlyYieldHistory() - Get hourly yield history
spot_margin.go (2 endpoints)
GetSpotMarginAutoRepayMode() - Get spot margin auto repay mode
SetSpotMarginAutoRepayMode() - Set spot margin auto repay mode
trade.go (1 endpoint)
GetUserSettingConfig() - Get user setting config