List server runtime events
const url = 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/runtime/events?cursor=0&limit=100';const options = { method: 'GET', headers: {'X-Request-Id': 'onboarding-client-1042', Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/runtime/events?cursor=0&limit=100' \ --header 'Authorization: <Authorization>' \ --header 'X-Request-Id: onboarding-client-1042'Returns the runtime event feed Koneth Main stores for one server, oldest
first after cursor. Requires accounts:read. Events are written when
the server reports them, so a quiet server returns an empty page, and
login events are also projected into the login monitor log. Keep the
returned cursor and pass it back to resume without re-reading events.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID of a trading server owned by your organization.
Example
6be9a699-2f28-402e-b64e-93ba6bdafe1bHeader Parameters
Section titled “Header Parameters”Optional correlation ID used for API request billing and logs.
Example
onboarding-client-1042Query Parameters
Section titled “Query Parameters”Return events recorded after this cursor.
Maximum number of events to return.
Responses
Section titled “Responses”Runtime events returned in ascending cursor order.
object
object
Monotonic cursor within one server’s feed. Pass it back to resume.
What the event is about.
Identifier of the account or server the event belongs to.
Trading account number, or null for server-level events.
Event name, such as LOGIN_SUCCEEDED or POSITION_CLOSED.
Event-specific fields reported by the server.
object
When the server says the event happened.
When Koneth Main stored the event.
Cursor of the last returned event, or the requested cursor when the page is empty.
Whether another page is immediately available.
Example
{ "events": [ { "cursor": "4812", "aggregateType": "account", "type": "LOGIN_SUCCEEDED" } ], "cursor": "4812"}Invalid request.
object
Validation issue details when the request fails schema validation.
object
Examplegenerated
{ "error": "example", "issues": [ {} ]}Management API authentication is missing or invalid.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Management API authentication required"}The organization cannot cover the active API request price.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Insufficient API credits"}The key lacks the required scope or server access.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Missing API scope: accounts:read"}Unexpected server error.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Internal server error"}