coinranking_prochart_compareuntrusted content
Add or remove an overlay plotted alongside this chart — another coin, the global market, or a category. Takes an identifier, not a name: resolve_subject turns "Ethereum" into one. One target per call, each its own…
action: string, target: string
coinranking_prochart_configure
Change one or more chart options — time period, interval, chart type, log scale, indicators, currency, volume, high/low markers. The whole patch applies as a single undoable step. Values that the viewer can't use are…
options: object
coinranking_prochart_draw
Draw a line, freehand pencil or highlighter stroke, rectangle, circle, text label or pin on the chart, remove, duplicate or restack existing ones, or clear them all. A pin is a labelled guide line spanning the chart…
action: string, type: string?, points: array?, text: string?, style: object?, id: string?, ids: array?, placement: string?
coinranking_prochart_exportread-only
Export the chart's data as CSV or the chart itself as a PNG image. CSV can be returned directly in the result; saving a file or copying to the clipboard asks the user first, since browsers only allow those during a…
format: string, destination: string?
coinranking_prochart_get_seriesread-only
The chart's plotted data points as { time, value } pairs in data space — the same coordinates drawings use. Downsampled by default to protect your context; the response says how many points exist and whether it…
maxPoints: number?, series: array?
coinranking_prochart_get_statsread-only
Summary numbers for every series on the chart — high, low, average, first and last value, with the timestamps of the high and low. Prefer this over reading the whole series for questions like "what is this asset…
coinranking_prochart_get_viewread-onlyuntrusted content
Read what the *active* chart is currently showing: its kind and subject, the other kinds this subject has with their labels (and the reason any of them can't be switched to), every option's current value and default…
coinranking_prochart_get_viewportread-only
Read the time window currently on screen, the full range the loaded data covers, the value-axis bounds, and whether anyone has panned or zoomed away from the natural range. Worth calling before reading or drawing: the…
coinranking_prochart_history
Step backwards or forwards through the chart's change history, or jump straight to an entry by index. This is the same stack the undo/redo buttons drive, and it covers changes since the last navigation rather than the…
action: string, index: number?
coinranking_prochart_list_chartsread-only
List the charts this viewer has saved, newest first, with each one's uuid, name, kind, subject and url. To open one, send the viewer to its url — it opens the saved chart with its options and drawings, which…
coinranking_prochart_list_drawingsread-only
The shapes currently drawn on the chart, with their points in data space ({ time, value }) rather than pixels. Positions here are directly comparable with what get_series and get_stats return. Each shape also carries…
coinranking_prochart_list_historyread-only
The chart's undo/redo stack, newest first, with a human-readable label for each step. `past` can be undone, `future` can be redone. The stack covers changes since the last navigation, not the whole session.
coinranking_prochart_list_slotsread-only
Read the whole page rather than one chart: how the charts are arranged, which of them is active, whether asset and time sync are on, and for each chart its number, its subject, the kind it plots and the options set on…
coinranking_prochart_navigateuntrusted content
Switch to a different chart kind for the current asset, or point the chart at a different asset, category or the global market. A kind switch happens immediately; a subject change returns a URL to open, because it…
kind: string?, base: object?
coinranking_prochart_resolve_subjectread-onlyuntrusted content
Turn a name, ticker or category into the identifier the other tools take — pass a match's `target` straight to coinranking_prochart_compare, or to coinranking_prochart_navigate's `base`. Call this first whenever the…
query: string, limit: number?
coinranking_prochart_save
Save the chart to the viewer's account, save a copy under a new name, rename it, delete it, or discard unsaved edits. Saving needs a name the first time. Deleting asks the viewer to confirm. Call get_view first if you…
action: string, name: string?
coinranking_prochart_set_active_slot
Point the interface — and every other tool here — at a different chart in the layout. Only one chart is active at a time: get_view, configure, navigate, draw, set_viewport and the rest all read and write whichever one…
slot: integer
coinranking_prochart_set_layout
Arrange the page as one chart, two side by side, two stacked, or a 2x2 grid. Growing the layout fills the new slots with copies of the active chart, so the usual next step is set_active_slot plus navigate to point…
layout: string
coinranking_prochart_set_sync
Turn the layout's two sync toggles on or off. With asset sync on, every chart follows the active chart's asset while keeping its own kind — BTC price next to BTC market cap. With time sync on, they share the time…
asset: boolean?, time: boolean?
coinranking_prochart_set_viewport
Zoom or pan the chart to a time window, or reset it to fit all the loaded data. This moves the view only: it is not stored in the URL, so it can't be shared or bookmarked, it does not create an undo step, and the next…
action: string, fromTime: number?, toTime: number?
coinranking_prochart_share_linkread-only
Get a link that reproduces the chart exactly as it looks now — kind, asset, time range, styling and drawings all travel in the URL. Returns the link by default; set `share` to open the device's share sheet instead…
share: boolean?