Skip to content

Conversation

@JJ-Cro
Copy link
Contributor

@JJ-Cro JJ-Cro commented Nov 14, 2025

Gate.io API SDK Update - Changelog v4.105.10 to v4.105.28

🆕 New Endpoints

1. Update Futures Price-Triggered Order

  • Method: updateFuturesPriceTriggeredOrder()
  • Endpoint: PUT /futures/{settle}/price_orders/{order_id}
  • Description: Update a single price-triggered order

2. Get Account Main Keys

  • Method: getAccountMainKeys()
  • Endpoint: GET /account/main_keys
  • Description: Query all main account API key information

📝 Type Updates

New Types Added

  • AccountMainKey - Response interface for main account API keys
  • DepositRecord - Dedicated interface for deposit records with new status values
  • UpdateFuturesPriceTriggeredOrderReq - Request parameters for updating price-triggered orders

Updated Types

  • WithdrawalRecord - Enhanced status field descriptions with detailed comments
  • SubmitFuturesTriggeredOrderReq - Made price and rule fields required in trigger object
  • DepositRecord - New status values: BLOCKED, DEP_CREDITED (removed FINAL)
  • CurrencyChain - Documented is_deposit_disabled field

🔄 Method Updates

Return Type Changes

  • getDepositRecords() - Now returns DepositRecord[] instead of WithdrawalRecord[]

Documentation Updates

  • cancelWithdrawal() - Documented block_number field in response
  • getCurrencyChains() - Added note about low liquidity currencies
  • getWithdrawalStatus() - Added note about API limitations for low liquidity tokens
  • getSpotCurrencyPairs() / getSpotCurrencyPair() - Marked fee field as deprecated
  • submitFuturesPriceTriggeredOrder() - Documented required fields
  • submitEth2Swap() - Updated terminology (ETH2 → GTETH)
  • getEth2RateHistory() - Updated terminology (ETH2 → GTETH)
  • getUnifiedAccountInfo() - Updated field descriptions for cross_balance and iso_balance

✅ Changes Summary

  • ✅ 2 new endpoints implemented
  • ✅ 3 new TypeScript interfaces added
  • ✅ 4 existing interfaces updated
  • ✅ 11 methods updated with improved documentation
  • ✅ All imports and exports properly configured
  • ✅ Zero linter errors
  • ✅ Full TypeScript type safety maintained

📋 Breaking Changes

Required Field Updates

  • SubmitFuturesTriggeredOrderReq.trigger.price - Now required (was optional)
  • SubmitFuturesTriggeredOrderReq.trigger.rule - Now required (was optional)
  • SubmitFuturesTriggeredOrderReq.initial.price - Now required (was optional)

Return Type Changes

  • getDepositRecords() return type changed from WithdrawalRecord[] to DepositRecord[]

🔗 Related Changelog Versions

  • v4.105.28 - Withdrawal block_number field, unified account field updates
  • v4.105.27 - Status field description improvements
  • v4.105.24 - Low liquidity currency documentation
  • v4.105.20 - Deposit record enhancements
  • v4.105.19 - ETH2 to GTETH terminology updates
  • v4.105.18 - New update price-triggered order endpoint
  • v4.105.11 - Main account keys endpoint, fee field deprecation
  • v4.105.10 - Required fields in futures price-triggered orders

Copy link
Owner

@tiagosiebler tiagosiebler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@tiagosiebler tiagosiebler merged commit 9c25eb3 into tiagosiebler:master Nov 15, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants