summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 10:12:06 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 10:12:06 +0900
commit35120795147adf53de59b7f2a3c8aa14adec9a56 (patch)
treefb747eae72d40fbf0520d6bca917cd0e0ba87b66 /tests/integration
parent47465828d839c460a6af12894451539908d76c26 (diff)
refactor: update data-collector and order-executor for Alpaca API
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test_order_execution_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/test_order_execution_flow.py b/tests/integration/test_order_execution_flow.py
index 819b7db..d842d29 100644
--- a/tests/integration/test_order_execution_flow.py
+++ b/tests/integration/test_order_execution_flow.py
@@ -27,7 +27,7 @@ async def test_signal_to_order_flow():
)
exchange = AsyncMock()
- exchange.fetch_balance = AsyncMock(return_value={"free": {"USDT": 10000}})
+ exchange.get_buying_power = AsyncMock(return_value=Decimal("10000"))
risk_manager = RiskManager(
max_position_size=Decimal("0.5"),
@@ -74,7 +74,7 @@ async def test_signal_rejected_by_risk_manager():
)
exchange = AsyncMock()
- exchange.fetch_balance = AsyncMock(return_value={"free": {"USDT": 1000}})
+ exchange.get_buying_power = AsyncMock(return_value=Decimal("1000"))
risk_manager = RiskManager(
max_position_size=Decimal("0.1"),