EDP-GW authentication HTTP code: 400 Bad Request:
Hi
I'm using the machine id and password with client id I could able to connect now. But, I'm getting static data after that it couldn't able to get Live Stream data. Is that the expected behavior? Please help me with that.
Sending authentication request with password to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
{
"access_token":"ey-- --dsf--OC5g",
"expires_in":"300",
"refresh_token":"29921a76-******-a87280541400",
"scope":"trapi.streaming.pricing.read",
"token_type":"Bearer"
}
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":"emea-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"emea-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1a",
"us-east-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"emea-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"eu-west-1a",
"eu-west-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-3.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1a",
"ap-southeast-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-2.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1b"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"apac-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"ap-southeast-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
},
{
"dataFormat":[
"tr_json2"
],
"endpoint":"amer-1.pricing.streaming.edp.thomsonreuters.com",
"location":[
"us-east-1a"
],
"port":443,
"provider":"aws",
"transport":"websocket"
}
}
Connecting to WebSocket wss://amer-3.pricing.streaming.edp.thomsonreuters.com:443/WebSocket for session1...
WebSocket successfully connected for session1!
SENT on session1:
{
"ID":2,
"Key":{
"Name":"/TRI.N",
"Service":"ELEKTRON_DD"
}
}
Sending authentication request with refresh token to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW authentication HTTP code: 400 Bad Request
Retry with username and password
Sending authentication request with password to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
{
"access_token":"eyJ--kJFU---kjw",
"expires_in":"300",
"refresh_token":"8d72d56b-*******-0ca4276b3b12",
"scope":"trapi.streaming.pricing.read",
"token_type":"Bearer"
}
Refreshing the access token for session1
Sending authentication request with refresh token to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW authentication HTTP code: 400 Bad Request
Retry with username and password
Sending authentication request with password to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
{
"access_token":"eyJ0_T7p1_S7XsA",
"expires_in":"300",
"refresh_token":"39e32f6c-*******-c546cbc68082",
"scope":"trapi.streaming.pricing.read",
"token_type":"Bearer"
}
Refreshing the access token for session1
Sending authentication request with refresh token to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW authentication HTTP code: 400 Bad Request
Retry with username and password
Sending authentication request with password to https://api.refinitiv.com:443/auth/oauth2/beta1/token ...
EDP-GW Authentication succeeded. RECEIVED:
I'm not getting the streaming elektron data .
please help me with this
Best Answer
-
Hello @manoj.pandeti, Are you using one of the provided sample? It looks like you are trying to send in a Subscribe request before sending the Login request.
Please follow this quickstart guide for a correct way to use websocket protocol.
0
Answers
-
Please expand on what you mean by 'getting static and not getting live' - by sharing the request message you send to the server and the subsequent response messages you get back. This may help us understand what is actually happening.
Is there any market activity for the instruments you are requesting at the time of the requests Also, does your script continue to run after it receives the static/snapshot data or is it terminating?
Might be easier if you attach the request and response as a text file rather than paste into the post.
0 -
I just noticed the '/TRI.N' request in the above trace.
What message do you get back in response to the above?
Are you tracing/logging out all messages you receive on the Websocket?
Perhaps try something like 'EUR=' as a test RIC and see what happens.
Also, have you worked through the tutorials on Websocket API?
0 -
Please do not post username/password/tokens in the forums. Refresh tokens are long lived and can be misused. I have removed it from your question.
0 -
Once you have completed the QuickStart you should also refer to the Tutorials to gain a better understanding of how to use the Websocket API.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