Get Websockets Token
POST/private/GetWebSocketsToken
An authentication token must be requested via this REST API endpoint in order to connect to and authenticate with our Websockets API. The token should be used within 15 minutes of creation, but it does not expire once a successful Websockets connection and private subscription has been made and is maintained.
API Key Permissions Required: WebSocket interface - On
Request
- application/json
Body
required
nonce int64required
Nonce used in construction of API-Sign
header
Responses
- 200
Websockets token retrieved.
- application/json
- Schema
- Example (from schema)
Schema
result object
token string
Websockets token
expires integer
Time (in seconds) after which the token expires
error string[]
{
"error": [],
"result": {
"token": "1Dwc4lzSwNWOAwkMdqhssNNFhs1ed606d1WcF3XfEMw",
"expires": 900
}
}
Loading...