WebSocket API with Auth via Api Keys

TEST SITE APIs

Client Trading API:  wss://uattrading.manticor.io/client-frontend/api/v2/stream

Client Market Data API: wss://uatmarketdata.manticor.io/client-frontend/api/v2/stream

PRODUCTION APIs

Client Trading API:  wss://trading.manticor.io/client-frontend/api/v2/stream

Client Market Data API: wss://marketdata.manticor.io/client-frontend/api/v2/stream

Authorization

Trading and Market Data sockets requires authorization.

Login Request

     {
       "operation": "LOGIN",
       "data":[
         "uNiHadbXRN44O7bIzUSX3dGR", // public key
         "1573122977",               // seconds from 1970-01-01T00:00Z (UTC)
                                     // We allow +- 10 seconds in request
         "f95a6044ce87ccb93dff51740d71534e1125755c927df47752bcb598e53af276" 
                                     // Signature. Hex(HmacSha256(PUBLIC_KEY + seconds))
       ]
     }

Logon Response

     {
       "e":"logon",                 // Event type
       "data":"Logged on"
     }

Error Handling

Error Message

     {
       "e":"error",                  // Event type
       "code":"LOGIN_SERVER_ERROR",  // Error code
       "data":"Bad request"          // Text reason
     }