question

Upvotes
Accepted
1 0 0 0

RDP Snapshot requests not returning data Snapshot

Using market_price_edpgw_service_discovery.py example app. RDP Snapshot requests not returning data Snapshot. Have "Streaming":false set.


{


"ID":2,


"Key":{


"Name":"/IBM.N"


},


"Streaming":false


}

rdp-apirefinitiv-data-platformsnapshot-pricing
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

11 Answers

Upvotes
Accepted
15.2k 41 12 19

@Branko - POC:

"Streaming":false

is not a valid Python statement. Please use

"Streaming": False

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
15.2k 41 12 19

Hi @Branko - POC,

Your request structure is correct. Can you please paste the complete output from the sample including the login response and any refresh and update messages.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

RECEIVED on session1:

[

{

"Domain":"Login",

"Elements":{

"MaxMsgSize":61426,

"PingTimeout":30

},

"ID":1,

"Key":{

"Elements":{

"AllowSuspectData":1,

"ApplicationId":"256",

"ApplicationName":"ADS",

"AuthenticationErrorCode":0,

"AuthenticationErrorText":{

"Data":null,

"Type":"AsciiString"

},

"AuthenticationTTReissue":1619627792,

"Position":"192.168.0.124/CHDPQM433LT",

"ProvidePermissionExpressions":1,

"ProvidePermissionProfile":0,

"SingleOpen":1,

"SupportBatchRequests":7,

"SupportEnhancedSymbolList":1,

"SupportOMMPost":1,

"SupportOptimizedPauseResume":0,

"SupportPauseResume":0,

"SupportStandby":0,

"SupportViewRequests":1

},

"Name":"AQIC5wM2LY4SfcydNWCrb%2Fq1KzoDHGCpCprs2rfBVVCEw5Y%3D%40AAJTSQACMjAAAlNLABM0NDk1NTkzNDYyNzUwOTQ0ODQyAAJTMQACMzE%3D%23"

},

"State":{

"Data":"Ok",

"Stream":"Open",

"Text":"Login accepted by host ads-fanout-lrg-az1-use1-prd."

},

"Type":"Refresh"

}

]

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
15.2k 41 12 19

This is just the login response - where is the response from your item request?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

The issue is that there is no item response. There is only Ping/Pong message after what I provided above.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
15.2k 41 12 19

Was there a SENT message in your console? Has your request even been sent to the server? You haven't included the full capture. Here is what I get:

RECEIVED on session1:
[
  {
    "Domain": "Login",
    "Elements": {
      "MaxMsgSize": 61426,
      "PingTimeout": 30
    },
    "ID": 1,
    "Key": {
      "Elements": {
        "AllowSuspectData": 1,
        "ApplicationId": "256",
        "ApplicationName": "ADS",
        "AuthenticationErrorCode": 0,
        "AuthenticationErrorText": {
          "Data": null,
          "Type": "AsciiString"
        },
        "AuthenticationTTReissue": 1619630737,
        "Position": "192.168.56.1/Carbon2",
        "ProvidePermissionExpressions": 1,
        "ProvidePermissionProfile": 0,
        "SingleOpen": 1,
        "SupportBatchRequests": 7,
        "SupportEnhancedSymbolList": 1,
        "SupportOMMPost": 1,
        "SupportOptimizedPauseResume": 0,
        "SupportPauseResume": 0,
        "SupportStandby": 0,
        "SupportViewRequests": 1
      },
      "Name": "AQIC5wM2L**x%23"
    },
    "State": {
      "Data": "Ok",
      "Stream": "Open",
      "Text": "Login accepted by host ads-fanout-lrg-az1-use1-prd."
    },
    "Type": "Refresh"
  }
]

SENT on session1: 
{
  "ID": 2,
  "Key": {
    "Name": "CAD="
  },
  "Streaming": false
}

RECEIVED on session1:
.
.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

Sending EDP-GW service discovery request to https://api.refinitiv.com/streaming/pricing/v1/

EDP-GW Service discovery succeeded. RECEIVED:

