Skip to content

Commit 9038ab6

Browse files
committed
feat(api): update API for all language
1 parent 99e155c commit 9038ab6

File tree

6 files changed

+34
-13
lines changed

6 files changed

+34
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
API documentation [Changelog](https://www.kucoin.com/docs-new/change-log)
44

5-
Current synchronized API documentation version [20250313](https://www.kucoin.com/docs-new/change-log#20250313)
5+
Current synchronized API documentation version [20250529](https://www.kucoin.com/docs-new/change-log#20250529)
6+
7+
## 2025-06-05(1.3.0)
8+
- Update the latest APIs, documentation, etc
69

710
## 2025-05-29(PHP 0.1.1-alpha)
811
- Fix compatibility issues on non-macOS systems by enforcing case-sensitive PSR-4 autoloading.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ For an overview of the project and SDKs in other languages, refer to the [Main R
1313

1414
## 📦 Installation
1515

16-
### Latest Version: `0.1.1-alpha`
16+
### Latest Version: `0.1.2-alpha`
1717

1818
**Note**: This SDK is currently in the Alpha phase. We are actively iterating and improving its features, stability, and documentation. Feedback and contributions are highly encouraged to help us refine the SDK.
1919

2020
Install the SDK using `composer`:
2121

2222
```bash
23-
composer require kucoin/kucoin-universal-sdk=0.1.1-alpha
23+
composer require kucoin/kucoin-universal-sdk=0.1.2-alpha
2424
```
2525

2626
## 📖 Getting Started

src/Generate/Futures/FuturesPrivate/CrossLeverageEvent.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,23 @@ public function jsonSerialize($serializer)
4242
return $serializer->serialize($this, "json");
4343
}
4444

45+
/**
46+
* @param string $json
47+
* @param Serializer $serializer
48+
* @return self
49+
*/
4550
public static function jsonDeserialize($json, $serializer)
4651
{
47-
$item = $serializer->deserialize(
52+
if ($json === null) {
53+
return new self();
54+
}
55+
$data = $serializer->deserialize(
4856
$json,
49-
"array<KuCoin\UniversalSDK\Generate\Futures\FuturesPrivate\CrossLeverageDataValue>",
57+
"array<string, KuCoin\UniversalSDK\Generate\Futures\FuturesPrivate\CrossLeverageDataValue>",
5058
"json"
5159
);
5260
$obj = new self();
53-
$obj->data = $item;
61+
$obj->data = $data;
5462
return $obj;
5563
}
5664

src/Generate/Futures/FuturesPrivate/MarginModeEvent.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ class MarginModeEvent implements Response
1414
{
1515
/**
1616
* The SYMBOL is the key with value \"CROSS\" or \"ISOLATED\"
17-
* @var string $sYMBOL
18-
* @Type("string")
19-
* @SerializedName("SYMBOL")
17+
* @var array<string,string> $data
18+
* @Type("array<string, string>")
19+
* @SerializedName("data")
2020
*/
21-
public $sYMBOL;
21+
public $data;
2222

2323
private function __construct() {}
2424

@@ -49,7 +49,17 @@ public function jsonSerialize($serializer)
4949
*/
5050
public static function jsonDeserialize($json, $serializer)
5151
{
52-
return $serializer->deserialize($json, MarginModeEvent::class, "json");
52+
if ($json === null) {
53+
return new self();
54+
}
55+
$data = $serializer->deserialize(
56+
$json,
57+
"array<string, string>",
58+
"json"
59+
);
60+
$obj = new self();
61+
$obj->data = $data;
62+
return $obj;
5363
}
5464

5565
/**

src/Generate/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
class Version
66
{
77
const SDK_VERSION = "0.1.2-alpha";
8-
const SDK_GENERATE_DATE = "2025-06-04";
8+
const SDK_GENERATE_DATE = "2025-06-09";
99
}

tests/e2e/ws/Futures/FuturesPrivateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function (Exception $e) {
325325
}
326326
)->then(function (string $id) {
327327
Logger::info("Subscribed with ID: $id");
328-
return waitFor(5.0, $id);
328+
return waitFor(30.0, $id);
329329
})->then(function (string $id) {
330330
Logger::info("Unsubscribing...");
331331
return self::$futuresPrivate->unSubscribe($id)->catch(function ($e) {

0 commit comments

Comments
 (0)