Authenticate
WebSocket URL:
wss://streams.onetrading.com
wss://streams.onetrading.com
AUTHENTICATE
message containing the API token, after which they can subscribe to any private channel. If the supplied API token is valid, it will be used to authorize subscriptions and requests for all private channels within this WebSocket connection.Trade
permission, otherwise you will receive an AUTH_ERROR
.Authentication Request
{
"type": "AUTHENTICATE",
"api_token": "eyJ..."
}
AuthenticateRequest
type
enum<string>
required
Allowed value:
AUTHENTICATE
api_token
string
required
Authentication Response
Success
{
"type": "AUTHENTICATED"
}
AuthenticateSuccessResponse
type
enum<string>
required
Allowed value:
AUTHENTICATED
Error
{
"error": "AUTHENTICATION_FAILED"
}
AuthenticateErrorResponse
error
enum<string>
required
Allowed value:
AUTHENTICATION_FAILED