Complete documentation library for Ptrade quantitative trading API - Detailed comparative analysis and usage guide based on three main versions
Recommended: SimTradeDesk - A professional desktop environment designed for Ptrade strategy developers, providing Ptrade-compatible APIs, strategy editor, backtesting system, parameter optimizer, and more. No Python environment setup required - just download, install, and start using. For details, visit SimTradeDesk.
For official access instructions and processes related to Ptrade interfaces, please send a private message, and I will provide a reference path "containing only official information sources". Ptrade Developer QQ Group: 590529320
Ptrade is a quantitative trading API platform developed by Hundsun Electronics, adopted and customized by multiple securities firms. This project organizes complete documentation for three main versions, including:
- Dongguan Securities version (PBOXQT1.0V202202.01.041) - Latest feature version
- Guosheng Securities version (PBOXQT1.0V202202.01.016) - Stable standard version
- Community-maintained version (PBOXQT1.0V202202.00.005) - Community-enhanced version
- Discover technical differences by comparing real API documentation of three versions
- Detailed analysis of specific differences in function calls and return values
- Provide upgrade guides and compatibility recommendations
- Organize all API interfaces by function category
- Clearly mark support status for each version
- Provide a complete strategy example library
- Best practices based on official QA documentation
- Performance optimization and stability suggestions
- Error handling and debugging techniques
- Complete strategy examples from basic to advanced
- Detailed financial data API documentation
- Useful links and learning resource summaries
Select the corresponding version based on your brokerage environment:
| Brokerage | Version | Features | Recommended Use |
|---|---|---|---|
| Dongguan Securities | V041 | Latest features, full support | Professional trading, requires latest features |
| Guosheng Securities | V016 | Stable and reliable, standard features | Production environment, pursuing stability |
| Community-maintained | V005 | Learning-friendly, rich examples | Learning research, feature exploration |
👉 Unsure which to choose? Check the Version Selection Guide or Detailed Version Comparison
- 📖 Getting Started Guide - Learn Ptrade from scratch
- 💡 Strategy Examples - Learn from actual code
- 📚 Complete Documentation Navigation - Documentation library main entry
- 📋 API Reference Documentation - Complete API interface descriptions and navigation
- 🔖 API Classification Index - Function-based interface quick reference
- 📊 Industry Concept Data - Industry classification and concept sector data
- 🔍 Version Difference Comparison - Main technical difference analysis
- 📊 Version Details - Complete version feature comparison and selection guide
- 📄 Original Documentation - Complete original API documentation for all three versions
- 🔧 Advanced Features and FAQ - Common questions, support libraries, version changes, etc.
- ❓ Frequently Asked Questions - Detailed problem troubleshooting guide
docs/
├── README.md # 📚 Documentation library main entry
├── getting-started/ # 🎓 Getting started guide
│ ├── README.md # Getting started navigation
│ ├── quick-start.md # Quick start
│ └── ... # Other getting started documents
├── api-reference/ # 📋 API reference documentation
│ ├── README.md # API documentation homepage and navigation
│ ├── stock-trading.md # Stock trading interfaces
│ ├── market-data.md # Market data interfaces
│ ├── technical-indicators.md # Technical indicator interfaces
│ └── ... # Other API module documentation
├── examples.md # 💡 Strategy example library
├── api-classification.md # 🔖 API classification index
├── industry-concept-data.md # 📊 Industry concept classification data
├── versions/ # ⚖️ Version information and comparison
│ ├── README.md # Version selection guide
│ ├── version-comparison-table.md # Feature comparison table
│ └── ... # Other version documents
├── version-differences.md # 🔍 Version difference comparison
├── original/ # 📄 Original documentation
│ ├── README.md # Original documentation navigation
│ ├── Ptrade社区.md # Community version original documentation
│ ├── Ptrade国盛.md # Guosheng version original documentation
│ └── ... # Other original documents
└── advanced/ # 🔧 Advanced features
├── README.md # Advanced features navigation
├── faq.md # Frequently asked questions
└── ... # Other advanced documents
By comparing the actual API documentation of the three versions, we found the following important differences:
# V005: int type
if order.status == 8:
# V016/V041: str type
if order.status == '8':- V005 exclusive: WeChat Work push, fund transfer, email settings
- V016 missing: WeChat Work, convertible bond dedicated interfaces, margin trading information query
- V041 most complete: Includes all new features and latest field updates
- V005: Need to manually calculate MACD and other indicators
- V016/V041: Built-in
get_MACD(),get_KDJ(),get_RSI(),get_CCI()
- Understand the basics → Getting Started Guide
- Learn from code → Strategy Examples
- Find interfaces → API Reference
- View complete API → API Reference Documentation
- Learn best practices → Strategy Examples
- Handle version compatibility → Version Difference Comparison
- Understand platform limitations → Version Difference Explanation
- Solve common problems → FAQ
- View support libraries → Advanced Features
- Strategy Example Library - Complete examples from basic to advanced
- Advanced Features - Common questions, support libraries, version changes
This project is based on publicly available API documentation collation. Contributions are welcome:
- Report errors: Submit an Issue to report documentation errors
- Add content: Submit a PR to add new strategy examples or best practices
- Version updates: Help update API differences for new versions
- This project is for learning and research purposes only
- All strategy examples are for reference only, please fully test before live trading
- Specific API functions are subject to actual deployment by each brokerage
- Investment involves risks, trading requires caution
This project uses the MIT License - see the LICENSE file for details
Last updated: December 2024 Maintenance status: Actively maintained Documentation version: Based on actual API documentation collation of three main versions