Fix trade recovery, local web isolation and backtest risk accounting

This commit is contained in:
Igol committed 2026-10-22 21:49:20 +03:00
1 parent 5c6b0dc54a
commit 6aa76064dc
29 files changed
+2662 -1693

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ class ProxyTests(unittest.TestCase):
got = json.loads(urllib.request.urlopen(base + "/api/state?x=1").read())
self.assertEqual(got, {"method": "GET", "path": "/api/state?x=1"})
req = urllib.request.Request(base + "/api/coin/A/start", data=json.dumps({"a": 1}).encode(),
method="POST", headers={"Content-Type": "application/json"})
method="POST", headers={"Content-Type": "application/json", "X-Sim": "1"})
got = json.loads(urllib.request.urlopen(req).read())
self.assertEqual(got["body"], {"a": 1})
finally: