Set a flag

set_flagChanges the chartSafe to repeat

The app sets or clears a flag.

Details#

Set or clear the one flag on a symbol. color is orange, pink, purple, cyan, gray, or none. Pass id from get_watchlist, or symbol and venue. A new symbol is flagged and counts once. Clearing the flag of a symbol that is on no list removes the row. A Position is never changed. Example: symbol NVDA, venue NASDAQ, color purple.

Inputs#

NameTypeRequiredDescription
idstringOptionalRow id from get_watchlist. Omit when symbol and venue name the row.
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.
colorstringRequiredorange, pink, purple, cyan, gray, or none.