fetch_stork_price
Fetch a live signed price update from the Stork REST API using your STORK_API_KEY. Returns Solidity-annotated payload with solidityCallData ready for updateTemporalNumericValueV1.
Instructions
Perform an authenticated pull from the Stork REST API to get a live signed price update for an asset. Reads the Stork API key from the STORK_API_KEY environment variable (not a tool argument). Returns the full signed payload with each field annotated with its correct Solidity type (timestampNs as uint64 in nanoseconds; quantizedValue as int192 — not uint256). Use the solidityCallData field directly when constructing an updateTemporalNumericValueV1 call.
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": {
"assetId": "<assetId>"
},
"name": "fetch_stork_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | ||
| baseUrl | No | Stork REST API base URL. Must be a stork-oracle.network host. Defaults to https://rest.jp.stork-oracle.network. The API key is read from the STORK_API_KEY environment variable, not passed as an argument. |