Metadata-Version: 2.1
Name: openctp-ctp
Version: 6.7.0.9
Summary: A package for CTPAPI
Home-page: https://github.com/Jedore/openctp-ctp-python
Author: Jedore
Author-email: jedorefight@gmail.com
License: BSD-3-Clause
Keywords: openctp,ctp,ctpapi,trading,investment
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# openctp-ctp

[![PyPI - Python Version](https://badgen.net/badge/python/3.7|3.8|3.9|3.10|3.11|3.12|3.13|3.14/blue)](https://pypi.org/project/openctp-ctp)

-----

## Example

[Demo](https://github.com/Jedore/ctp.examples/tree/main/openctp-ctp#readme)

```python
from openctp_ctp import mdapi, tdapi

md_api = mdapi.CThostFtdcMdApi.CreateFtdcMdApi("market")
td_api = tdapi.CThostFtdcTraderApi.CreateFtdcTraderApi('user_id')
```

## License

`openctp-ctp` is distributed under the terms of
the [BSD-3-Clause](https://github.com/Jedore/openctp-ctp-python/blob/main/LICENSE) license.

