Hi,
I'm trying to contribute data into the ATS, however i can't make it work:
For info, getting prices though the same stream works well.
Thanks for the help.
Regards
Hi @fabien.marcaillou ,
You're trying to contribute with OnStream mode (ie: a opened stream), so if you need to open your stream before calling contribute() function:
session = rd.open_session(config_name='refinitiv-data.config.json')streaming = rd.content.pricing.Definition( ['XAGFIX_PRIME'], service='DTS', fields=['ASK', 'BID']).get_stream()streaming.open()response = streaming.contribute('XAGFIX_PRIME', {'BID': 22.092})print(response.is_success)rd.close_session()
Then it should work.
If you don't need to open your stream to retrieve updates, then you can use the OffStream mode:
session = rd.open_session(config_name='refinitiv-data.config.json')response = rd.delivery.omm_stream.contribute( 'XAGFIX_PRIME', fields={'BID': 22.092}, service='DTS')print(response.is_success)rd.close_session()
Dear developer community
I m interested by this contribution fonctionality in. Net environnement.
Can you tell me if this contribution service is also available in refinitiv library under. Net.