---
title: "标准库"
---

# Navi 标准库参考

Navi 标准库内置模块完整 API 参考。

## Prelude

无需命名空间前缀即可直接使用的全局函数和类型。

- [prelude](/zh-CN/api/stdlib/prelude/)

## 模块

| 模块 | 说明 |
| --- | --- |
| [bar_state](/zh-CN/api/stdlib/bar_state/) | `bar_state.*` 函数 |
| [chart](/zh-CN/api/stdlib/chart/) | `chart.*` 函数 |
| [input](/zh-CN/api/stdlib/input/) | `input.*` 函数 |
| [log](/zh-CN/api/stdlib/log/) | `log.*` 函数 |
| [math](/zh-CN/api/stdlib/math/) | `math.*` 函数 |
| [request](/zh-CN/api/stdlib/request/) | `request.*` 函数 |
| [runtime](/zh-CN/api/stdlib/runtime/) | `runtime.*` 函数 |
| [session](/zh-CN/api/stdlib/session/) | `session.*` 函数 |
| [strategy](/zh-CN/api/stdlib/strategy/) | `strategy.*` 函数 |
| [symbol_info](/zh-CN/api/stdlib/symbol_info/) | `symbol_info.*` 函数 |
| [ta](/zh-CN/api/stdlib/ta/) | `ta.*` 函数 |
| [timeframe](/zh-CN/api/stdlib/timeframe/) | `timeframe.*` 函数 |

## 子模块

| 模块 | 说明 |
| --- | --- |
| [strategy.closed_trades](/zh-CN/api/stdlib/strategy_closed_trades/) | `strategy.closed_trades.*` 函数 |
| [strategy.open_trades](/zh-CN/api/stdlib/strategy_open_trades/) | `strategy.open_trades.*` 函数 |
| [strategy.risk](/zh-CN/api/stdlib/strategy_risk/) | `strategy.risk.*` 函数 |
