Q26 ALPHA-TRADING SYSTEM
Functions | Variables
alphatrading.trading.trader.ibapi.comm Namespace Reference

Functions

bytes make_msg (text)
 
str make_field (val)
 
str make_field_handle_empty (val)
 
tuple read_msg (bytes buf)
 
tuple read_fields (bytes buf)
 

Variables

 logger = logging.getLogger(__name__)
 

Detailed Description

Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
 and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.

Function Documentation

◆ make_field()

str alphatrading.trading.trader.ibapi.comm.make_field (   val)
 adds the NULL string terminator 

◆ make_msg()

bytes alphatrading.trading.trader.ibapi.comm.make_msg (   text)
 adds the length prefix 

◆ read_msg()

tuple alphatrading.trading.trader.ibapi.comm.read_msg ( bytes  buf)
 first the size prefix and then the corresponding msg payload