Make a label
In the app, add a name to a watchlist with Add as a label. For a name already on a list, use Treat as label on its row, or Treat as security to undo it. An agent sendslabel: true on a watchlist item in save_watchlist. list_watchlists marks a label with label: true. Leaving label out keeps the stored state. Sending false makes the name a security again, and its class stays empty until you set one.
A label belongs to your account only. Another account may hold the same name as a security.
What a label can do
- Sit on a watchlist.
- Carry Input values, appear in playbooks and charts, and have monitors on its recorded levels.
What a label never is
- Never filed or classed. Its watchlist row has no asset class.
- Never held or traded. A holding or a
check_tradeschange that names it is refused. - Never priced. A label adds no price feed subscription and no daily close request for your account, and the snapshot, standing and monitors read no stored quote under its name. A security with the same name in another account isn’t affected.
- Never in
standingwith a price state. Its monitor state isnull. A monitor on a label reads a price only when the caller supplies one for that call. See Standing.
Refusals
Every refusal isINVALID_INPUT, with a plain sentence, except the limit:
- A name you hold in a portfolio can’t become a label.
- A label can’t be held, traded or given a class.
- A name used as the stand-in price symbol of a watchlist row can’t become a label.
- A label’s name must use letters, digits, dot or dash, up to 20 characters, or a pair like
ALFA/BRAV. - Each account has a limit on labels. Past it, the answer is
TIER_LIMIT_EXCEEDED, which says only that the account reached its limit.
Next steps
Tools reference
save_watchlist and list_watchlists.Standing
How a label reads in
standing.