Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • User should be authorized in the system.
  • Session ID should be valid.
  • User ID should be valid.

Request

GET GET <URL>?User=<UserID>:<SessionID>&Password=<StreamerSessionID>&HttpClientType=WebSocket

Example: ws://etnatrader.etnasoft.us:9999/CreateSession.txt?User=<UserID>:<SessionID>1143:dc57b831-3ad9-49df-846c-dd3fdd3e75ec&Password=<StreamerSessionID>dc57b831-3ad9-49df-846c-dd3fdd3e75ec&HttpClientType=WebSocket

UserId and SessionId can be retreived from login rest service call. See REST API Walkthroughs for details.

ParamJSON KeyDescription
UserIDResult.UserIdUser's identifier
SessionIDResult.SessionIDUser's session identifier
StreamerSessionID

For trade data streamer: Result.DataAddresses.SessionID

Data streamer session identifier

For quote data streamer: Result.QuoteAddresses.SessionID

Quote streamer session identifier

Example: ws://etnatrader.etnasoft.us:9999/CreateSession.txt?User=1143:dc57b831-3ad9-49df-846c-dd3fdd3e75ec&Password=dc57b831-3ad9-49df-846c-dd3fdd3e75ec&HttpClientType=WebSocket

Session identifier for the target streamer.

 

Response

ParamDescription
CmdCreateSession.txt
StatusCodeConnection Status
SessionIDUser's session identifier

...