Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions xrocket/_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

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]

: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.

Expand All @@ -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://pay.testnet.xrocket.tg"
else:
self.api_url = api_url
self.client = AsyncClient(headers={'Rocket-Pay-Key': self.api_key})
Expand Down
4 changes: 2 additions & 2 deletions xrocket/_trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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})
Expand Down