- Fixed formatting issues causing JSON Unmarshal error in some
wallet
methods.
- Implemented a fix for the automatic conversion to scientific notation when handling large
quantity
values.
- Added Websocket API Endpoints
- Added User-Agent header to Websocket and Websocket API
- bookTickerService Endpoint fixed to correctly support individual
symbol
parameter.
- Staking Endpoints Implemented
- New Endpoint,
NewGetManagedSubAccountDepositAddressService()
:GET /sapi/v1/managed-subaccount/deposit/address
- Get Managed Sub-account Deposit Address (For Investor Master Account) (USER_DATA)
- Added separate USDT-M and COIN-M Response Types for relevant Subaccount Endpoints
- Added support for Conditional Fields in relevant responses on Account Endpoints
- Responses for
POST /api/v3/order/cancelReplace
support all 4 Response Types - Support for specifying
recvWindow
viaWithRecvWindow()
function strategyId
andstrategyType
parameters added toTestNewOrder
andCreateOrderService
endpointsUiKlines
: correctedlimit
parameter to not be sent asinterval
- WebsocketStreamClient
- Websocket Client can be initialized with 2 parameters,
NewWebsocketStreamClient(isCombined, baseURL)
: isCombined
is a MANDATORY boolean value that specifies whether you are calling a combined stream or not.- If
isCombined
is set totrue
,"/stream?streams="
will be appended to thebaseURL
to allow for Combining streams. - Otherwise, if set to
false
,"/ws/"
will be appended to thebaseURL
.
- If
baseURL
is an OPTIONAL string value that determines the base URL to use for the websocket connection.- If
baseURL
is not set, it will default to the Live Exchange URL:"wss://stream.binance.com:9443"
.
- If
- Websocket Client can be initialized with 2 parameters,
- Order Response Types for
CreateOrderService
-POST /api/v3/order
- Added support for all 3 Order Response Types -
ACK
,RESULT
andFULL
- Added support for all 3 Order Response Types -
- Order Response Types for
MarginAccountNewOrderService
-POST /sapi/v1/margin/order
- Added support for all 3 Order Response Types -
ACK
,RESULT
andFULL
- Added support for all 3 Order Response Types -
- Different Response Types for
MarginIsolatedAccountInfoService
-GET /sapi/v1/margin/isolated/account
- Added support for both Response Types, depending on whether
symbols
is set or not.
- Added support for both Response Types, depending on whether
- Renamed
WsAllMiniMarketsStatServe
toWsAllMarketMiniTickersStatServe
. - Renamed
WsMarketsStatServe
toWsMarketTickersStatServe
. - Renamed
WsAllMarketsStatServe
toWsAllMarketTickersStatServe
. - Updated Github Action
UnitTest
.
- Removed unused
setFormParam
,setFormParams
,WithRecvWindow
,WithHeader
andWithHeaders
functions fromrequest.go
.
- First release