Change a drawing
The app changes a drawing.
Details#
Change one drawing on one chart, found by its id: move its points, or change its text, style, options, locked, hidden or show_on. Pass the same symbol, venue, kind and layout as the chart the drawing is on (omit symbol for the market the layout shows now, omit layout for the layout the member has open); an id from another chart is not found. Send only what changes. points replaces all of the drawing's points, so send every point the tool takes, under the same rules as create_drawing. style and options change only the keys you send and keep the others. text replaces the label, and an empty text removes it (except on tools that need text). show_on "all" shows it on every timeframe again. The tool cannot be changed: to change it, draw the new drawing and then delete the old one. A locked drawing cannot be moved: points on a locked drawing are refused with drawing_locked unless the same call sets locked false, and you unlock a drawing only when the member asked you to change it. A drawing that list_drawings shows with editable false is refused with drawing_not_editable: only the member can change it on the chart. The answer has layout, market, drawing (as saved, in the shape list_drawings reads back) and changed (the arguments that were applied). Then call list_drawings and check that points and rendered match what you intended. Change the member's own drawings only when they ask you to. Refusals: drawing_not_found, call list_drawings for the same chart and use an id from it (detail.ids lists ids that exist); invalid_args, fix the argument named in detail; missing_symbol, market_not_found, spot_not_found and layout_not_found, as for create_drawing; drawings_too_large, ask the member which drawings to delete. Example, moving a horizontal ray to 0.31 from the same candle: {"id":"ai-3f9c2b7a1d4e6f80","points":[{"role":"start","time":"2026-11-18","price":0.31}]}
Inputs#
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | Optional | Ticker or pair, for example BTCUSDT or AAPL. |
| venue | string | Optional | Optional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures. |
| kind | string | Optional | Optional. spot or perp. Omit to open a spot market. Perpetuals are only opened when kind is perp or the venue is a futures venue. |
| layout | string | Optional | Layout name from list_layouts, or "Default" (the member's own chart). Omit to use the layout the member has open, or Default when no chart is open. |
| id | string | Required | Required. The drawing's id, from create_drawing or list_drawings for the same chart. |
| points | array of object | Optional | Optional. All of the drawing's new points, as for create_drawing: every point the tool takes, each { time, price } with an optional role. |
| text | string | Optional | Optional. The new label, up to 1000 characters; an empty text removes it, except on tools that need text. |
| style | object | Optional | Optional. Only the keys you send change; the others keep their values. Each tool takes only the keys list_drawing_tools lists for it. |
| options | object | Optional | Optional. Only the option keys you send change; the others keep their values. Keys and values as list_drawing_tools lists them for the tool. |
| locked | boolean | Optional | Optional. true locks it, false unlocks it. Send false in the same call as new points to move a locked drawing, and only when the member asked you to change it. |
| hidden | boolean | Optional | Optional. true hides it (kept but not drawn), false shows it again. |
| show_on | array of 1H | 4H | 1D | 1W | 1M or all | Optional | Optional. A list of timeframes (1H, 4H, 1D, 1W, 1M) to draw it only on those, or "all" to draw it on every timeframe again. |