Hi
I'm trying to use the Websocket API to make an off-stream post using a TREP service configured for TSA to TRCC. Currently I receive the following error
"NakCode":"DeniedBySrc", "Text":"UpdateMsg has no RSSL_UPMF_HAS_MSG_KEY flag",
Below is an extract of the message structure which is based on the code provided in the posting example for the Websocket API:
mp_post_json = {
'ID': 1,
'Type':'Post',
'Domain':'MarketPrice',
'Key': {
'Name': 'EAASTEST01',
'Service':'TSA_SERVICE'},
'Ack':True,
'PostID': post_id,
'PostUserInfo': {
'Address':position, # Use IP address as the Post User Address. 'UserID':os.getpid() # Use process ID as the Post User Id.},
'Message': {
'ID': 0,
'Type':'Update',
'Solicited': True,
'Fields':{'BID':45.55,
'BIDSIZE':18,
'ASK':45.57,
'ASKSIZE':19}
}
}
Thanks,
Bill