Delete drawings

delete_drawingChanges the chartSafe to repeat

The app deletes drawings.

Details#

Delete drawings from one chart: pass id for one drawing, or ids for up to 100, not both. 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. Nothing is deleted when any id is not on that chart (drawing_not_found: detail.id or detail.missing names the unknown ids, and detail.ids lists ids that exist) or any of them is locked (drawing_locked: detail.locked names them; unlock one with update_drawing locked false only if the member asked you to delete it). A drawing with editable false can still be deleted. The drawings are the member's: delete only the drawings the member asked you to delete, or one you drew in this session and are replacing, and never clear a chart to make room. The answer has layout, market, deleted (the ids deleted) and remaining (how many drawings are left on that chart). Example, deleting two drawings: {"ids":["ai-3f9c2b7a1d4e6f80","ai-0b1c2d3e4f5a6b7c"]}

Inputs#

NameTypeRequiredDescription
symbolstringOptionalTicker or pair, for example BTCUSDT or AAPL.
venuestringOptionalOptional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures.
kindstringOptionalOptional. spot or perp. Omit to open a spot market. Perpetuals are only opened when kind is perp or the venue is a futures venue.
layoutstringOptionalLayout 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.
idstringOptionalOne drawing's id, from create_drawing or list_drawings for the same chart. Pass id or ids, not both.
idsarray of stringOptionalUp to 100 drawing ids from list_drawings, deleted together. Pass id or ids, not both.