Skip to content

Commit b850208

Browse files
authored
Merge pull request #132 from binance/rc-v3.4.1
Release v3.4.1
2 parents 5da82a1 + 1724da8 commit b850208

File tree

13 files changed

+172
-168
lines changed

13 files changed

+172
-168
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 3.4.1 - 2025-01-08
4+
### Changed
5+
- Updated documentation links.
6+
37
## 3.4.0 - 2024-10-02
48
### Added
59
- New Margin endpoints:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.binance</groupId>
88
<artifactId>binance-connector-java</artifactId>
9-
<version>3.4.0</version>
9+
<version>3.4.1</version>
1010
<packaging>jar</packaging>
1111
<name>${project.groupId}:${project.artifactId}</name>
1212
<description>lightweight connector to API</description>

src/main/java/com/binance/connector/client/impl/WebSocketStreamClientImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ public int diffDepthStream(String symbol, int speed, WebSocketOpenCallback onOpe
506506
* User Data Streams are accessed at /ws/&lt;listenKey&gt;
507507
*
508508
* @param listenKey listen key obtained from this
509-
* <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#user-data-stream-endpoints">endpoint</a>
509+
* <a href="https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream">endpoint</a>
510510
* @return int - Connection ID
511-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#start-user-data-stream-user_stream">
512-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#start-user-data-stream-user_stream</a>
511+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream">
512+
* https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream</a>
513513
*/
514514
@Override
515515
public int listenUserStream(String listenKey, WebSocketMessageCallback callback) {
@@ -520,7 +520,7 @@ public int listenUserStream(String listenKey, WebSocketMessageCallback callback)
520520
* Same as {@link #listenUserStream(String, WebSocketMessageCallback)} plus accepts callbacks for all major websocket connection events.
521521
*
522522
* @param listenKey listen key obtained from this
523-
* <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#user-data-stream-endpoints">endpoint</a>
523+
* <a href="https://developers.binance.com/docs/binance-spot-api-docs/user-data-stream">endpoint</a>
524524
* @param onOpenCallback Callback for when the websocket connection is opened
525525
* @param onMessageCallback Callback for when a message is received
526526
* @param onClosingCallback Callback for when the websocket connection is closing

src/main/java/com/binance/connector/client/impl/spot/Market.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public Market(String baseUrl, String apiKey, boolean showLimitUsage, ProxyAuth p
3535
* GET /api/v3/ping
3636
* <br>
3737
* @return String
38-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-connectivity">
39-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-connectivity</a>
38+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity">
39+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#test-connectivity</a>
4040
*/
4141
public String ping() {
4242
return requestHandler.sendPublicRequest(baseUrl, PING, null, HttpMethod.GET, showLimitUsage);
@@ -49,8 +49,8 @@ public String ping() {
4949
* GET /api/v3/time
5050
* <br>
5151
* @return String
52-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#test-connectivity">
53-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#check-server-time</a>
52+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time">
53+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#check-server-time</a>
5454
*/
5555
public String time() {
5656
return requestHandler.sendPublicRequest(baseUrl, TIME, null, HttpMethod.GET, showLimitUsage);
@@ -70,8 +70,8 @@ public String time() {
7070
* symbols -- optional/ArrayList <br>
7171
* permissions -- optional/ArrayList -- support single or multiple values (e.g. "SPOT", ["MARGIN","LEVERAGED"]) <br>
7272
* @return String
73-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information">
74-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#exchange-information</a>
73+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information">
74+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints#exchange-information</a>
7575
*/
7676
public String exchangeInfo(Map<String, Object> parameters) {
7777
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {
@@ -106,8 +106,8 @@ public String exchangeInfo(Map<String, Object> parameters) {
106106
* limit -- optional/integer -- limit the results
107107
* Default 100; max 5000. Valid limits:[5, 10, 20, 50, 100, 500, 1000, 5000] <br>
108108
* @return String
109-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book">
110-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#order-book</a>
109+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book">
110+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#order-book</a>
111111
*/
112112
public String depth(Map<String, Object> parameters) {
113113
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -127,8 +127,8 @@ public String depth(Map<String, Object> parameters) {
127127
* symbol -- mandatory/string <br>
128128
* limit -- optional/integer -- limit the results Default 500; max 1000 <br>
129129
* @return String
130-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list">
131-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#recent-trades-list</a>
130+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list">
131+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#recent-trades-list</a>
132132
*/
133133
public String trades(Map<String, Object> parameters) {
134134
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -149,8 +149,8 @@ public String trades(Map<String, Object> parameters) {
149149
* limit -- optional/integer -- limit the result Default 500; max 1000 <br>
150150
* fromId -- optional/long -- trade id to fetch from. Default gets most recent trades <br>
151151
* @return String
152-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup">
153-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#old-trade-lookup</a>
152+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup">
153+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#old-trade-lookup</a>
154154
*
155155
*/
156156
public String historicalTrades(Map<String, Object> parameters) {
@@ -175,8 +175,8 @@ public String historicalTrades(Map<String, Object> parameters) {
175175
* endTime -- optional/long -- Timestamp in ms to get aggregate trades until INCLUSIVE <br>
176176
* limit -- optional/integer -- limit the results Default 500; max 1000 <br>
177177
* @return String
178-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list">
179-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#compressedaggregate-trades-list</a>
178+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list">
179+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#compressedaggregate-trades-list</a>
180180
*/
181181
public String aggTrades(Map<String, Object> parameters) {
182182
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -201,8 +201,8 @@ public String aggTrades(Map<String, Object> parameters) {
201201
* timeZone -- optional/string -- Default:0 (UTC) <br>
202202
* limit -- optional/integer -- limit the results Default 500; max 1000 <br>
203203
* @return String
204-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data">
205-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#klinecandlestick-data</a>
204+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data">
205+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#klinecandlestick-data</a>
206206
*/
207207
public String klines(Map<String, Object> parameters) {
208208
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -228,8 +228,8 @@ public String klines(Map<String, Object> parameters) {
228228
* timeZone -- optional/string -- Default:0 (UTC) <br>
229229
* limit -- optional/integer -- limit the results Default 500; max 1000 <br>
230230
* @return String
231-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#uiklines">
232-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#uiklines</a>
231+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines">
232+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#uiklines</a>
233233
*/
234234
public String uiKlines(Map<String, Object> parameters) {
235235
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -249,8 +249,8 @@ public String uiKlines(Map<String, Object> parameters) {
249249
* <br><br>
250250
* symbol -- mandatory/string -- the trading pair <br>
251251
* @return String
252-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-average-price">
253-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#current-average-price</a>
252+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price">
253+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#current-average-price</a>
254254
*/
255255
public String averagePrice(Map<String, Object> parameters) {
256256
ParameterChecker.checkParameter(parameters, "symbol", String.class);
@@ -271,8 +271,8 @@ public String averagePrice(Map<String, Object> parameters) {
271271
* symbols -- optional/string <br>
272272
* type -- optional/enum -- Supported values: FULL or MINI. If none provided, the default is FULL <br>
273273
* @return String
274-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics">
275-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#24hr-ticker-price-change-statistics</a>
274+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics">
275+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#24hr-ticker-price-change-statistics</a>
276276
*/
277277
public String ticker24H(Map<String, Object> parameters) {
278278
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {
@@ -299,8 +299,8 @@ public String ticker24H(Map<String, Object> parameters) {
299299
* symbol -- optional/string -- the trading pair <br>
300300
* symbols -- optional/string <br>
301301
* @return String
302-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker">
303-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-price-ticker</a>
302+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker">
303+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-price-ticker</a>
304304
*/
305305
public String tickerSymbol(Map<String, Object> parameters) {
306306
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {
@@ -327,8 +327,8 @@ public String tickerSymbol(Map<String, Object> parameters) {
327327
* symbol -- optional/string -- the trading pair <br>
328328
* symbols -- optional/string <br>
329329
* @return String
330-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker">
331-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#symbol-order-book-ticker</a>
330+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker">
331+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#symbol-order-book-ticker</a>
332332
*/
333333
public String bookTicker(Map<String, Object> parameters) {
334334
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {
@@ -359,8 +359,8 @@ public String bookTicker(Map<String, Object> parameters) {
359359
* windowSize -- optional/enum -- Defaults to 1d if no parameter provided <br>
360360
* type -- optional/enum -- Supported values: FULL or MINI. If none provided, the default is FULL <br>
361361
* @return String
362-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics">
363-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#rolling-window-price-change-statistics</a>
362+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics">
363+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#rolling-window-price-change-statistics</a>
364364
*/
365365
public String ticker(Map<String, Object> parameters) {
366366
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {
@@ -392,8 +392,8 @@ public String ticker(Map<String, Object> parameters) {
392392
* timeZone -- optional/enum -- Default: 0 (UTC) <br>
393393
* type -- optional/enum -- Supported values: FULL or MINI. If none provided, the default is FULL <br>
394394
* @return String
395-
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api#trading-day-ticker">
396-
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api#trading-day-ticker</a>
395+
* @see <a href="https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker">
396+
* https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints#trading-day-ticker</a>
397397
*/
398398
public String tradingDayTicker(Map<String, Object> parameters) {
399399
if (parameters.containsKey("symbol") && parameters.containsKey("symbols")) {

0 commit comments

Comments
 (0)