get_latest_price
Retrieve the current market price for a commodity by providing its symbol and namespace. Returns date, value, type, and source, or null if no price is available.
Instructions
Get the most recent price for a commodity.
Args: commodity: Symbol of the commodity (e.g., "VTSAX"). namespace: Namespace of the commodity (e.g., "FUND"). currency: Currency for the price. Defaults to the book's default currency. Pass explicitly to get a price quoted in a non-default currency.
Returns: JSON with date, value, type, and source of most recent price. Returns null if no price exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | ||
| commodity | Yes | ||
| namespace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |