Skip to content

Commit 9decffa

Browse files
committed
generate products 16/12/2025
1 parent af92242 commit 9decffa

File tree

344 files changed

+37997
-2284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+37997
-2284
lines changed

clients/c2c/CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
# Changelog
22

3+
## 2.0.0 - 2025-12-16
4+
5+
### Changed (6)
6+
7+
- Added parameter `endTimestamp`
8+
- affected methods:
9+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
10+
- Added parameter `rows`
11+
- affected methods:
12+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
13+
- Added parameter `startTimestamp`
14+
- affected methods:
15+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
16+
- Added parameter `tradeType`
17+
- affected methods:
18+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
19+
- Deleted parameter `endTime`
20+
- affected methods:
21+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
22+
- Deleted parameter `startTime`
23+
- affected methods:
24+
- `getC2CTradeHistory()` (`GET /sapi/v1/c2c/orderMatch/listUserOrderHistory`)
25+
326
## 1.2.1 - 2025-08-07
27+
428
- Update `binance/common` module to version `2.0.0`.
529
- Add `Content-Type` header only if there is a body.
630

@@ -17,4 +41,4 @@
1741

1842
## 1.0.0 - 2025-04-24
1943

20-
- Initial release
44+
- Initial release

clients/c2c/docs/C2CApi.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ All URIs are relative to *https://api.binance.com*
99

1010
<a id="getC2CTradeHistory"></a>
1111
# **getC2CTradeHistory**
12-
> GetC2CTradeHistoryResponse getC2CTradeHistory(startTime, endTime, page, recvWindow)
12+
> GetC2CTradeHistoryResponse getC2CTradeHistory(tradeType, startTimestamp, endTimestamp, page, rows, recvWindow)
1313
1414
Get C2C Trade History (USER_DATA)
1515

16-
Get C2C Trade History * The max interval between startTime and endTime is 30 days. * If startTime and endTime are not sent, the recent 7 days&#39; data will be returned. * The earliest startTime is supported on June 10, 2020 * Return up to 200 records per request. Weight: 1
16+
Get C2C Trade History * The max interval between startTimestamp and endTimestamp is 30 days. * If startTimestamp and endTimestamp are not sent, the recent 30 days&#39; data will be returned. * You can only view data from the past 6 months. To see all C2C orders, please check https://c2c.binance.com/en/fiatOrder Weight: 1
1717

1818
### Example
1919
```java
@@ -30,12 +30,14 @@ public class Example {
3030
defaultClient.setBasePath("https://api.binance.com");
3131

3232
C2CApi apiInstance = new C2CApi(defaultClient);
33-
Long startTime = 56L; // Long |
34-
Long endTime = 56L; // Long |
33+
String tradeType = "tradeType_example"; // String | BUY, SELL
34+
Long startTimestamp = 56L; // Long |
35+
Long endTimestamp = 56L; // Long |
3536
Long page = 56L; // Long | Default 1
37+
Long rows = 56L; // Long | default 100, max 100
3638
Long recvWindow = 56L; // Long |
3739
try {
38-
GetC2CTradeHistoryResponse result = apiInstance.getC2CTradeHistory(startTime, endTime, page, recvWindow);
40+
GetC2CTradeHistoryResponse result = apiInstance.getC2CTradeHistory(tradeType, startTimestamp, endTimestamp, page, rows, recvWindow);
3941
System.out.println(result);
4042
} catch (ApiException e) {
4143
System.err.println("Exception when calling C2CApi#getC2CTradeHistory");
@@ -52,9 +54,11 @@ public class Example {
5254

5355
| Name | Type | Description | Notes |
5456
|------------- | ------------- | ------------- | -------------|
55-
| **startTime** | **Long**| | [optional] |
56-
| **endTime** | **Long**| | [optional] |
57+
| **tradeType** | **String**| BUY, SELL | [optional] |
58+
| **startTimestamp** | **Long**| | [optional] |
59+
| **endTimestamp** | **Long**| | [optional] |
5760
| **page** | **Long**| Default 1 | [optional] |
61+
| **rows** | **Long**| default 100, max 100 | [optional] |
5862
| **recvWindow** | **Long**| | [optional] |
5963

6064
### Return type

clients/c2c/docs/rest-api/migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ With the transition to a modularized structure, the Binance Connector has been s
2222
<dependency>
2323
<groupId>io.github.binance</groupId>
2424
<artifactId>binance-c2c</artifactId>
25-
<version>1.2.1</version>
25+
<version>2.0.0</version>
2626
</dependency>
2727
```
2828

