Skip to content

Commit 2d09084

Browse files
Merge branch '2.1.0' into 'master'
2.1.0 See merge request exchange/code/sdk/bitmart-java-sdk-api!21
2 parents 8c831b4 + 3950d4d commit 2d09084

15 files changed

Lines changed: 515 additions & 6 deletions
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: 🐛 Bug Report
2+
title: "[Bug] "
3+
description: Report a bug to help us reproduce and fix it.
4+
labels: [ "bug" ]
5+
assignees: [ "11101171" ]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
<img src="https://developer-pro.bitmart.com/images/logo-light@3x-caec722f.png" alt="BitMart logo" height="90px" align="right" />
11+
12+
Thank you for finding the time to report the problem! We really appreciate the community efforts to improve BitMart SDK.
13+
14+
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/bitmartexchange/bitmart-java-sdk-api/issues).
15+
16+
- type: dropdown
17+
attributes:
18+
label: Module Selection
19+
description: |
20+
Selecting a module makes it easier to locate problems
21+
multiple: false
22+
options:
23+
- "Http"
24+
- "Websocket"
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: code
30+
attributes:
31+
label: Describe the Bug
32+
description: |
33+
Please describe the bug clearly and concisely, preferably with code that reproduces the bug. Code snippets should be as concise as possible, and please take the time to remove irrelevant code to help us debug effectively. We hope that you can get the same results as you by copying the code and running it, so please avoid any external data or include related imports, etc.
34+
placeholder: |
35+
A clear and concise description of what the bug is.
36+
validations:
37+
required: true
38+
39+
- type: textarea
40+
id: others
41+
attributes:
42+
label: Additional Supplementary Information
43+
description: |
44+
If you have anything else to add, please write it here.
45+
validations:
46+
required: false
47+
48+
- type: markdown
49+
attributes:
50+
value: >
51+
Thanks for your contribution 🎉!
52+
53+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 🚀 Feature Request
2+
description: Submit a request for a new feature.
3+
title: "[Feature] "
4+
labels: [ "feature" ]
5+
assignees: [ "11101171" ]
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
<img src="https://developer-pro.bitmart.com/images/logo-light@3x-caec722f.png" height="90px" align="right" />
11+
12+
Thank you for finding the time to propose new feature!
13+
14+
You could submit a request for a new BitMart SDK feature here, including but not limited to: new features or models, incomplete or unusable features, accuracy/performance not as expected, etc.
15+
16+
#### Before submitting a bug, please make sure the issue hasn't been already addressed by searching through [the existing and past issues](https://github.com/bitmartexchange/bitmart-java-sdk-api/issues).
17+
18+
19+
- type: textarea
20+
attributes:
21+
label: Feature Description
22+
description: A short description of your feature
23+
24+
- type: textarea
25+
id: alternatives
26+
attributes:
27+
label: Alternatives
28+
description: |
29+
A description of any alternative solutions or features you've considered, if any.
30+
validations:
31+
required: false
32+
33+
- type: markdown
34+
attributes:
35+
value: "Thanks for your contribution 🎉!"

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question or get support
4+
url: https://github.com/bitmartexchange/bitmart-java-sdk-api/discussions
5+
about: Ask a question or request support for using BitMart SDK

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
Changelog
33
=========================
44

5+
6+
### v2.1.0 Release
7+
#### New Features
8+
- New
9+
- `/contract/private/submit-tp-sl-order`
10+
- `/contract/private/modify-plan-order`
11+
- `/contract/private/modify-preset-plan-order`
12+
- `/contract/private/modify-tp-sl-order`
13+
- Updated
14+
- `contract/private/cancel-order` Add new request field **client_order_id**
15+
- `/contract/private/cancel-plan-order` Add new request field **client_order_id**
16+
- `/contract/private/current-plan-order` Add new request field **plan_type**
17+
18+
---
19+
520
### v2.0.1 Release
621
#### Improvements
722
- Updated examples in the readme file

SECURITY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Security Policy
2+
3+
4+
## Reporting a Vulnerability
5+
6+
We encourage responsible disclosure of security issues to BitMart and please email reports about any security issues you find to security@bitmart.com.
7+
8+
9+
After the security team receives your email, they will communicate with you in time. The security team will work to keep you informed of an issue fix.
10+
11+
In order to reproduce and identify the issue, please include the following information along with your email:
12+
13+
* The details of the vulnerability including how to reproduce it. Try to attach a PoC.
14+
* The attack scenario and what an attacker might be able to achieve with this issue.
15+
* Whether this vulnerability has been made public. If it is, please attach details.
16+
* Mark the vulnerability from BitMart sdk.

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.bitmartexchange</groupId>
88
<artifactId>bitmart-java-sdk-api</artifactId>
9-
<version>2.0.1</version>
9+
<version>2.1.0</version>
1010
<packaging>jar</packaging>
1111
<name>${project.groupId}:${project.artifactId}</name>
1212
<description>A Java SDK specially used to call BitMart OpenAPI</description>

src/main/java/com/bitmart/api/Call.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class Call {
2121

2222
private final CloudContext cloudContext;
2323
private final OkHttpClient okHttpClient;
24-
private static final String USER_AGENT = "BitMart-Java-SDK-API/2.0.1";
24+
private static final String USER_AGENT = "BitMart-Java-SDK-API/2.1.0";
2525

2626
private static OkHttpClient createOkHttpClient(CloudContext cloudContext) {
2727
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();

src/main/java/com/bitmart/api/request/contract/prv/CancelOrderRequest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ public class CancelOrderRequest extends CloudRequest {
2525
/**
2626
* Order ID
2727
*/
28-
@ParamKey(value = "order_id", required = true)
28+
@ParamKey(value = "order_id")
2929
private String orderId;
3030

31+
32+
/**
33+
* Client-defined OrderId
34+
*/
35+
@ParamKey(value = "client_order_id")
36+
private String clientOrderId;
37+
3138
/**
3239
* Applicable for canceling a specific contract order
3340
*/

src/main/java/com/bitmart/api/request/contract/prv/CancelPlanOrderRequest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ public class CancelPlanOrderRequest extends CloudRequest {
2525
/**
2626
* Order ID
2727
*/
28-
@ParamKey(value = "order_id", required = true)
28+
@ParamKey(value = "order_id")
2929
private String orderId;
3030

31+
/**
32+
* Order ID
33+
*/
34+
@ParamKey(value = "client_order_id")
35+
private String clientOrderId;
36+
3137
/**
3238
* Applicable for canceling a specific contract plan order
3339
*/

src/main/java/com/bitmart/api/request/contract/prv/GetAllCurrentPlanOrdersRequest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ public class GetAllCurrentPlanOrdersRequest extends CloudRequest {
3636
@ParamKey("limit")
3737
private Integer limit;
3838

39+
/**
40+
* Plan order type
41+
* -plan
42+
* - profit_loss
43+
* default all
44+
*/
45+
@ParamKey("plan_type")
46+
private String planType;
47+
3948
/**
4049
* Applicable for querying contract all plan orders
4150
*/

0 commit comments

Comments
 (0)