v2.3.0 Release
New Features
-
New
/contract/private/modify-limit-orderApplicable for modifying futures limit orders(SIGNED)/contract/private/cancel-all-afterApplicable for canceling all futures orders timed(SIGNED)/contract/private/get-position-modeGet Position Mode (KEYED)/contract/private/set-position-modeSet Position Mode (SIGNED)/contract/private/position-v2Get Current Position V2 (KEYED)/contract/public/leverage-bracketGet Current Leverage Risk Limit/contract/public/market-tradeQuery the latest trade data
-
Update
/contract/private/submit-orderApplicable for placing futures orders(SIGNED): Add the Request field stp_mode/contract/private/transaction-historyGet Transaction History (KEYED): Add the Request field account/contract/private/tradesGet Order Trade (KEYED): Add the Request field account, Request field symbol changed to optional/contract/private/position-riskGet Current Position Risk Details(KEYED): Add the Request field account/contract/private/positionGet Current Position (KEYED): Add the Request field account/contract/private/order-historyGet Order History (KEYED): Add the Request field account, order_id, client_order_id/contract/private/orderGet Order Detail (KEYED): Add the Request field account/account/v1/walletGet Account Balance (KEYED): Add the Request Parameters needUsdValuation/spot/v4/batch_ordersNew Batch Order(v4) (SIGNE): Add the Request Parameters stpMode/spot/v2/submit_order New Order(v2) (SIGNED): Add the Request Parameters stpMode
Improvements
- Enhanced Logging System: Introduced a comprehensive logging mechanism to replace the previous
echoandprint_routput methods- Added
CloudLoggerclass with configurable logging capabilities - Support for multiple log formats:
default(structured),simple(xdebug-compatible), andjson(machine-readable) - Configurable output destinations: console output and/or file logging
- Automatic request ID generation for request tracing and correlation
- Instance-based logger configuration: each
CloudConfiginstance has its own independent logger - Configurable logging options including format, verbosity, and output channels
- Backward compatible: exception messages still use simple output when logging is disabled
- Added