From 58d564902811d2cc895b8cbc0b2e40e2bf2133a1 Mon Sep 17 00:00:00 2001 From: SkrudjReal Date: Sun, 12 Oct 2025 14:14:04 +0200 Subject: [PATCH 1/4] update website domen --- xrocket/_pay.py | 4 ++-- xrocket/_trade.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xrocket/_pay.py b/xrocket/_pay.py index 5e5dcb8..01ccd6f 100644 --- a/xrocket/_pay.py +++ b/xrocket/_pay.py @@ -11,7 +11,7 @@ class PayAPI(App, Currencies, Invoice, Cheque, Subscription): :license: MIT """ - def __init__(self, api_key: str, api_url = "https://pay.ton-rocket.com", testnet=False): + def __init__(self, api_key: str, api_url = "https://pay.xrocket.tg", testnet=False): """ Class initialization. @@ -20,7 +20,7 @@ def __init__(self, api_key: str, api_url = "https://pay.ton-rocket.com", testnet self.api_key = api_key if testnet: - self.api_url = "https://dev-pay.ton-rocket.com" + self.api_url = "https://dev-pay.xrocket.tg" else: self.api_url = api_url self.client = AsyncClient(headers={'Rocket-Pay-Key': self.api_key}) diff --git a/xrocket/_trade.py b/xrocket/_trade.py index 0ac375f..202dc40 100644 --- a/xrocket/_trade.py +++ b/xrocket/_trade.py @@ -11,7 +11,7 @@ class TradeAPI(Account, OrderBook, Orders, Pairs, Rates, TimeSeries): :license: MIT """ - def __init__(self, api_key: str, api_url = "https://trade.ton-rocket.com", testnet=False): + def __init__(self, api_key: str, api_url = "https://trade.xrocket.tg", testnet=False): """ Class initialization. @@ -20,7 +20,7 @@ def __init__(self, api_key: str, api_url = "https://trade.ton-rocket.com", testn self.api_key = api_key if testnet: - self.api_url = "https://dev-trade.ton-rocket.com" + self.api_url = "https://dev-trade.xrocket.tg" else: self.api_url = api_url self.client = AsyncClient(headers={'Rocket-Exchange-Key': self.api_key}) From 7030501458653b8ea738f8f589979a7f5f8056d3 Mon Sep 17 00:00:00 2001 From: Scrooge Date: Sun, 12 Oct 2025 16:36:24 +0200 Subject: [PATCH 2/4] Update _pay.py --- xrocket/_pay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xrocket/_pay.py b/xrocket/_pay.py index 01ccd6f..2b18e80 100644 --- a/xrocket/_pay.py +++ b/xrocket/_pay.py @@ -32,6 +32,8 @@ async def request(self, method: str, request_method = "POST", **kwargs): :param `request_method` [str]: Request method of API :param `*kwargs`: Other params """ + return ">>> URL:", self.api_url + "/" + method + try: request = await self.client.request( method = request_method, From dd1a81f5a2a979bff0ae6457e77df878af8eaf49 Mon Sep 17 00:00:00 2001 From: SkrudjReal Date: Sun, 12 Oct 2025 16:45:46 +0200 Subject: [PATCH 3/4] remove testnet(deprecated) --- xrocket/_pay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrocket/_pay.py b/xrocket/_pay.py index 01ccd6f..847bb4b 100644 --- a/xrocket/_pay.py +++ b/xrocket/_pay.py @@ -4,7 +4,7 @@ class PayAPI(App, Currencies, Invoice, Cheque, Subscription): """ - Class for working with pay.ton-rocket.com. + Class for working with pay.xrocket.tg. :author: shibdev [t.me/shibdev] From 7eb7a08c27cec7d5556035503806872af850cc72 Mon Sep 17 00:00:00 2001 From: SkrudjReal Date: Sun, 12 Oct 2025 16:54:38 +0200 Subject: [PATCH 4/4] update xrocket url(domain) --- xrocket/_pay.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xrocket/_pay.py b/xrocket/_pay.py index c64e372..226cecc 100644 --- a/xrocket/_pay.py +++ b/xrocket/_pay.py @@ -20,7 +20,7 @@ def __init__(self, api_key: str, api_url = "https://pay.xrocket.tg", testnet=Fal self.api_key = api_key if testnet: - self.api_url = "https://dev-pay.xrocket.tg" + self.api_url = "https://pay.testnet.xrocket.tg" else: self.api_url = api_url self.client = AsyncClient(headers={'Rocket-Pay-Key': self.api_key}) @@ -32,8 +32,6 @@ async def request(self, method: str, request_method = "POST", **kwargs): :param `request_method` [str]: Request method of API :param `*kwargs`: Other params """ - return ">>> URL:", self.api_url + "/" + method - try: request = await self.client.request( method = request_method,