RateLimitTrigger

struct RateLimitTrigger

Rate-limit trigger.

Public Members

std::string_view name

Configuration name.

roq::Origin origin = {}

Origin.

roq::RateLimitType type = {}

Rate-limit type.

std::span<roq::User const> users

Sorted list of users being affected (empty list means: all)

std::span<roq::Account const> accounts

Sorted list of accounts being affected (empty list means: all)

std::chrono::nanoseconds ban_expires = {}

System time when ban expires (zero means: ban is no longer effective)

std::string_view triggered_by

Trigger activated by this user.

roq::BufferCapacity buffer_capacity = {}

Buffer capacity (indicator for how full or empty the buffer is)

uint32_t remaining_requests = {}

The buffer becomes full if this many requests are sent instantly.