Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SHIOAJI_API_KEY | Yes | Your Sinopac Shioaji API Key. | |
| SHIOAJI_SECRET_KEY | Yes | Your Sinopac Shioaji Secret Key. | |
| SHIOAJI_TRADING_ENABLED | No | Set to 'true' to enable trading operations (place_order, cancel_order). Defaults to 'false' for read-only mode. | false |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_account_info | Get account information |
| search_contracts | Search for trading contracts |
| get_snapshots | Get real-time market snapshots |
| get_kbars | Get historical K-bar data |
| place_order | Place a trading order (requires SHIOAJI_TRADING_ENABLED=true) |
| cancel_order | Cancel an existing order (requires SHIOAJI_TRADING_ENABLED=true) |
| list_orders | List all orders |
| get_positions | Get current positions from stock and/or futures accounts |
| get_account_balance | Get account balance information for stock and/or futures accounts |
| check_terms_status | Check service terms signing status and API testing completion |
| run_api_test | Run API test for service terms compliance (login and order tests) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |