WebSocket URL:
wss://streams.onetrading.com
All private channels require client authentication before subscription. Clients should first send an 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.You must ensure the API token you generate has the Trade
permission, otherwise you will receive an AUTH_ERROR
.
Authentication Request#
{
"type": "AUTHENTICATE",
"api_token": "eyJ..."
}
Authentication Response#
Success#
{
"type": "AUTHENTICATED"
}
AuthenticateSuccessResponse
Error#
{
"error": "AUTHENTICATION_FAILED"
}
AuthenticateErrorResponse