pub struct FinFeedHttpConfig {
pub base_url: SecretString,
pub proxy_url: Option<SecretString>,
pub timeout_secs: u64,
pub max_concurrent_requests: usize,
pub attempt_budget: u64,
pub min_request_interval_ms: u64,
pub retry: RetryConfig,
pub kalshi_metadata_url: Option<SecretString>,
}Expand description
Transport and local request limits for one client shared by its callers.
§Local Attempt Allowance
The allowance counts managed FinFeed HttpClient invocations, including retries, with no refunds.
The native transport can resend twice after remote HTTP/2 REFUSED_STREAM or
GOAWAY(NO_ERROR) errors without consuming allowance or pacing. These limits do not
establish billing, account-wide quota, or continuity guarantees.
Public Kalshi metadata requests share transport controls but do not consume the allowance.
§Timeouts and Retries
Request timeouts, pacing, retry deadlines, and maximum backoff are positive and limited locally to one day. Both retry deadlines are required.
Fields§
§base_url: SecretStringHTTPS endpoint, or a plaintext loopback test peer, including the version prefix. Debug output redacts the complete endpoint.
proxy_url: Option<SecretString>Explicit HTTP(S) proxy, with ambient proxies disabled.
timeout_secs: u64Transport timeout for one request, in seconds.
max_concurrent_requests: usizeMaximum managed requests in flight on this instance.
attempt_budget: u64Lifetime FinFeed attempt allowance, including failed and canceled attempts after admission.
min_request_interval_ms: u64Minimum spacing between managed attempt starts, in milliseconds.
retry: RetryConfigRetry policy with required per-operation and total elapsed deadlines, in milliseconds.
Both include local admission waits; the total deadline also covers retries and backoff.
Deadlines must be positive and at most one day. Python None retains defaults;
a Rust None deadline fails client validation.
Unspecified retry fields retain FinFeed defaults during deserialization.
kalshi_metadata_url: Option<SecretString>Public Kalshi metadata endpoint override, including the API version prefix.
Accepts HTTPS or loopback HTTP; None uses production. FinFeed credentials are never sent there.
Implementations§
Source§impl FinFeedHttpConfig
impl FinFeedHttpConfig
Sourcepub fn builder() -> FinFeedHttpConfigBuilder
pub fn builder() -> FinFeedHttpConfigBuilder
Create an instance of FinFeedHttpConfig using the builder syntax
Trait Implementations§
Source§impl Clone for FinFeedHttpConfig
impl Clone for FinFeedHttpConfig
Source§impl Debug for FinFeedHttpConfig
impl Debug for FinFeedHttpConfig
Source§impl Default for FinFeedHttpConfig
impl Default for FinFeedHttpConfig
Source§impl<'de> Deserialize<'de> for FinFeedHttpConfigwhere
FinFeedHttpConfig: Default,
impl<'de> Deserialize<'de> for FinFeedHttpConfigwhere
FinFeedHttpConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for FinFeedHttpConfig
impl RefUnwindSafe for FinFeedHttpConfig
impl Send for FinFeedHttpConfig
impl Sync for FinFeedHttpConfig
impl Unpin for FinFeedHttpConfig
impl UnsafeUnpin for FinFeedHttpConfig
impl UnwindSafe for FinFeedHttpConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more