Metadata-Version: 2.4
Name: jettquant
Version: 0.0.1
Summary: Personal quantification tool
Project-URL: Homepage, https://github.com/jett2025ab/jettquant
Project-URL: Repository, https://github.com/jett2025ab/jettquant
Project-URL: Documentation, https://github.com/jett2025ab/jettquant#readme
Author-email: jett <jett2025ab@outlook.com>
License-Expression: MIT
License-File: LICENSE.txt
Keywords: finance,market,quant,trading
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business :: Financial
Requires-Python: <3.13,>=3.10
Requires-Dist: pandas
Requires-Dist: xtquant
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Description-Content-Type: text/markdown

# jettquant

[![PyPI - Version](https://img.shields.io/pypi/v/jettquant.svg)](https://pypi.org/project/jettquant)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jettquant.svg)](https://pypi.org/project/jettquant)

-----

## Table of Contents

- [Installation](#installation)
- [Introduction](#project-structure)
- [License](#license)

## Installation

```console
pip install jettquant
```

## Introduction

示例1：订阅全市场数据
from pandas import DataFrame

from jettquant import MarketEngine

market_engine = MarketEngine(is_verbose=True)

def on_all_tick(df: DataFrame):
"""每3秒推送一次截面数据"""
print(df.head(5))

market_engine.subscribe_all(on_all_tick)

market_engine.start()
market_engine.run_forever()

示例2：订阅单只标的
from jettquant import MarketEngine

market_engine = MarketEngine()

def func(data_dict: dict):
"""订阅单只标的"""
print(data_dict)

xt_symbol = ["300750.SZ"]
market_engine.subscribe(xt_symbol, func)

market_engine.start()
market_engine.run_forever()

## License

`jettquant` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
