Skip to content

Commit bbc1b0e

Browse files
authored
Merge pull request #1 from Kucoin/snapshot/2025.05.29
Snapshot/2025.05.29
2 parents 24688ef + a1bcedd commit bbc1b0e

22 files changed

+162
-142
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ API documentation [Changelog](https://www.kucoin.com/docs-new/change-log)
44

55
Current synchronized API documentation version [20250313](https://www.kucoin.com/docs-new/change-log#20250313)
66

7+
## 2025-05-29(PHP 0.1.1-alpha)
8+
- Fix compatibility issues on non-macOS systems by enforcing case-sensitive PSR-4 autoloading.
9+
10+
## 2025-05-27(GO 1.2.1)
11+
- Fix the Golang type mapping: map OpenAPI number type to float64 to prevent overflow
12+
713
## 2025-05-26(PHP 0.1.0-alpha)
814
- Release PHP implementation
915

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM php:8.1-cli
2+
3+
RUN apt-get update && apt-get install -y unzip git \
4+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
5+
6+
WORKDIR /app
7+
COPY src ./src
8+
COPY composer.json ./
9+
COPY example ./example
10+
RUN composer install
11+
12+
WORKDIR /app/example
13+
#CMD ["php", "ExampleGetStarted.php"]
14+
CMD ["php", "ExampleWs.php"]

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.0-alpha`
16+
### Latest Version: `0.1.1-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
23+
composer require kucoin/kucoin-universal-sdk=0.1.1-alpha
2424
```
2525

2626
## 📖 Getting Started

src/Generate/Service/AccountService.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Account\Account\AccountAPI;
7-
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositAPI;
8-
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeAPI;
9-
use KuCoin\UniversalSDK\Generate\Account\SubAccount\SubAccountAPI;
10-
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferAPI;
11-
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalAPI;
6+
use KuCoin\UniversalSDK\Generate\Account\Account\AccountApi;
7+
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositApi;
8+
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeApi;
9+
use KuCoin\UniversalSDK\Generate\Account\Subaccount\SubAccountApi;
10+
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferApi;
11+
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalApi;
1212

1313
interface AccountService
1414
{
15-
public function getAccountApi(): AccountAPI;
15+
public function getAccountApi(): AccountApi;
1616

17-
public function getDepositApi(): DepositAPI;
17+
public function getDepositApi(): DepositApi;
1818

19-
public function getWithdrawalApi(): WithdrawalAPI;
19+
public function getWithdrawalApi(): WithdrawalApi;
2020

21-
public function getFeeApi(): FeeAPI;
21+
public function getFeeApi(): FeeApi;
2222

23-
public function getSubAccountApi(): SubAccountAPI;
23+
public function getSubAccountApi(): SubAccountApi;
2424

25-
public function getTransferApi(): TransferAPI;
25+
public function getTransferApi(): TransferApi;
2626
}

src/Generate/Service/AccountServiceImpl.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Account\Account\AccountAPI;
7-
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositAPI;
8-
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeAPI;
9-
use KuCoin\UniversalSDK\Generate\Account\SubAccount\SubAccountAPI;
10-
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferAPI;
11-
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalAPI;
12-
use KuCoin\UniversalSDK\Generate\Account\Account\AccountAPIImpl;
13-
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositAPIImpl;
14-
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeAPIImpl;
15-
use KuCoin\UniversalSDK\Generate\Account\SubAccount\SubAccountAPIImpl;
16-
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferAPIImpl;
17-
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalAPIImpl;
6+
use KuCoin\UniversalSDK\Generate\Account\Account\AccountApi;
7+
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositApi;
8+
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeApi;
9+
use KuCoin\UniversalSDK\Generate\Account\Subaccount\SubAccountApi;
10+
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferApi;
11+
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalApi;
12+
use KuCoin\UniversalSDK\Generate\Account\Account\AccountApiImpl;
13+
use KuCoin\UniversalSDK\Generate\Account\Deposit\DepositApiImpl;
14+
use KuCoin\UniversalSDK\Generate\Account\Fee\FeeApiImpl;
15+
use KuCoin\UniversalSDK\Generate\Account\Subaccount\SubAccountApiImpl;
16+
use KuCoin\UniversalSDK\Generate\Account\Transfer\TransferApiImpl;
17+
use KuCoin\UniversalSDK\Generate\Account\Withdrawal\WithdrawalApiImpl;
1818

1919
class AccountServiceImpl implements AccountService
2020
{
@@ -29,40 +29,40 @@ class AccountServiceImpl implements AccountService
2929
public function __construct($transport)
3030
{
3131
$this->transport = $transport;
32-
$this->account = new AccountAPIImpl($transport);
33-
$this->deposit = new DepositAPIImpl($transport);
34-
$this->withdrawal = new WithdrawalAPIImpl($transport);
35-
$this->fee = new FeeAPIImpl($transport);
36-
$this->subAccount = new SubAccountAPIImpl($transport);
37-
$this->transfer = new TransferAPIImpl($transport);
32+
$this->account = new AccountApiImpl($transport);
33+
$this->deposit = new DepositApiImpl($transport);
34+
$this->withdrawal = new WithdrawalApiImpl($transport);
35+
$this->fee = new FeeApiImpl($transport);
36+
$this->subAccount = new SubAccountApiImpl($transport);
37+
$this->transfer = new TransferApiImpl($transport);
3838
}
3939

40-
public function getAccountApi(): AccountAPI
40+
public function getAccountApi(): AccountApi
4141
{
4242
return $this->account;
4343
}
4444

45-
public function getDepositApi(): DepositAPI
45+
public function getDepositApi(): DepositApi
4646
{
4747
return $this->deposit;
4848
}
4949

50-
public function getWithdrawalApi(): WithdrawalAPI
50+
public function getWithdrawalApi(): WithdrawalApi
5151
{
5252
return $this->withdrawal;
5353
}
5454

55-
public function getFeeApi(): FeeAPI
55+
public function getFeeApi(): FeeApi
5656
{
5757
return $this->fee;
5858
}
5959

60-
public function getSubAccountApi(): SubAccountAPI
60+
public function getSubAccountApi(): SubAccountApi
6161
{
6262
return $this->subAccount;
6363
}
6464

65-
public function getTransferApi(): TransferAPI
65+
public function getTransferApi(): TransferApi
6666
{
6767
return $this->transfer;
6868
}

src/Generate/Service/AffiliateService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateAPI;
6+
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateApi;
77

88
interface AffiliateService
99
{
10-
public function getAffiliateApi(): AffiliateAPI;
10+
public function getAffiliateApi(): AffiliateApi;
1111
}

src/Generate/Service/AffiliateServiceImpl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateAPI;
7-
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateAPIImpl;
6+
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateApi;
7+
use KuCoin\UniversalSDK\Generate\Affiliate\Affiliate\AffiliateApiImpl;
88

99
class AffiliateServiceImpl implements AffiliateService
1010
{
@@ -14,10 +14,10 @@ class AffiliateServiceImpl implements AffiliateService
1414
public function __construct($transport)
1515
{
1616
$this->transport = $transport;
17-
$this->affiliate = new AffiliateAPIImpl($transport);
17+
$this->affiliate = new AffiliateApiImpl($transport);
1818
}
1919

20-
public function getAffiliateApi(): AffiliateAPI
20+
public function getAffiliateApi(): AffiliateApi
2121
{
2222
return $this->affiliate;
2323
}

src/Generate/Service/BrokerService.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Broker\APIBroker\APIBrokerAPI;
7-
use KuCoin\UniversalSDK\Generate\Broker\NDBroker\NDBrokerAPI;
6+
use KuCoin\UniversalSDK\Generate\Broker\Apibroker\APIBrokerApi;
7+
use KuCoin\UniversalSDK\Generate\Broker\Ndbroker\NDBrokerApi;
88

99
interface BrokerService
1010
{
11-
public function getAPIBrokerApi(): APIBrokerAPI;
11+
public function getAPIBrokerApi(): APIBrokerApi;
1212

13-
public function getNDBrokerApi(): NDBrokerAPI;
13+
public function getNDBrokerApi(): NDBrokerApi;
1414
}

src/Generate/Service/BrokerServiceImpl.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\Broker\APIBroker\APIBrokerAPI;
7-
use KuCoin\UniversalSDK\Generate\Broker\NDBroker\NDBrokerAPI;
8-
use KuCoin\UniversalSDK\Generate\Broker\APIBroker\APIBrokerAPIImpl;
9-
use KuCoin\UniversalSDK\Generate\Broker\NDBroker\NDBrokerAPIImpl;
6+
use KuCoin\UniversalSDK\Generate\Broker\Apibroker\APIBrokerApi;
7+
use KuCoin\UniversalSDK\Generate\Broker\Ndbroker\NDBrokerApi;
8+
use KuCoin\UniversalSDK\Generate\Broker\Apibroker\APIBrokerApiImpl;
9+
use KuCoin\UniversalSDK\Generate\Broker\Ndbroker\NDBrokerApiImpl;
1010

1111
class BrokerServiceImpl implements BrokerService
1212
{
@@ -17,16 +17,16 @@ class BrokerServiceImpl implements BrokerService
1717
public function __construct($transport)
1818
{
1919
$this->transport = $transport;
20-
$this->aPIBroker = new APIBrokerAPIImpl($transport);
21-
$this->nDBroker = new NDBrokerAPIImpl($transport);
20+
$this->aPIBroker = new APIBrokerApiImpl($transport);
21+
$this->nDBroker = new NDBrokerApiImpl($transport);
2222
}
2323

24-
public function getAPIBrokerApi(): APIBrokerAPI
24+
public function getAPIBrokerApi(): APIBrokerApi
2525
{
2626
return $this->aPIBroker;
2727
}
2828

29-
public function getNDBrokerApi(): NDBrokerAPI
29+
public function getNDBrokerApi(): NDBrokerApi
3030
{
3131
return $this->nDBroker;
3232
}

src/Generate/Service/CopyTradingService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
namespace KuCoin\UniversalSDK\Generate\Service;
55

6-
use KuCoin\UniversalSDK\Generate\CopyTrading\Futures\FuturesAPI;
6+
use KuCoin\UniversalSDK\Generate\CopyTrading\Futures\FuturesApi;
77

88
interface CopyTradingService
99
{
10-
public function getFuturesApi(): FuturesAPI;
10+
public function getFuturesApi(): FuturesApi;
1111
}

0 commit comments

Comments
 (0)