Function default_limits
pub fn default_limits() -> BrokerLimitsExpand description
The bundled BCS limits, parsed.
BCS publishes no numbers of its own, so these are cautious starting values, not the broker’s
real limits (not verified against the live API). A method with no route of its own spends the
default route "*", so no call is free. Cancel has its own bucket, separate from placing, so a
burst of new orders cannot block a cancel.
§Panics
Never in practice: the bundled file is checked by a test of this crate.
§Examples
use brokapi_bcs::limits::default_limits;
use brokapi_runtime::BrokerLimiter;
use std::time::Instant;
let limiter = BrokerLimiter::new(&default_limits());
assert!(limiter.acquire("PlaceOrder", Instant::now()).is_ok());