pub struct AxExecClientConfig {Show 16 fields
pub trader_id: TraderId,
pub account_id: AccountId,
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub is_sandbox: bool,
pub base_url_http: Option<String>,
pub base_url_orders: Option<String>,
pub base_url_ws_private: Option<String>,
pub http_proxy_url: Option<String>,
pub ws_proxy_url: Option<String>,
pub http_timeout_secs: Option<u64>,
pub max_retries: Option<u32>,
pub retry_delay_initial_ms: Option<u64>,
pub retry_delay_max_ms: Option<u64>,
pub heartbeat_interval_secs: Option<u64>,
pub recv_window_ms: Option<u64>,
}Expand description
Configuration for the AX Exchange live execution client.
Fields§
§trader_id: TraderIdThe trader ID for the client.
account_id: AccountIdThe account ID for the client.
api_key: Option<String>API key for authenticated requests.
api_secret: Option<String>API secret for authenticated requests.
is_sandbox: boolUse sandbox environment (default: true).
base_url_http: Option<String>Optional override for the REST base URL.
base_url_orders: Option<String>Optional override for the orders REST base URL.
base_url_ws_private: Option<String>Optional override for the private WebSocket URL.
http_proxy_url: Option<String>Optional HTTP proxy URL.
ws_proxy_url: Option<String>Optional WebSocket proxy URL.
http_timeout_secs: Option<u64>Optional REST timeout in seconds.
max_retries: Option<u32>Optional maximum retry attempts for REST requests.
retry_delay_initial_ms: Option<u64>Optional initial retry backoff in milliseconds.
retry_delay_max_ms: Option<u64>Optional maximum retry backoff in milliseconds.
heartbeat_interval_secs: Option<u64>Optional heartbeat interval (seconds) for WebSocket clients.
recv_window_ms: Option<u64>Optional receive window in milliseconds for signed requests.
Implementations§
Source§impl AxExecClientConfig
impl AxExecClientConfig
Sourcepub fn has_api_credentials(&self) -> bool
pub fn has_api_credentials(&self) -> bool
Returns true if both API key and secret are available.
Sourcepub fn http_base_url(&self) -> String
pub fn http_base_url(&self) -> String
Returns the REST base URL, considering overrides and environment.
Sourcepub fn orders_base_url(&self) -> String
pub fn orders_base_url(&self) -> String
Returns the orders REST base URL, considering overrides and environment.
Sourcepub fn ws_private_url(&self) -> String
pub fn ws_private_url(&self) -> String
Returns the private WebSocket URL, considering overrides and environment.
Trait Implementations§
Source§impl ClientConfig for AxExecClientConfig
impl ClientConfig for AxExecClientConfig
Source§impl Clone for AxExecClientConfig
impl Clone for AxExecClientConfig
Source§fn clone(&self) -> AxExecClientConfig
fn clone(&self) -> AxExecClientConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AxExecClientConfig
impl Debug for AxExecClientConfig
Auto Trait Implementations§
impl Freeze for AxExecClientConfig
impl RefUnwindSafe for AxExecClientConfig
impl Send for AxExecClientConfig
impl Sync for AxExecClientConfig
impl Unpin for AxExecClientConfig
impl UnsafeUnpin for AxExecClientConfig
impl UnwindSafe for AxExecClientConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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