Metadata-Version: 2.4
Name: liwancai-MoNiBS
Version: 1.0.2
Summary: 模拟交易回测系统 - 提供完整的订单管理、账户管理、数据管理功能
Author-email: liwancai <liwancai@example.com>
License: MIT
Project-URL: Homepage, https://github.com/liwancai/liwancai-MoNiBS
Keywords: trading,simulation,finance,order-management,account-management
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: liwancai-PyLOG>=1.0.0
Requires-Dist: liwancai-PyTools>=1.0.0

# MoNiBS

模拟交易回测系统 - 提供完整的订单管理、账户管理、数据管理功能

**注意**: 包在PyPI上的名称是 `liwancai-MoNiBS`，但导入时使用 `MoNiBS`

## 安装

```bash
pip install liwancai-MoNiBS
```

## 使用

```python
# 导入整个包的所有功能
from MoNiBS import *
 
### 其他导入方式
 
# 导入特定模块
from MoNiBS import MoNiBS, Order, Account

# 导入特定函数
from MoNiBS.OrderHold.OrderDeal import OrderDeal_getKNum, OrderDeal_getPNum
```
# MoNiBS 量化回测框架

MoNiBS（模拟交易回测系统）是一个功能强大的Python量化回测框架，它提供了完整的交易模拟、账户管理、数据管理和回测分析功能。

## 🚀 核心特性

- **完整的交易模拟**：支持多空交易、看多看空等多种交易类型
- **多周期数据支持**：支持分钟线、日线等多时间周期数据
- **智能账户管理**：多账户支持、资金管理、风险控制
- **数据库存储**：使用DuckDB进行高效数据存储和查询
- **模块化设计**：各功能模块独立，易于扩展和维护

## 📁 项目结构

```
MoNiBS/
├── Account/           # 账户管理模块
│   ├── Account.py     # 账户数据模型
│   ├── AccountHub.py  # 账户管理器
│   └── __init__.py
├── DBSave/            # 数据存储模块
│   ├── DBSaveHub.py   # 数据库管理器
│   └── __init__.py
├── MgrData/           # 数据管理模块
│   ├── Client.py      # 数据客户端
│   ├── CodeFees.py    # 费用计算
│   ├── MgrDataHub.py  # 数据管理器
│   └── __init__.py
├── OrderHold/         # 订单持仓模块
│   ├── Help.py        # 订单帮助文档
│   ├── Hold.py        # 持仓管理
│   ├── Order.py       # 订单模型
│   ├── OrderDeal.py   # 订单处理
│   ├── OrderHub.py    # 订单管理器
│   ├── OrderPGFH.py   # 分红配股处理
│   ├── Type.py        # 类型定义
│   └── __init__.py
├── Strategys/         # 策略模块
│   └── __init__.py
├── utils/             # 工具模块
│   ├── DataType.py    # 数据类型定义
│   ├── Tools.py       # 工具函数
│   └── __init__.py
├── MoNiBS.py          # 主框架类
└── __init__.py
```

## 依赖包

- `liwancai-PyLOG>=1.0.0`: 日志记录
- `liwancai-PyTools>=1.0.0`: 工具函数

## 许可证

MIT License
