pub struct Rfq { /* private fields */ }Expand description
RFQ (Request for Quote) namespace for OTC-style trading
Implementations§
Source§impl Rfq
impl Rfq
Sourcepub async fn create_request(
&self,
params: &CreateRfqRequestParams,
) -> Result<RfqRequestResponse, ClobError>
pub async fn create_request( &self, params: &CreateRfqRequestParams, ) -> Result<RfqRequestResponse, ClobError>
Create a new RFQ request
Sourcepub async fn cancel_request(
&self,
request_id: impl Into<String>,
) -> Result<Value, ClobError>
pub async fn cancel_request( &self, request_id: impl Into<String>, ) -> Result<Value, ClobError>
Cancel an RFQ request
Sourcepub async fn create_quote(
&self,
params: &CreateRfqQuoteParams,
) -> Result<RfqQuoteResponse, ClobError>
pub async fn create_quote( &self, params: &CreateRfqQuoteParams, ) -> Result<RfqQuoteResponse, ClobError>
Create a new RFQ quote
Sourcepub async fn cancel_quote(
&self,
quote_id: impl Into<String>,
) -> Result<Value, ClobError>
pub async fn cancel_quote( &self, quote_id: impl Into<String>, ) -> Result<Value, ClobError>
Cancel an RFQ quote
Sourcepub async fn accept_request(
&self,
request_id: impl Into<String>,
quote_id: impl Into<String>,
signed_order: &SignedOrder,
) -> Result<Value, ClobError>
pub async fn accept_request( &self, request_id: impl Into<String>, quote_id: impl Into<String>, signed_order: &SignedOrder, ) -> Result<Value, ClobError>
Accept an RFQ request by submitting a signed order
Sourcepub async fn approve_quote(
&self,
request_id: impl Into<String>,
quote_id: impl Into<String>,
signed_order: &SignedOrder,
) -> Result<Value, ClobError>
pub async fn approve_quote( &self, request_id: impl Into<String>, quote_id: impl Into<String>, signed_order: &SignedOrder, ) -> Result<Value, ClobError>
Approve an RFQ quote by submitting a signed order
Sourcepub fn list_requests(&self) -> ListRfqRequests
pub fn list_requests(&self) -> ListRfqRequests
List RFQ requests with optional filtering
Sourcepub fn requester_quotes(&self) -> ListRfqQuotes
pub fn requester_quotes(&self) -> ListRfqQuotes
List quotes as the requester
Sourcepub fn quoter_quotes(&self) -> ListRfqQuotes
pub fn quoter_quotes(&self) -> ListRfqQuotes
List quotes as the quoter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rfq
impl !RefUnwindSafe for Rfq
impl Send for Rfq
impl Sync for Rfq
impl Unpin for Rfq
impl UnsafeUnpin for Rfq
impl !UnwindSafe for Rfq
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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