{

"services":[

{

"dataFormat":[

"tr_json2"

],

"endpoint":"apac-1-t3.streaming-pricing-api.refinitiv.com",

"location":[

"ap-southeast-1a"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"apac-3-t3.streaming-pricing-api.refinitiv.com",

"location":[

"ap-southeast-1a",

"ap-southeast-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"apac-2-t3.streaming-pricing-api.refinitiv.com",

"location":[

"ap-southeast-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"emea-1-t3.streaming-pricing-api.refinitiv.com",

"location":[

"eu-west-1a"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"emea-3-t3.streaming-pricing-api.refinitiv.com",

"location":[

"eu-west-1a",

"eu-west-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"emea-2-t3.streaming-pricing-api.refinitiv.com",

"location":[

"eu-west-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"amer-1-t3.streaming-pricing-api.refinitiv.com",

"location":[

"us-east-1a"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"amer-3-t3.streaming-pricing-api.refinitiv.com",

"location":[

"us-east-1a",

"us-east-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

},

{

"dataFormat":[

"tr_json2"

],

"endpoint":"amer-2-t3.streaming-pricing-api.refinitiv.com",

"location":[

"us-east-1b"

],

"port":443,

"provider":"aws",

"transport":"websocket"

}

]

}

Connecting to WebSocket wss://amer-3-t3.streaming-pricing-api.refinitiv.com:443/WebSocket for session1...

WebSocket successfully connected for session1!

SENT on session1:

{

"Domain":"Login",

"ID":1,

"Key":{

"Elements":{

"ApplicationId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0E5u9QK4dGbeIjMU1WoAPDqwi-YiBFZlC7ix-w",

"Position":"192.168.0.124/CHDPQM433LT"

},

"NameType":"AuthnToken"

}

}

RECEIVED on session1:

[

{

"Domain":"Login",

"Elements":{

"MaxMsgSize":61426,

"PingTimeout":30

},

"ID":1,

"Key":{

"Elements":{

"AllowSuspectData":1,

"ApplicationId":"256",

"ApplicationName":"ADS",

"AuthenticationErrorCode":0,

"AuthenticationErrorText":{

"Data":null,

"Type":"AsciiString"

},

"AuthenticationTTReissue":1619631151,

"Position":"192.168.0.124/CHDPQM433LT",

"ProvidePermissionExpressions":1,

"ProvidePermissionProfile":0,

"SingleOpen":1,

"SupportBatchRequests":7,

"SupportEnhancedSymbolList":1,

"SupportOMMPost":1,

"SupportOptimizedPauseResume":0,

"SupportPauseResume":0,

"SupportStandby":0,

"SupportViewRequests":1

},

"Name":"AQIC5wM2LY4SfcyFLEGYzmFed6loCa8Xp8PsxdJrF%2F5gvlI%3D%40AAJTSQACMjAAAlNLABI2MjIxODE2NTQ5MDgzODE5MjUAAlMxAAIzMg%3D%3D%23"

},

"State":{

"Data":"Ok",

"Stream":"Open",

"Text":"Login accepted by host ads-fanout-lrg-az1-use1-prd."

},

"Type":"Refresh"

}

]

RECEIVED on session1:

[

{

"Type":"Ping"

}

]

SENT on session1:

{

"Type":"Pong"

}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

def _send_market_price_request(self, ric_name):

""" Create and send simple Market Price request """

mp_req_json = {

'ID': 2,

'Key': {

#'Name': ric_name,

#'Name': 'IBM.N',

'Name': '/IBM.N',

'Service': service

},

"Streaming":false

}

self.web_socket_app.send(json.dumps(mp_req_json))

print("SENT on " + self.session_name + ":")

print(json.dumps(mp_req_json, sort_keys=True, indent=2, separators=(',', ':')))

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
15.2k 41 12 19

I don't see the request being sent to server - there is probably a bug in the your python code somewhere. Please recheck the code - maybe add debugging statements.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

Snapshot works with 'Streaming':False set:) The "Streaming":false was cut/paste from Refinitiv how to example snippets. Anyway, happy that this is identified/resolved. Thank you for your help again.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
15.2k 41 12 19

Good that it works now.

Refinitiv examples show the JSON messages - where false is a correct directive. If you use Python dictionary, then Python False will have to be used.

json.dumps(mp_req_json)

The above statement converts the dictionary object into JSON string in the self.web_socket_app.send(json.dumps(mp_req_json)) statement.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.