REDI API L1 Stream

Hello Community,

This question is related to REDI API Python application on Windows using win32com.

I've been trying to stream L1 pricing data for a single instrument but keep getting the following error message. Would appreciate any guidance you may be able to offer. Thank you, Berat Pehlivanoglu.

(mach) PS C:\code\redi> & C:/Users/BeratPehlivanoglu/anaconda3/envs/mach/python.exe "c:/code/redi/Market Data Subscriber.py"

Traceback (most recent call last):

File "C:\Users\BeratPehlivanoglu\anaconda3\envs\mach\lib\site-packages\win32com\client\dynamic.py", line 86, in _GetGoodDispatch

IDispatch = pythoncom.connect(IDispatch)

pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

File "c:\code\redi\Market Data Subscriber.py", line 37, in <module>

q = win32com.client.Dispatch("REDI.CacheControl")

File "C:\Users\BeratPehlivanoglu\anaconda3\envs\mach\lib\site-packages\win32com\client\__init__.py", line 117, in Dispatch

dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)

File "C:\Users\BeratPehlivanoglu\anaconda3\envs\mach\lib\site-packages\win32com\client\dynamic.py", line 106, in _GetGoodDispatchAndUserName

return (_GetGoodDispatch(IDispatch, clsctx), userName)

File "C:\Users\BeratPehlivanoglu\anaconda3\envs\mach\lib\site-packages\win32com\client\dynamic.py", line 88, in _GetGoodDispatch

IDispatch = pythoncom.CoCreateInstance(

pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)

I have no issues when requesting L1 data;

(mach) PS C:\code\redi> & C:/Users/BeratPehlivanoglu/anaconda3/envs/mach/python.exe c:/code/redi/l1.py
2023-01-31 11:36:56 Symbol=135.30 Last=IBM success=True
2023-01-31 11:36:56 Symbol=20.07 Ask=T success=True
2023-01-31 11:36:56 Symbol=207.20 Bid=BA success=True
2023-01-31 11:36:56 Symbol=207.20 InvalidSymbol=InvalidSymbol success=False
(mach) PS C:\code\redi>

or when sending an order;

(mach) PS C:\code\redi> & C:/Users/BeratPehlivanoglu/anaconda3/envs/mach/python.exe "c:/code/redi/Order Entry - Equities & Futures.py"
True
win32com.client.VARIANT(16396, None)
(mach) PS C:\code\redi>

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.