Refinitiv / websocket-api

A direct access WebSocket API that enables easy integration into a multitude of client technology environments such as scripting and web.
Other
68 stars 40 forks source link

Batch request - how to specify the service #28

Closed tomap closed 8 months ago

tomap commented 8 months ago

Hello,

I'm trying to make a batch request like in the doc, but cannot find a way to specify the service :

{
"ID":2,
"Key":{
 "Name":[
  "TRI.N",
  "IBM.N",
  "T.N"
]}
}

I tried

{
"ID":2,
"Key":{
 "Name":[
  "TRI.N",
  "IBM.N",
  "T.N"
], "Service": "SRV"}
}

and

{
"ID":2,
"Key":{
 "Name":[
  "TRI.N",
  "IBM.N",
  "T.N"
], "Service": ["SRV", "SRV", "SRV"]}
}

But it does not seem to work

If I don't specify it, I believe the server tries to look for those keys in another service

Is there another way?

Thank you

tomap commented 8 months ago

I was using the wrong service value ("SRV", instead of "SRV1")

The working json is the following:

{
"ID":2,
"Key":{
 "Name":[
  "TRI.N",
  "IBM.N",
  "T.N"
], "Service": "SRV"}
}

The doc does not provide an example regarding the right way to specify the service. Maybe update it or add this case in examples?