diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 10:08:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 10:08:32 +0900 |
| commit | 71a01fb5577ae8326072020a8de49361f16bd3de (patch) | |
| tree | 7515f1e5d67d308cefbaa0d9ee8a13984f20b73f /shared/tests/test_alpaca.py | |
| parent | 6f162e4696e8e90fcbd6ca84d0ad7f0d187dfb01 (diff) | |
refactor: migrate to US stocks with Alpaca API
- Replace Binance/ccxt with Alpaca REST client (paper + live)
- Add MOC (Market on Close) strategy for overnight gap trading
- Wire sentiment into strategy engine main loop
- Add EMA + bullish candle entry filters to Asian RSI
- Remove crypto-specific exchange factory
- Update config: Alpaca keys replace Binance keys
- 399 tests passing, lint clean
Diffstat (limited to 'shared/tests/test_alpaca.py')
| -rw-r--r-- | shared/tests/test_alpaca.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/tests/test_alpaca.py b/shared/tests/test_alpaca.py index 7c8eab1..080b7c4 100644 --- a/shared/tests/test_alpaca.py +++ b/shared/tests/test_alpaca.py @@ -1,4 +1,5 @@ """Tests for Alpaca API client.""" + import pytest from unittest.mock import AsyncMock, MagicMock from shared.alpaca import AlpacaClient @@ -40,6 +41,7 @@ async def test_get_buying_power(client): result = await client.get_buying_power() from decimal import Decimal + assert result == Decimal("10000.00") await client.close() |
