Skip to content

Commit 0c93e58

Browse files
committed
fix(core): update Tushare API initialization method
1 parent 3093488 commit 0c93e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

finance_mcp/core/findata/history_calculate_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def async_execute(self):
7777
import tushare as ts
7878

7979
# Initialize the Tushare pro API using the token from environment.
80-
ts.pro_api(token=os.getenv("TUSHARE_API_TOKEN", ""))
80+
ts.set_token(token=os.getenv("TUSHARE_API_TOKEN", ""))
8181

8282
code_prompt: str = self.prompt_format(
8383
prompt_name="code_prompt",

0 commit comments

Comments
 (0)