For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 3

Using Perl I get error 400 Invalid request when Posting item belong to DDS service which is an ATS Service

Hi,


I Use the Perl example from the GitHub, I try to Post data of a specific RIC, i changed only the ric name, host name, user name and added "Service" = "DDS" to the post message part, all is flowing great until the post, the login is working, when I send the request i get the stream is open, but i get 400 Invalid request as response to the post


this is what I send in the post

encode_json({ "ID" => 2, 
              "Type" => "Post",  
              "Domain" => "MarketPrice", 
              "Ack" => JSON::true,  
              "PostID" =>  1, 
              "PostUserInfo" => { "Address" => $position, "UserID" => Int($$)  },
              "Message" => { "ID" => 0, "Type" => "Update", "Domain" => "MarketPrice",
                             "Fields" => {'BID' => 45.55, 'BIDSIZE' => 18, 
                                           'ASK' => 45.57, 'ASKSIZE' => 19}  } });


and I get

{
     'NakCode' => 'DeniedBySrc',
     'ID' => 2,
     'Type' => 'Ack',
     'Text' => '[400]: Invalid Request',
     'AckID' => 1,
     'Key' => {
             'Service' => 'DDS',
             'Name' => 'MO=FIBP'
     }
}

any Idea's what I am doing wrong ?

#technologywebsocketsATSpostperl
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.

Upvote
Accepted
82.9k 281 53 77

@Shuki

It may relate to the forwardOnStreamPostMsgKey configuration in ADH, as mentioned in this discussion.

Please contact the RTDS and ATS support team direclty via MyRefinitiv to verify the configurations.

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.

Thanks, I added the parameter and restarted the ADH and now it works
Upvotes
14.9k 32 5 10

Hi @Shuki ,

I'm sorry to hear that you're facing this issue. Have you had a chance to check the answers for a similar issue posted in this thread.

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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