Python API - Loren1166/NautilusTrader- GitHub Wiki

Python API

Welcome to the Python API reference for NautilusTrader!

欢迎使用 NautilusTrader 的 Python API 参考!

The API reference provides detailed technical documentation for the NautilusTrader framework, including its modules, classes, methods, and functions. The reference is automatically generated from the latest NautilusTrader source code using Sphinx.

API 参考提供了 NautilusTrader 框架的详细技术文档,包括其模块、类、方法和函数。该参考是使用 Sphinx 从最新的 NautilusTrader 源代码自动生成的。

Please note that there are separate references for different versions of NautilusTrader:

请注意,不同版本的 NautilusTrader 有单独的参考:

  • Latest: This API reference is built from the head of the master branch and represents the latest stable release. 最新: 此 API 参考是从 master 分支的头部构建的,代表最新的稳定版本。
  • Nightly: This API reference is built from the head of the nightly branch and represents bleeding edge and experimental changes/features currently in development. 每晚: 此 API 参考是从每晚分支的头部构建的,代表当前正在开发的最前沿和实验性更改/功能。

You can select the desired API reference from the Versions top left drop down menu.

您可以从左上角的“版本”下拉菜单中选择所需的 API 参考。

Use the right navigation sidebar to explore the available modules and their contents. You can click on any item to view its detailed documentation, including parameter descriptions, and return value explanations.

使用右侧导航侧边栏浏览可用的模块及其内容。您可以单击任何项目以查看其详细文档,包括参数描述和返回值说明。

Why Python? 为什么选择 Python?

Python was originally created decades ago as a simple scripting language with a clean straight forward syntax. It has since evolved into a fully fledged general purpose object-oriented programming language. Based on the TIOBE index, Python is currently the most popular programming language in the world. Not only that, Python has become the de facto lingua franca of data science, machine learning, and artificial intelligence.

Python 最初创建于几十年前,是一种简单的脚本语言,具有简洁明了的语法。从那时起,它已经发展成为一种成熟的通用面向对象编程语言。根据 TIOBE 指数,Python 目前是世界上最流行的编程语言。不仅如此,Python 已经成为数据科学、机器学习和人工智能事实上的通用语言。

The language out of the box is not without its drawbacks however, especially in the context of implementing large performance-critical systems. Cython has addressed a lot of these issues, offering all the advantages of a statically typed language, embedded into Pythons rich ecosystem of software libraries and developer/user communities.

然而,开箱即用的语言并非没有缺点,特别是在实现大型性能关键型系统的环境中。Cython 解决了其中很多问题,它提供了静态类型语言的所有优点,并嵌入到 Python 丰富的软件库生态系统和开发人员/用户社区中。