> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inputs

> Settings the reader changes in the chart's settings panel.

Settings the user changes in the settings panel. Declared at the top level only. Changing an input re-runs the script from its first bar.

## input

<ResponseField name="int()" type="(label: string, defaultValue: number, options?: NumberInputOptions): number" />

<ResponseField name="float()" type="(label: string, defaultValue: number, options?: NumberInputOptions): number" />

<ResponseField name="bool()" type="(label: string, defaultValue: boolean, options?: InputOptions): boolean" />

<ResponseField name="string()" type="(label: string, defaultValue: string, options?: InputOptions): string" />

<ResponseField name="choice()" type="<T extends string>(label: string, defaultValue: T, choices: readonly T[], options?: InputOptions): T">
  One of a fixed list of strings.
</ResponseField>

<ResponseField name="source()" type="(label: string, defaultValue: SourceName, options?: InputOptions): SourceName">
  Which bar value to read, such as `close` or `hl2`. Read it with `bars().source(name)`.
</ResponseField>

<ResponseField name="color()" type="(label: string, defaultValue: Color | null, options?: InputOptions): Color | null">
  A colour; `null` follows the theme.
</ResponseField>

<ResponseField name="time()" type="(label: string, defaultValue: Time | null, options?: InputOptions): Time | null">
  A moment the user picks by clicking the chart, such as an anchored VWAP's start. `null` until picked.
</ResponseField>

<ResponseField name="interval()" type="(label: string, defaultValue: IntervalCode | 'chart', options?: InputOptions): IntervalCode">
  An interval code. `'chart'` stands for the chart's own interval, as a default and as the
  user's choice: the script then reads the chart's code (`'15m'` on a 15-minute chart), and a
  `bars({ interval })` stream with it is the chart's own stream.
</ResponseField>

<ResponseField name="market()" type="(label: string, defaultValue: string | null, options?: InputOptions): string | null">
  A market symbol such as `BTC` or `xyz:GOLD`; `null` means the chart's market.
</ResponseField>

<ResponseField name="addresses()" type="(label: string, defaultValue: readonly string[], options?: InputOptions): readonly string[]">
  A list of wallet addresses, lower-case hex.
</ResponseField>

## InputOptions

<ResponseField name="group?" type="string" />

<ResponseField name="tooltip?" type="string" />

<ResponseField name="inline?" type="boolean">
  Show the input on the same row as the previous one.
</ResponseField>

<ResponseField name="legend?" type="boolean">
  `false` keeps the input's value out of the script's name in the legend, which otherwise
  carries its numbers, sources, choices and intervals ("RSI 14 close"). For a setting that
  says where something draws rather than what it computes, such as a table's corner.
</ResponseField>

## NumberInputOptions

<ResponseField name="min?" type="number" />

<ResponseField name="max?" type="number" />

<ResponseField name="step?" type="number" />

## Next step

Continue with [Streams](/terminal/reference/streams).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.