pub struct RfqClient<'a> { /* private fields */ }Expand description
RFQ client (TypeScript parity).
设计:
- 通过
ClobClient::rfq()生成一个绑定到同一个 client 的临时视图。 - 需要签名与 API Key 的接口会检查 L2 鉴权可用性。
- tick_size 依然遵循 Rust SDK 既有策略:默认 0.01;如果需要其他 tick 由调用方显式传入。
Implementations§
Source§impl<'a> RfqClient<'a>
impl<'a> RfqClient<'a>
pub async fn create_rfq_request( &self, user_order: RfqUserOrder, tick_size: Option<&str>, ) -> Result<RfqRequestResponse, ClobError>
pub async fn cancel_rfq_request( &self, req: CancelRfqRequestParams, ) -> Result<String, ClobError>
pub async fn get_rfq_requests( &self, params: Option<GetRfqRequestsParams>, ) -> Result<RfqRequestsResponse, ClobError>
pub async fn create_rfq_quote( &self, user_quote: RfqUserQuote, tick_size: Option<&str>, ) -> Result<RfqQuoteResponse, ClobError>
Sourcepub async fn get_rfq_requester_quotes(
&self,
params: Option<GetRfqQuotesParams>,
) -> Result<RfqQuotesResponse, ClobError>
pub async fn get_rfq_requester_quotes( &self, params: Option<GetRfqQuotesParams>, ) -> Result<RfqQuotesResponse, ClobError>
Fetch RFQ quotes as a requester (new endpoint, TS SDK v5.2.4).
Sourcepub async fn get_rfq_quoter_quotes(
&self,
params: Option<GetRfqQuotesParams>,
) -> Result<RfqQuotesResponse, ClobError>
pub async fn get_rfq_quoter_quotes( &self, params: Option<GetRfqQuotesParams>, ) -> Result<RfqQuotesResponse, ClobError>
Fetch RFQ quotes as a quoter (new endpoint, TS SDK v5.2.4).
Sourcepub async fn get_rfq_quotes(
&self,
params: Option<GetRfqQuotesParams>,
) -> Result<RfqQuotesResponse, ClobError>
👎Deprecated: use get_rfq_requester_quotes or get_rfq_quoter_quotes
pub async fn get_rfq_quotes( &self, params: Option<GetRfqQuotesParams>, ) -> Result<RfqQuotesResponse, ClobError>
use get_rfq_requester_quotes or get_rfq_quoter_quotes
Deprecated: use [get_rfq_requester_quotes] or [get_rfq_quoter_quotes].
pub async fn get_rfq_best_quote( &self, params: Option<GetRfqBestQuoteParams>, ) -> Result<RfqQuote, ClobError>
pub async fn cancel_rfq_quote( &self, quote: CancelRfqQuoteParams, ) -> Result<String, ClobError>
pub async fn rfq_config(&self) -> Result<Value, ClobError>
pub async fn accept_rfq_quote( &self, payload: AcceptQuoteParams, fee_rate_bps: Decimal, tick_size: Option<&str>, ) -> Result<String, ClobError>
pub async fn approve_rfq_order( &self, payload: ApproveOrderParams, fee_rate_bps: Decimal, tick_size: Option<&str>, ) -> Result<String, ClobError>
Auto Trait Implementations§
impl<'a> Freeze for RfqClient<'a>
impl<'a> !RefUnwindSafe for RfqClient<'a>
impl<'a> Send for RfqClient<'a>
impl<'a> Sync for RfqClient<'a>
impl<'a> Unpin for RfqClient<'a>
impl<'a> UnsafeUnpin for RfqClient<'a>
impl<'a> !UnwindSafe for RfqClient<'a>
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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