mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
chore: fix formatting
This commit is contained in:
@@ -23,7 +23,14 @@ PostDataT = dict[str, Any] | list[dict[str, Any]] | None
|
||||
|
||||
class FtRestClient:
|
||||
def __init__(
|
||||
self, serverurl, username=None, password=None, *, pool_connections=10, pool_maxsize=10, timeout=10
|
||||
self,
|
||||
serverurl,
|
||||
username=None,
|
||||
password=None,
|
||||
*,
|
||||
pool_connections=10,
|
||||
pool_maxsize=10,
|
||||
timeout=10,
|
||||
):
|
||||
self._serverurl = serverurl
|
||||
self._session = requests.Session()
|
||||
@@ -51,7 +58,9 @@ class FtRestClient:
|
||||
url = urlunparse((schema, netloc, path, par, query, fragment))
|
||||
|
||||
try:
|
||||
resp = self._session.request(method, url, headers=hd, timeout=self._timeout, data=json.dumps(data))
|
||||
resp = self._session.request(
|
||||
method, url, headers=hd, timeout=self._timeout, data=json.dumps(data)
|
||||
)
|
||||
# return resp.text
|
||||
return resp.json()
|
||||
except RequestConnectionError:
|
||||
|
||||
Reference in New Issue
Block a user