Need service name to get the latest funds price data

Madhup5
Madhup5 LSEG
edited March 13 in WebSocket API

i am sending the below request but i am getting the error like Unknown service



Request :

   {

"ID": 2,
"Key": {
"Name": "LP68036411"
},"VIEW":[
"BID",
"NAV"]
}

Error:

RECEIVED:
[
{
"ID": 2,
"Type": "Status",
"Key": {
"Service": 0,
"Name": "LP68036411"
},
"State": {
"Stream": "Closed",
"Data": "Suspect",
"Code": "SourceUnknown",
"Text": "A18: Unknown service."
}
}

Tagged:

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Madhup5

    Thank you for reaching to us.

    You can specify the service name in the request by using the "Service" property.

    {
    "ID": 5,
    "Key": {
    "Name": "JPY=",
    "Service": "<service name>"
    }
    }

    The A18: Unknown service is a status message used by the ADS component. You may check what services are available on the server.

    image.png

    You can use the following request to get all avaialble services.

    {
    "ID": 2,
    "Domain": "Source",
    "Key": {
    "Filter": 1
    }
    }