Skip to content

Commit

Permalink
add kucoin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Dec 20, 2023
1 parent be59c92 commit 9c3653f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Exchanges/Kucoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function checkType(){
}
}

class Account extends Base implements AccountInterface
class AccountKucoin extends Base implements AccountInterface
{
/**
*
Expand All @@ -52,7 +52,7 @@ function get(array $data){
}
}

class Market extends Base implements MarketInterface
class MarketKucoin extends Base implements MarketInterface
{
/**
*
Expand All @@ -69,7 +69,7 @@ function depth(array $data){
}
}

class Trader extends Base implements TraderInterface
class TraderKucoin extends Base implements TraderInterface
{
/**
*
Expand Down Expand Up @@ -178,15 +178,15 @@ function __construct($key,$secret,$passphrase,$host=''){
}

function account(){
return new Account($this->platform_future,$this->platform_spot,$this->host);
return new AccountKucoin($this->platform_future,$this->platform_spot,$this->host);
}

function market(){
return new Market($this->platform_future,$this->platform_spot,$this->host);
return new MarketKucoin($this->platform_future,$this->platform_spot,$this->host);
}

function trader(){
return new Trader($this->platform_future,$this->platform_spot,$this->host);
return new TraderKucoin($this->platform_future,$this->platform_spot,$this->host);
}

function getPlatform(string $type=''){
Expand Down

0 comments on commit 9c3653f

Please sign in to comment.