Add Market Data Points
add_market_data_pointsAdd or update historical market prices for a specific asset. Entries with the same symbol and date overwrite existing values, ensuring the latest input is stored.
Instructions
Add one or more market data points for a specific asset.
Posts to the market-data endpoint for the given data source and symbol. Same (symbol, date) overwrites the existing point; passing the same input twice yields the same end state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol/ticker of the asset (e.g., 'TRUE-UNLISTED', 'PILLAR3A-FINPENSION-X') | |
| data_source | Yes | Data source for the symbol. Typically 'MANUAL' — Ghostfolio rejects market-data writes for auto-fetched sources like 'YAHOO' or 'COINGECKO' | |
| market_data | Yes | List of market data points. Each entry must include 'date' (ISO 8601, e.g. '2026-04-30T00:00:00.000Z') and 'marketPrice' (numeric value of the asset at that date) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||