Skip to content

Commit 247a2e0

Browse files
authored
Merge pull request #11 from Kucoin/release/2025.01.16
Release/2025.01.16
2 parents 52b2e03 + 4db52a1 commit 247a2e0

File tree

229 files changed

+100286
-86263
lines changed

Some content is hidden

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

229 files changed

+100286
-86263
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## 2025-01-16(1.1.0)
4+
- Updated the API sequence to be consistent with the documentation.
5+
- Updated the license.
6+
- Added Copy Trading API.
7+
8+
## 2024-12-31(1.0.0)
9+
10+
- Released the official version 1.0.0.

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,8 @@ When making changes to the version of the SDK, ensure the following files are up
6666
```bash
6767
pip install kucoin-universal-sdk==1.0.1
6868
```
69+
70+
4. **CHANGELOG File**
71+
- Add release notes to the CHANGELOG
6972

7073
Ensure all version updates are consistent across these files before committing changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 KuCoin
3+
Copyright (c) 2025 KuCoin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ define generate-code
6565
@echo "$(GREEN)lang: $(lang), clean...$(NC)"
6666
docker run --rm -v "${PWD}:/local" $(IMAGE_NAME):$(IMAGE_TAG) rm -rf $(outdir)
6767

68+
@echo "$(GREEN)lang: ${lang}, copy changelog...$(NC)"
69+
docker run --rm -v "${PWD}:/local" $(IMAGE_NAME):$(IMAGE_TAG) cp /local/CHANGELOG.md /local/sdk/$(lang)
70+
6871
@make -f generate.mk generate lang=$(1) subdir=$(2)
6972

7073
@echo "$(GREEN)lang: $(lang), clean...$(NC)"
@@ -75,6 +78,7 @@ define generate-code
7578
endef
7679

7780
define generate-postman
81+
docker run --rm -v "${PWD}:/local" $(IMAGE_NAME):$(IMAGE_TAG) cp /local/CHANGELOG.md /local/sdk/postman
7882
@make -f generate.mk generate-postman
7983
endef
8084

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The **KuCoin Universal SDK** is the official SDK provided by KuCoin, offering a
3232

3333
## 🛠️ Installation
3434

35-
### Latest Version: `1.0.0`
35+
### Latest Version: `1.1.0`
3636

3737
### Python Installation
3838

@@ -134,6 +134,9 @@ Find usage examples for your desired language by selecting the corresponding lin
134134
| Python | [sdk/python/examples/](sdk/python/example/)|
135135
| Go | [sdk/go/examples/](sdk/golang/example/) |
136136

137+
## 📋 Changelog
138+
139+
For a detailed list of changes, see the [Changelog](./CHANGELOG.md).
137140

138141
## 🏗️ Technical Design
139142

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.0
1+
v1.1.0

generator/preprocessor/api_meta.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class ApiMetaUtil:
11-
1211
doc_id = []
1312

1413
@staticmethod
@@ -43,7 +42,7 @@ def group_api(api_collection, entry) -> dict:
4342
raise Exception("illegal customApiFields" + api_name)
4443

4544
x_fields = {
46-
'x-api-doc' : api_doc,
45+
'x-api-doc': api_doc,
4746
}
4847
for k in api_fields:
4948
x_fields[f'x-{k}'] = api_fields[k]
@@ -256,7 +255,7 @@ def generate_path_operation(api):
256255
result = {
257256
'name': query_para['name'],
258257
'in': 'query',
259-
'description': ApiMetaUtil.escape_url(query_para['description'], ApiMetaUtil.doc_id),
258+
'description': ApiMetaUtil.escape_url(query_para['description'], ApiMetaUtil.doc_id),
260259
'required': query_para['required'],
261260
'schema': schema,
262261
}
@@ -361,8 +360,11 @@ def generator_openapi(service, api_collection, entry):
361360
paths = {}
362361
schemas = {}
363362

363+
api_idx = 0
364364
for api in api_collection:
365+
api_idx = api_idx + 1
365366
path_operation = ApiMetaUtil.generate_path_operation(api)
367+
path_operation['operationId'] = "{:03d}".format(api_idx)
366368
method = api['api']['method']
367369
path = api['api']['path']
368370

sdk/golang/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## 2025-01-16(1.1.0)
4+
- Updated the API sequence to be consistent with the documentation.
5+
- Updated the license.
6+
- Added Copy Trading API.
7+
8+
## 2024-12-31(1.0.0)
9+
10+
- Released the official version 1.0.0.

sdk/golang/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 KuCoin
3+
Copyright (c) 2025 KuCoin
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/golang/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For an overview of the project and SDKs in other languages, refer to the [Main R
99

1010
## 📦 Installation
1111

12-
### Latest Version: `1.0.0`
12+
### Latest Version: `1.1.0`
1313
Install the Golang SDK using `go get`:
1414

1515
```bash
@@ -88,6 +88,9 @@ Official Documentation: [KuCoin API Docs](https://www.kucoin.com/docs-new)
8888

8989
Explore more examples in the [example/](example/) directory for advanced usage.
9090

91+
## 📋 Changelog
92+
93+
For a detailed list of changes, see the [Changelog](./CHANGELOG.md).
9194

9295
## 📌 Special Notes on APIs
9396

0 commit comments

Comments
 (0)