Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::RateLimiter Class Reference

#include <slick-trader/brokers/common/order_entry.hpp>

Collaboration diagram for slick::trader::RateLimiter:

Public Member Functions

 RateLimiter (uint32_t per_sec=0) noexcept
bool allow (uint64_t now_ns) noexcept
uint32_t per_sec () const noexcept

Detailed Description

Definition at line 83 of file order_entry.hpp.

Constructor & Destructor Documentation

◆ RateLimiter()

slick::trader::RateLimiter::RateLimiter ( uint32_t per_sec = 0)
inlineexplicitnoexcept

Definition at line 85 of file order_entry.hpp.

References per_sec().

Member Function Documentation

◆ allow()

bool slick::trader::RateLimiter::allow ( uint64_t now_ns)
inlinenodiscardnoexcept

Definition at line 88 of file order_entry.hpp.

◆ per_sec()

uint32_t slick::trader::RateLimiter::per_sec ( ) const
inlinenodiscardnoexcept

Definition at line 100 of file order_entry.hpp.

Referenced by RateLimiter().


The documentation for this class was generated from the following file: