tushare_convert_ticker
Convert a stock ticker like 600519 into Tushare format such as 600519.SH. Accept plain numbers or existing codes to standardize ticker inputs for Tushare analysis.
Instructions
Convert common stock ticker to Tushare format.
Args:
ts_code_or_ticker: Either Tushare format (600519.SH) or plain number (600519)
Returns:
str: Tushare format code
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ts_code_or_ticker": "<ts_code_or_ticker>"
},
"name": "tushare_convert_ticker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts_code_or_ticker | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |