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

# 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.