Hello,
Im trying to connecto via websocket to RDP Streaming with the following code:
WS_ADDRESS = "wss://amer-3-t2.streaming-pricing-api.refinitiv.com/WebSocket/";
TRKD_AUTHEN_ADDRESS = "https://api.refinitiv.com/auth/oauth2/v1/token";
WS_PROTOCOL = "tr_json2";
WS_PORT = "443";
When i Send the authentication method i got
{ "access_token":"eyJ0eXA.......", "refresh_token":"3498eba0-a27a-4598-a4e8-e870bac77881", "expires_in":"300" , "scope":"", "token_type":"Bearer" }
So, if the auth is ok the code continues to connect via websocket with the WS_ADDRESS, WS_PROTOCOL and WS_PORT and in the onConnected method I send the authentication
{
"ID": 2,
"Domain": "Login",
"Key": {
"NameType": "AuthnToken",
"Elements": {
"AuthenticationToken": "eyJ0eXA....",
"Position": "192.168.1.20",
"ApplicationId": "58dc1....."
}
}
}
And after that I got
RECEIVED:[{"ID":2,"Type":"Status","Domain":"Login","Key":{"Name":"AQIC5wM2LY4SfcwxLcZkqob04mRDlACLtHarWIIpBxXLpog%3D%40AAJTSQACMjAAAlNLABMxOTk2MzA0NDkxMzM1NzMwODAxAAJTMQACMzQ%3D%23"},"State":{"Stream":"Closed","Data":"Suspect","Code":"UsageError","Text":"Login Rejected. Watchlist size of 0 for 'WS JSON2' connection is outside of range [3001,20000] supported for this ADS fanout tier for this type of connection."}}]
2021-03-25 13:08:11.844 [INFO ] [c.t.w.c.WebSocketConnection:87] - Process Message type Status
2021-03-25 13:08:11.844 [INFO ] [c.t.w.c.WebSocketConnection:113] - State Stream Closed state DataSuspect
Can you helpme what Im doing wrong?Thanks.