Get Volatility
get_volatilityCoefficient-of-variation (CV = stdev / mean) volatility per partner/reporter x product pair, over inactive-period-excluded history. Higher CV = the flow swings more relative to its typical level. Returns per-entity CV bars (with drill-down series) and, unless include_heatmap=false, an entity x sub-product CV heatmap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | Trade flow to use. | Imports |
| query | Yes | The product/reporter/partner-set/period/frequency slice to query -- the same request body every tradedashboard.eu analytical endpoint takes. See its own field descriptions (product, reporter, partner_set, period_start, period_end, frequency, n_top, ...) for details; only `product` is required, everything else has a sensible default. | |
| combos | No | Comma-separated flow x indicator keys to compute at once: imp-qty, imp-price, exp-qty, exp-price. When set, overrides flow/indicator and returns a dict keyed by combo. | |
| compact | No | If true, condense long numeric time series (more than ~6 points -- typically monthly/quarterly windows or wide multi-partner/multi-period breakdowns) into summary statistics (first, last, min, max, mean, pct_change) instead of returning every data point. Leave false for full-fidelity series (e.g. to actually plot a chart); set true when you just need the headline trend and want to save context. | |
| indicator | No | Measure for single-grid mode (ignored when combos is set). | quantity |
| entity_level | No | Dimension to analyse. 'partner' -- how concentrated/volatile is the reporter's trade across its trading partners? 'reporter' -- how concentrated/volatile is a given partner's trade across EU member states? When 'reporter', 'partner_name' is required. | partner |
| partner_name | No | Partner country name (English). Required when entity_level='reporter'. | |
| n_top_entities | No | Number of top entities to include in the volatility bar chart. | |
| n_top_products | No | Max number of sub-products in the entity x product heatmap. | |
| include_heatmap | No | Whether to compute the entity x sub-product CV heatmap (false is faster, bar chart only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||