Authentication

The sFOX WebSocket feeds described in this document require authentication.

The authentication command should be JSON with the following properties using your Enterprise Partner Bearer Token as the apiKey.

Property
Type
Command

type

string

"authenticate"

apiKey

string

"<YOUR-API-KEY>"

enterprise

boolean

true

const authMessage = {
   type: 'authenticate',
   apiKey: '<API_KEY>',
   enterprise: true
}
ws.send(JSON.stringify(authMessage))

Last updated