List drawings

list_drawingsReads onlySafe to repeat

The app lists the drawings on a chart.

Details#

List the drawings on one chart (one market on one layout): the member's own drawings and yours alike. symbol, venue and kind name the market exactly as for open_chart (that venue, never another one); omit symbol to use the market the layout shows now (refused with missing_symbol when it shows none). Omit layout for the layout the member has open (Default when no chart is open); layout Default is the member's own chart, and any other name is one of the member's layouts from list_layouts. The answer has layout, market (symbol, venue, kind), total, offset, next_offset and drawings: at most 50 per page (fewer when the drawings are large, such as long polylines), in the order they are saved. When next_offset is not null, call again with offset set to it. Each drawing is { id, tool, name, points, text, style, options, locked, hidden, show_on, rendered, editable }: points are [{ role, time, price }] with times in ISO 8601 UTC and prices in the quote currency; text is the label, on tools that take one; style and options give every key the tool takes with its value, defaults included; show_on is "all" or the timeframes it shows on; rendered, on the tools that have it, gives values worked out from the points, such as a level's price or the way a ray runs, so you can check placement without looking at the screen. editable false, with a note, marks a drawing of a kind the connector cannot change; delete_drawing can still remove it. Pass tool (a key such as hray) to list only that tool's drawings. Use it to find the id for update_drawing or delete_drawing, and after create_drawing or update_drawing to check that points and rendered match what you intended. The member's own drawings are listed too: change or delete one only when the member asks you to. Refusals: missing_symbol, pass symbol (and venue) or call open_chart on that layout first; market_not_found or spot_not_found, call search_markets; layout_not_found, call list_layouts. Example: symbol BTCUSDT, venue BINANCE. Example: layout Default, tool hray.

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.
toolstringOptionalOptional. Only drawings of this tool: its key, for example hray.
offsetintegerOptionalOptional. A whole number, 0 or more: next_offset from the previous page. Omit for the first page.