[Quickfix-developers] QuickFIX Python binding and repeating groups
Brought to you by:
orenmnero
|
From: Reggie D. <re...@me...> - 2006-08-10 23:51:51
|
Hi,
I'm new to QuickFIX, so please forgive me if any of there were already
discussed, but I couldn't find any reference in the list archives.
I'm using the Python bindings of QuickFIX 1.12.1 on Fedora Core 4 to
initiate a connection using FIX 4.4 and I'm having a few problems.
1)
The quickfix44.py that is generated starts with a class NoHops which is
derived from fix.Group. This class is indented, presumably because
groups are usually a part of a containing Message (which does not seem
to be the case here). This is a syntax error in Python and for now I've
manually dedented that class definition to be able to import the file.
What would be the correct fix for this?
2)
I'm trying to create a MarketDataRequest message which contains
repeating groups. I've attempted to follow the repeating group example
in the documentation, but I get the following traceback:
Traceback (most recent call last):
File "fixplay.py", line 49, in fromApp
('0','1','2','3','4','5','6','7','8'))
File "fixplay.py", line 105, in sendMarketDataRequest
group = fix44.MarketDataRequest().NoRelatedSym()
File "/home/reggie/tarballs/quickfix/lib/python/quickfix44.py", line
3064, in __init__
order = fix.intArray(45)
AttributeError: 'module' object has no attribute 'intArray'
I've tried looking around in the source code, but I can't find any
definition of intArray. Is this the correct way to set up a repeating
group? Where is intArray defined?
3)
I'm currently doing everything within the callbacks of a class derived
from fix.Application, and using the block method of SocketInitiator, but
when I've tried to use separate threads, I've gotten "Segmentation
Fault" both when using the start method or when trying to create the
threads myself using Python's threading module. What is the correct way
to do this?
Any help with any of these would be greatly appreciated as would any
pointers to further documentation on the QuickFIX Python bindings.
Please let me know if you need any further information.
--
Reggie Dugard <re...@me...>
Merfin, LLC
|