semvec/pypi-packages huggingface dataset:
openctp-ctp-cp 6.7.7.0
A package for CTPAPI
License: BSD-3-Clause
Requires Python: >=3.7
Keywords: ctp, ctpapi, trading, investment

# openctp-ctp-cp

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

-----

```python
from openctp_ctp_cp import mdapi, tdapi

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

## License

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