DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 14:29:06 +0000
Post From: Python interface for DTC protocol library
[2017-04-09 17:06:32] |
Queeq - Posts: 42 |
Alright, had to include stdint.i to DTCProtocol.i, so the whole file now looks like this: %module DTCProtocol %include "stdint.i" %{ #define SWIG_FILE_WITH_INIT #include "DTCProtocol.h" %} %ignore s_MarketDepthFullUpdate20; %ignore s_MarketDepthFullUpdate10; %include "DTCProtocol.h" Now: >>> import DTCProtocol >>> print(DTCProtocol.CURRENT_VERSION) 7 |