Errors as responce to requests in FXTR v2

We will always get an error with HTTP status 422 if any of the required parameters are not specified in the request:

  • for example, if server_code is not specified in the opening of stream.

  • if query parameters are not specified, but the Authorization header is specified. In the stream, authorization will be succeed, but the query parameters are required (server_code and stream-auth therefore returns 422:

Handshake Details
Request URL: https://{{HOST}}/api/v2/fxtr/stream
Request Method: GET
Status Code: 422 Unprocessable Entity

Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: {{WS_KEY}}
Connection: Upgrade
Upgrade: websocket
Authorization: Bearer eyJ0eXAiOi...jxcohLWGgbw
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: {{HOST}}

Response Headers
Date: Tue, 20 Jun 2023 06:19:18 GMT
Content-Type: application/json
Content-Length: 57
Connection: keep-alive

Last updated