The Excel Add-in provides several custom functions that can be used directly within Excel spreadsheet cells to interact with the Kabu API. These functions allow for retrieving real-time prices, market data, checking server status, and managing orders.
Available Functions
| Function Name | Description | Argument(s) |
|---|
test_GetRTDPrice | Get real-time price of the symbol (via RTD) | symbol (string) |
test_GetStatus | Get Server Status | None |
test_GetMarketData | Get Market Data (4-price values, etc.) | symbol (string, format: 銘柄コード@市場コード) |
test_PutSendOrder | Execute a Send Order request | None |
test_RegistMarketData | Register a symbol for PUSH (WebSocket) delivery | symbol (string, format: 銘柄コード@市場コード) |
test_StartWebSocket | Start the WebSocket connection for real-time data | None |
test_GetWebSocketData | Retrieve the latest message received via WebSocket | None |
Symbol Format
For functions requiring a symbol (like test_GetMarketData or test_RegistMarketData), use the format 銘柄コード@市場コード (e.g., 8411@1 or 5401@1).