> ## 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.

# Reference

> Every function, field and option a script can use.

Every global a script can use, from the API's own declarations, so it matches what the terminal runs. A script has no imports: these names are always there.

<CardGroup cols={2}>
  <Card title="Basic types" href="/terminal/reference/types">
    Times, colours, venues, intervals and the missing value na.
  </Card>

  <Card title="The declaration" href="/terminal/reference/indicator">
    indicator(): the script's name and where it draws.
  </Card>

  <Card title="Inputs" href="/terminal/reference/inputs">
    Settings the reader changes in the chart's settings panel.
  </Card>

  <Card title="Streams" href="/terminal/reference/streams">
    Bars, trades, liquidations, the order book, open interest, funding, breadth and liquidation levels.
  </Card>

  <Card title="State" href="/terminal/reference/state">
    Values kept between bars: cells, lists, maps, series and tallies.
  </Card>

  <Card title="Indicators (ta)" href="/terminal/reference/ta">
    Moving averages, oscillators, bands and the rest of the ta library, matching TradingView.
  </Card>

  <Card title="Plots" href="/terminal/reference/plots">
    Lines, histograms, areas, points, shapes, markers, fills, levels, backgrounds and bar colours.
  </Card>

  <Card title="Drawings" href="/terminal/reference/drawings">
    Lines, boxes, labels, polylines, linefills and tables.
  </Card>

  <Card title="Alerts" href="/terminal/reference/alerts">
    Alerts the reader arms and the script fires.
  </Card>

  <Card title="Colours, text and time" href="/terminal/reference/utilities">
    color, fmt, clock, log and random.
  </Card>

  <Card title="Diagnostics" href="/terminal/reference/diagnostics">
    Every code the editor reports, what it means and what to do.
  </Card>
</CardGroup>

## Next step

Start with [Basic types](/terminal/reference/types).


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