render_chart_svg
Generate candlestick or line charts as SVG or PNG on the server side. Use when saving charts with optional indicators and pattern overlays.
Instructions
[SVG file / PNG save] ローソク足・ラインチャートをサーバー側で SVG/PNG に生成。 クライアント側で描画可能な場合は prepare_chart_data を優先。 ユーザーが SVG/PNG 保存を明示した場合のみ使用。自発的呼び出し禁止。 detect_patterns の overlays を渡してパターン描画可能。 オプションのインジケーター(SMA/EMA/BB/一目均衡表)はユーザーが明示的に要求した場合のみ指定すること。デフォルトではすべてオフ。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | X軸ラベルのタイムゾーン(例: Asia/Tokyo, UTC) | Asia/Tokyo |
| pair | No | btc_jpy | |
| type | No | 1day | |
| depth | No | ||
| limit | No | ||
| style | No | candles | |
| bbMode | No | default | |
| withBB | No | ||
| withEMA | No | ||
| withSMA | No | ||
| ichimoku | No | ||
| overlays | No | ||
| subPanels | No | サブパネル: macd(MACD線+シグナル+ヒストグラム), rsi(RSI 14 + 70/30ゾーン), volume(出来高バー) | |
| svgMinify | No | Minify SVG text by stripping whitespace where safe. | |
| indicators | No | Indicators to overlay. Do NOT set unless the user explicitly requests them. Default: [] (none). Available: SMA_5, SMA_20, SMA_25, SMA_50, SMA_75, SMA_200, EMA_12, EMA_26, EMA_50, EMA_200, BB, BB_EXTENDED, ICHIMOKU, ICHIMOKU_EXTENDED | |
| withLegend | No | ||
| yPaddingPct | No | Vertical padding ratio to expand y-range. | |
| svgPrecision | No | Coordinate rounding decimals (0-3). | |
| viewBoxTight | No | Use tighter paddings to reduce empty margins. | |
| withIchimoku | No | ||
| barWidthRatio | No | Width ratio of each candle body (slot fraction). | |
| simplifyTolerance | No | Line simplification tolerance in pixels (0 disables). |