@@ -91,7 +91,7 @@ by:
9191
<dependency>
9292
<groupId>io.github.binance</groupId>
9393
<artifactId>binance-c2c</artifactId>
94-
<version>1.2.1</version>
94+
<version>2.0.0</version>
9595
</dependency>
9696
```
9797

clients/c2c/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>binance-c2c</artifactId>
77
<name>c2c</name>
8-
<version>1.2.1</version>
8+
<version>2.0.0</version>
99
<packaging>jar</packaging>
1010

1111
<parent>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>io.github.binance</groupId>
3333
<artifactId>binance-common</artifactId>
34-
<version>2.0.0</version>
34+
<version>2.2.1</version>
3535
</dependency>
3636
</dependencies>
3737
</project>

clients/c2c/src/main/java/com/binance/connector/client/c2c/rest/api/C2CApi.java

Lines changed: 57 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class C2CApi {
4242

4343
private static final String USER_AGENT =
4444
String.format(
45-
"binance-c2c/1.2.1 (Java/%s; %s; %s)",
45+
"binance-c2c/2.0.0 (Java/%s; %s; %s)",
4646
SystemUtil.getJavaVersion(), SystemUtil.getOs(), SystemUtil.getArch());
4747
private static final boolean HAS_TIME_UNIT = false;
4848

@@ -82,9 +82,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
8282
/**
8383
* Build call for getC2CTradeHistory
8484
*
85-
* @param startTime (optional)
86-
* @param endTime (optional)
85+
* @param tradeType BUY, SELL (optional)
86+
* @param startTimestamp (optional)
87+
* @param endTimestamp (optional)
8788
* @param page Default 1 (optional)
89+
* @param rows default 100, max 100 (optional)
8890
* @param recvWindow (optional)
8991
* @return Call to execute
9092
* @throws ApiException If fail to serialize the request body object
@@ -99,7 +101,13 @@ public void setCustomBaseUrl(String customBaseUrl) {
99101
* Trade History (USER_DATA) Documentation</a>
100102
*/
101103
private okhttp3.Call getC2CTradeHistoryCall(
102-
Long startTime, Long endTime, Long page, Long recvWindow) throws ApiException {
104+
String tradeType,
105+
Long startTimestamp,
106+
Long endTimestamp,
107+
Long page,
108+
Long rows,
109+
Long recvWindow)
110+
throws ApiException {
103111
String basePath = null;
104112
// Operation Servers
105113
String[] localBasePaths = new String[] {};
@@ -124,18 +132,28 @@ private okhttp3.Call getC2CTradeHistoryCall(
124132
Map<String, String> localVarCookieParams = new HashMap<String, String>();
125133
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
126134

127-
if (startTime != null) {
128-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime));
135+
if (tradeType != null) {
136+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("tradeType", tradeType));
129137
}
130138

131-
if (endTime != null) {
132-
localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime));
139+
if (startTimestamp != null) {
140+
localVarQueryParams.addAll(
141+
localVarApiClient.parameterToPair("startTimestamp", startTimestamp));
142+
}
143+
144+
if (endTimestamp != null) {
145+
localVarQueryParams.addAll(
146+
localVarApiClient.parameterToPair("endTimestamp", endTimestamp));
133147
}
134148

135149
if (page != null) {
136150
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
137151
}
138152

153+
if (rows != null) {
154+
localVarQueryParams.addAll(localVarApiClient.parameterToPair("rows", rows));
155+
}
156+
139157
if (recvWindow != null) {
140158
localVarQueryParams.addAll(localVarApiClient.parameterToPair("recvWindow", recvWindow));
141159
}
@@ -172,7 +190,13 @@ private okhttp3.Call getC2CTradeHistoryCall(
172190

173191
@SuppressWarnings("rawtypes")
174192
private okhttp3.Call getC2CTradeHistoryValidateBeforeCall(
175-
Long startTime, Long endTime, Long page, Long recvWindow) throws ApiException {
193+
String tradeType,
194+
Long startTimestamp,
195+
Long endTimestamp,
196+
Long page,
197+
Long rows,
198+
Long recvWindow)
199+
throws ApiException {
176200
try {
177201
Validator validator =
178202
Validation.byDefaultProvider()
@@ -182,11 +206,15 @@ private okhttp3.Call getC2CTradeHistoryValidateBeforeCall(
182206
.getValidator();
183207
ExecutableValidator executableValidator = validator.forExecutables();
184208

185-
Object[] parameterValues = {startTime, endTime, page, recvWindow};
209+
Object[] parameterValues = {
210+
tradeType, startTimestamp, endTimestamp, page, rows, recvWindow
211+
};
186212
Method method =
187213
this.getClass()
188214
.getMethod(
189215
"getC2CTradeHistory",
216+
String.class,
217+
Long.class,
190218
Long.class,
191219
Long.class,
192220
Long.class,
@@ -195,7 +223,8 @@ private okhttp3.Call getC2CTradeHistoryValidateBeforeCall(
195223
executableValidator.validateParameters(this, method, parameterValues);
196224

197225
if (violations.size() == 0) {
198-
return getC2CTradeHistoryCall(startTime, endTime, page, recvWindow);
226+
return getC2CTradeHistoryCall(
227+
tradeType, startTimestamp, endTimestamp, page, rows, recvWindow);
199228
} else {
200229
throw new ConstraintViolationException((Set) violations);
201230
}
@@ -209,14 +238,16 @@ private okhttp3.Call getC2CTradeHistoryValidateBeforeCall(
209238
}
210239

211240
/**
212-
* Get C2C Trade History (USER_DATA) Get C2C Trade History * The max interval between startTime
213-
* and endTime is 30 days. * If startTime and endTime are not sent, the recent 7 days&#39; data
214-
* will be returned. * The earliest startTime is supported on June 10, 2020 * Return up to 200
215-
* records per request. Weight: 1
241+
* Get C2C Trade History (USER_DATA) Get C2C Trade History * The max interval between
242+
* startTimestamp and endTimestamp is 30 days. * If startTimestamp and endTimestamp are not
243+
* sent, the recent 30 days&#39; data will be returned. * You can only view data from the past 6
244+
* months. To see all C2C orders, please check https://c2c.binance.com/en/fiatOrder Weight: 1
216245
*
217-
* @param startTime (optional)
218-
* @param endTime (optional)
246+
* @param tradeType BUY, SELL (optional)
247+
* @param startTimestamp (optional)
248+
* @param endTimestamp (optional)
219249
* @param page Default 1 (optional)
250+
* @param rows default 100, max 100 (optional)
220251
* @param recvWindow (optional)
221252
* @return ApiResponse&lt;GetC2CTradeHistoryResponse&gt;
222253
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
@@ -232,9 +263,16 @@ private okhttp3.Call getC2CTradeHistoryValidateBeforeCall(
232263
* Trade History (USER_DATA) Documentation</a>
233264
*/
234265
public ApiResponse<GetC2CTradeHistoryResponse> getC2CTradeHistory(
235-
Long startTime, Long endTime, Long page, Long recvWindow) throws ApiException {
266+
String tradeType,
267+
Long startTimestamp,
268+
Long endTimestamp,
269+
Long page,
270+
Long rows,
271+
Long recvWindow)
272+
throws ApiException {
236273
okhttp3.Call localVarCall =
237-
getC2CTradeHistoryValidateBeforeCall(startTime, endTime, page, recvWindow);
274+
getC2CTradeHistoryValidateBeforeCall(
275+
tradeType, startTimestamp, endTimestamp, page, rows, recvWindow);
238276
java.lang.reflect.Type localVarReturnType =
239277
new TypeToken<GetC2CTradeHistoryResponse>() {}.getType();
240278
return localVarApiClient.execute(localVarCall, localVarReturnType);

clients/c2c/src/main/java/com/binance/connector/client/c2c/rest/api/C2cRestApi.java

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ public C2cRestApi(ApiClient apiClient) {
2020
}
2121

2222
/**
23-
* Get C2C Trade History (USER_DATA) Get C2C Trade History * The max interval between startTime
24-
* and endTime is 30 days. * If startTime and endTime are not sent, the recent 7 days&#39; data
25-
* will be returned. * The earliest startTime is supported on June 10, 2020 * Return up to 200
26-
* records per request. Weight: 1
23+
* Get C2C Trade History (USER_DATA) Get C2C Trade History * The max interval between
24+
* startTimestamp and endTimestamp is 30 days. * If startTimestamp and endTimestamp are not
25+
* sent, the recent 30 days&#39; data will be returned. * You can only view data from the past 6
26+
* months. To see all C2C orders, please check https://c2c.binance.com/en/fiatOrder Weight: 1
2727
*
28-
* @param startTime (optional)
29-
* @param endTime (optional)
28+
* @param tradeType BUY, SELL (optional)
29+
* @param startTimestamp (optional)
30+
* @param endTimestamp (optional)
3031
* @param page Default 1 (optional)
32+
* @param rows default 100, max 100 (optional)
3133
* @param recvWindow (optional)
3234
* @return ApiResponse&lt;GetC2CTradeHistoryResponse&gt;
3335
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
@@ -43,7 +45,14 @@ public C2cRestApi(ApiClient apiClient) {
4345
* Trade History (USER_DATA) Documentation</a>
4446
*/
4547
public ApiResponse<GetC2CTradeHistoryResponse> getC2CTradeHistory(
46-
Long startTime, Long endTime, Long page, Long recvWindow) throws ApiException {
47-
return c2CApi.getC2CTradeHistory(startTime, endTime, page, recvWindow);
48+
String tradeType,
49+
Long startTimestamp,
50+
Long endTimestamp,
51+
Long page,
52+
Long rows,
53+
Long recvWindow)
54+
throws ApiException {
55+
return c2CApi.getC2CTradeHistory(
56+
tradeType, startTimestamp, endTimestamp, page, rows, recvWindow);
4857
}
4958
}

clients/c2c/src/test/java/com/binance/connector/client/c2c/rest/api/C2CApiTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@ public void initApiClient() throws ApiException {
8787
*/
8888
@Test
8989
public void getC2CTradeHistoryTest() throws ApiException, CryptoException {
90-
Long startTime = 1623319461670L;
91-
Long endTime = 1641782889000L;
90+
String tradeType = "BUY";
91+
Long startTimestamp = 1623319461670L;
92+
Long endTimestamp = 1641782889000L;
9293
Long page = 1L;
94+
Long rows = 100L;
9395
Long recvWindow = 5000L;
9496
ApiResponse<GetC2CTradeHistoryResponse> response =
95-
api.getC2CTradeHistory(startTime, endTime, page, recvWindow);
97+
api.getC2CTradeHistory(tradeType, startTimestamp, endTimestamp, page, rows, recvWindow);
9698

9799
ArgumentCaptor<Call> callArgumentCaptor = ArgumentCaptor.forClass(Call.class);
98100
Mockito.verify(apiClientSpy)
@@ -105,10 +107,10 @@ public void getC2CTradeHistoryTest() throws ApiException, CryptoException {
105107
Request actualRequest = captorValue.request();
106108

107109
assertEquals(
108-
"startTime=1623319461670&endTime=1641782889000&page=1&recvWindow=5000&timestamp=1736393892000",
110+
"tradeType=BUY&startTimestamp=1623319461670&endTimestamp=1641782889000&page=1&rows=100&recvWindow=5000&timestamp=1736393892000",
109111
signInputCaptor.getValue());
110112
assertEquals(
111-
"d8669595398c3478db78736dbf4210642841e9920062e47dd9e504f877e947a8",
113+
"b832525dad5bec73a86b8ad4a5bda7aaa6e4708aeb1c6f85d37ef00a5aefc693",
112114
actualRequest.url().queryParameter("signature"));
113115
assertEquals(
114116
"/sapi/v1/c2c/orderMatch/listUserOrderHistory", actualRequest.url().encodedPath());
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
docs/AcceptQuoteRequest.md
2+
docs/AcceptQuoteResponse.md
3+
docs/CancelLimitOrderRequest.md
4+
docs/CancelLimitOrderResponse.md
5+
docs/GetConvertTradeHistoryResponse.md
6+
docs/GetConvertTradeHistoryResponseListInner.md
7+
docs/ListAllConvertPairsResponse.md
8+
docs/ListAllConvertPairsResponseInner.md
9+
docs/MarketDataApi.md
10+
docs/OrderStatusResponse.md
11+
docs/PlaceLimitOrderRequest.md
12+
docs/PlaceLimitOrderResponse.md
13+
docs/QueryLimitOpenOrdersResponse.md
14+
docs/QueryLimitOpenOrdersResponseListInner.md
15+
docs/QueryOrderQuantityPrecisionPerAssetResponse.md
16+
docs/QueryOrderQuantityPrecisionPerAssetResponseInner.md
17+
docs/SendQuoteRequestRequest.md
18+
docs/SendQuoteRequestResponse.md
19+
docs/TradeApi.md
20+
example_rest.md
21+
pom.xml
22+
pom_example.xml
23+
src/main/java/com/binance/connector/client/convert/rest/ConvertRestApiUtil.java
24+
src/main/java/com/binance/connector/client/convert/rest/JSON.java
25+
src/main/java/com/binance/connector/client/convert/rest/api/ConvertRestApi.java
26+
src/main/java/com/binance/connector/client/convert/rest/api/MarketDataApi.java
27+
src/main/java/com/binance/connector/client/convert/rest/api/TradeApi.java
28+
src/main/java/com/binance/connector/client/convert/rest/example/MarketDataApiExample.java
29+
src/main/java/com/binance/connector/client/convert/rest/example/TradeApiExample.java
30+
src/main/java/com/binance/connector/client/convert/rest/model/AcceptQuoteRequest.java
31+
src/main/java/com/binance/connector/client/convert/rest/model/AcceptQuoteResponse.java
32+
src/main/java/com/binance/connector/client/convert/rest/model/CancelLimitOrderRequest.java
33+
src/main/java/com/binance/connector/client/convert/rest/model/CancelLimitOrderResponse.java
34+
src/main/java/com/binance/connector/client/convert/rest/model/GetConvertTradeHistoryResponse.java
35+
src/main/java/com/binance/connector/client/convert/rest/model/GetConvertTradeHistoryResponseListInner.java
36+
src/main/java/com/binance/connector/client/convert/rest/model/ListAllConvertPairsResponse.java
37+
src/main/java/com/binance/connector/client/convert/rest/model/ListAllConvertPairsResponseInner.java
38+
src/main/java/com/binance/connector/client/convert/rest/model/OrderStatusResponse.java
39+
src/main/java/com/binance/connector/client/convert/rest/model/PlaceLimitOrderRequest.java
40+
src/main/java/com/binance/connector/client/convert/rest/model/PlaceLimitOrderResponse.java
41+
src/main/java/com/binance/connector/client/convert/rest/model/QueryLimitOpenOrdersResponse.java
42+
src/main/java/com/binance/connector/client/convert/rest/model/QueryLimitOpenOrdersResponseListInner.java
43+
src/main/java/com/binance/connector/client/convert/rest/model/QueryOrderQuantityPrecisionPerAssetResponse.java
44+
src/main/java/com/binance/connector/client/convert/rest/model/QueryOrderQuantityPrecisionPerAssetResponseInner.java
45+
src/main/java/com/binance/connector/client/convert/rest/model/SendQuoteRequestRequest.java
46+
src/main/java/com/binance/connector/client/convert/rest/model/SendQuoteRequestResponse.java
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.12.0

0 commit comments

Comments
 (0)