From e766783993aaf65cdcef8558ab1c85b7c3038714 Mon Sep 17 00:00:00 2001 From: Cong Zhang Date: Tue, 7 Nov 2023 13:45:17 +0800 Subject: [PATCH] add get_full_transactions_by_time --- Client.php | 11 +++++++++++ ClientTest.php | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/Client.php b/Client.php index bb20189..4e426c8 100644 --- a/Client.php +++ b/Client.php @@ -285,6 +285,17 @@ function getTransactionsByTime(array $params = []) return $this->request("GET", "/v1/custody/transactions_by_time/", $params); } + /*** + * Get transactions by time ex + * @param array $params + * @return mixed|string + * @throws Exception + */ + function getTransactionsByTimeEx(array $params = []) + { + return $this->request("GET", "/v1/custody/transactions_by_time_ex/", $params); + } + /*** * Get Pending Transactions * @param array $params diff --git a/ClientTest.php b/ClientTest.php index c69da03..62b16e4 100644 --- a/ClientTest.php +++ b/ClientTest.php @@ -437,6 +437,15 @@ public function testGetTransactionsByTime() $this->assertTrue($res->success); } + /** + * @throws Exception + */ + public function testGetTransactionsByTimeEx() + { + $res = $this->client->getTransactionsByTimeEx(); + $this->assertTrue($res->success); + } + /** * @throws Exception */