Authorization
Authorization Flow
Upon connection with the Websocket server, users must first send an AUTH message with an api key. If this step is not done, any requests to Stream public/RFQ quotes, Publish RFQ requests, or Stream RFQ requests will be denied.
API KEY
In order to use websockets, an api key is required. Currently, all api key requests must be made to [email protected]. Please use subject line: 'API KEY REQUEST' and an api key will be returned.
// auth message
interface AuthMessage {
type: 'AUTH'
apiKey: string
body: null
}
// INFO message from Premia orderbook
interface InfoMessage {
type: 'INFO'
body: null
message: string
}Last updated
Was this helpful?