jetblack_fixparser¶
module jetblack_fixparser ¶
Summary¶
jetblack_fixparser
function jetblack_fixparser.loader.load_quickfix_protocol ¶
Summary¶
Load a QuickFix style XML protocol file
Parameters¶
filename: str (optional)The filename
is_millisecond_time: boolIf true times have milliseconds. Defaults to True.
is_float_decimal: boolIf true use Decimal for floating point numbers. Defaults to False.
is_type_enum: Optional[Mapping[ValueType, bool]]A map of types to control serialization to enums. Defaults to None.
function jetblack_fixparser.loader.load_yaml_protocol ¶
Summary¶
Load a YAML style protocol file
Parameters¶
filename: str (optional)The filename
is_millisecond_time: boolIf true times have milliseconds. Defaults to True.
is_float_decimal: boolIf true use Decimal for floating point numbers. Defaults to False.
is_type_enum: Optional[Mapping[ValueType, bool]]Map controlling serialization to enums. Defaults to None.
class FixMessage ¶
Summary¶
Initialise the FIX message
Parameters¶
message: Mapping[str, Any] (optional)The fix message in the form of a mapping of message names to values.
meta_data: Optional[MessageMetaData]Optional meta data. If this is not supplied it will be discovered from the protocol meta data. Defaults to None.
class method FixMessage.decode ¶
Summary¶
Decode a FIX bytes buffer.
Parameters¶
buffer: bytes (optional)The FIX bytes buffer.
strict: boolIf true apply strict validation. Defaults to True.
validate: boolIf true validate the message. Defaults to True.
sep: bytesThe field separator. Defaults to SOH.
convert_sep_for_checksum: boolIf true convert the separator before calculating the checksum. Defaults to True.
method FixMessage.encode ¶
Summary¶
Encode the message into the FIX bytes buffer
Parameters¶
sep: bytesThe field separator. Defaults to SOH.
regenerate_integrity: boolIf true regenerate the integrity of the message by creating the begin string, body length, and checksum. Defaults to True.
convert_sep_for_checksum: boolIf true convert the field separator before calculating the checksum. Defaults to False.
class FixMessageFactory ¶
Summary¶
Initialise the message factory
Parameters¶
sender_comp_id: str (optional)The sender comp id.
target_comp_id: str (optional)The target comp id.
strict: boolIf true use strict validation. Defaults to True.
validate: boolIf true validate the message. Defaults to True.
sep: bytesThe field separator to use. Defaults to SOH.
convert_sep_for_checksum: boolIf true convert the field separator before calculating the checksum. Defaults to True.
header_kwargs: Optional[Mapping[str, Any]]Extra header args. Defaults to None.
method FixMessageFactory.create ¶
Summary¶
Create a FIX message
Parameters¶
msg_type: str (optional)The message type.
msg_seq_num: int (optional)The message sequence number.
sending_time: datetime (optional)The sending time.
body_kwargs: Optional[Mapping[str, Any]]The message body. Defaults to None.
header_kwargs: Optional[Mapping[str, Any]]Extra header args. Defaults to None.
trailer_kwargs: Optional[Mapping[str, Any]]Extra trailer args. Defaults to None.
class ValueType(Enum) ¶
Summary¶
Value types