POST Ping

POST https://api.swaycharts.io/dxsca-web/ping

For clients authenticated with basic authentication resets the session expiration timeout

Since in certain authentication types there is a timeout after which the session is considered expired, there is a risk that a client who is not active may run into situation when he's not able to trade as fast as needed due to a sudden need to re-authenticate. To avoid such issues, this request can be used to periodically "ping" the server without actually doing anything to indicate that the session is still active and should not expire. There is no need to use this API if HMAC Authentication is used.

Empty request

Authorization header should be included in case of basic authentication
// Response

{
    "sessionToken": "Authentication token to be used in all further requests",
    "timeout": "Time interval after which token expires due to inactivity"
}

Last updated