Skip to content

Commit 7caf12c

Browse files
authored
Merge pull request modelcontextprotocol#28 from jkoelker/jk/technicals
fix(tools): fix get_advanced_price_history
2 parents ee1cc54 + 71523f3 commit 7caf12c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/schwab_mcp/tools/_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PriceHistoryNamespace(Protocol):
1818
class PriceHistoryClient(Protocol):
1919
PriceHistory: PriceHistoryNamespace
2020

21-
def get_advanced_price_history(
21+
def get_price_history(
2222
self, symbol: str, **kwargs: Any
2323
) -> Awaitable[Any]: ...
2424

src/schwab_mcp/tools/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def get_advanced_price_history(
8181
frequency = int(frequency)
8282

8383
return await call(
84-
client.get_advanced_price_history,
84+
client.get_price_history,
8585
symbol,
8686
period_type=period_type_enum,
8787
period=period_enum,

tests/test_history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DummyHistoryClient:
2222
FrequencyType=Enum("FrequencyType", "MINUTE DAILY WEEKLY MONTHLY"),
2323
)
2424

25-
async def get_advanced_price_history(self, *args, **kwargs):
25+
async def get_price_history(self, *args, **kwargs):
2626
return None
2727

2828
async def get_price_history_every_minute(self, *args, **kwargs):
@@ -74,7 +74,7 @@ async def fake_call(func, *args, **kwargs):
7474
)
7575

7676
assert result == "ok"
77-
assert captured["func"] == client.get_advanced_price_history
77+
assert captured["func"] == client.get_price_history
7878

7979
args = captured["args"]
8080
assert isinstance(args, tuple)

0 commit comments

Comments
 (0)