pub struct SandboxServiceClient<T> { /* private fields */ }Implementations§
Source§impl SandboxServiceClient<Channel>
impl SandboxServiceClient<Channel>
Source§impl<T> SandboxServiceClient<T>
impl<T> SandboxServiceClient<T>
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> SandboxServiceClient<InterceptedService<T, F>>
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn open_sandbox_account(
&mut self,
request: impl IntoRequest<OpenSandboxAccountRequest>,
) -> Result<Response<OpenSandboxAccountResponse>, Status>
pub async fn open_sandbox_account( &mut self, request: impl IntoRequest<OpenSandboxAccountRequest>, ) -> Result<Response<OpenSandboxAccountResponse>, Status>
OpenSandboxAccount — зарегистрировать счет
Sourcepub async fn get_sandbox_accounts(
&mut self,
request: impl IntoRequest<GetAccountsRequest>,
) -> Result<Response<GetAccountsResponse>, Status>
pub async fn get_sandbox_accounts( &mut self, request: impl IntoRequest<GetAccountsRequest>, ) -> Result<Response<GetAccountsResponse>, Status>
GetSandboxAccounts — счета пользователя
Sourcepub async fn close_sandbox_account(
&mut self,
request: impl IntoRequest<CloseSandboxAccountRequest>,
) -> Result<Response<CloseSandboxAccountResponse>, Status>
pub async fn close_sandbox_account( &mut self, request: impl IntoRequest<CloseSandboxAccountRequest>, ) -> Result<Response<CloseSandboxAccountResponse>, Status>
CloseSandboxAccount — закрыть счет
Sourcepub async fn post_sandbox_order(
&mut self,
request: impl IntoRequest<PostOrderRequest>,
) -> Result<Response<PostOrderResponse>, Status>
pub async fn post_sandbox_order( &mut self, request: impl IntoRequest<PostOrderRequest>, ) -> Result<Response<PostOrderResponse>, Status>
PostSandboxOrder — выставить заявку
Sourcepub async fn post_sandbox_order_async(
&mut self,
request: impl IntoRequest<PostOrderAsyncRequest>,
) -> Result<Response<PostOrderAsyncResponse>, Status>
pub async fn post_sandbox_order_async( &mut self, request: impl IntoRequest<PostOrderAsyncRequest>, ) -> Result<Response<PostOrderAsyncResponse>, Status>
PostSandboxOrderAsync — выставить заявку асинхронным методом Особенности работы приведены в статье.
Sourcepub async fn replace_sandbox_order(
&mut self,
request: impl IntoRequest<ReplaceOrderRequest>,
) -> Result<Response<PostOrderResponse>, Status>
pub async fn replace_sandbox_order( &mut self, request: impl IntoRequest<ReplaceOrderRequest>, ) -> Result<Response<PostOrderResponse>, Status>
ReplaceSandboxOrder — изменить выставленную заявку
Sourcepub async fn get_sandbox_orders(
&mut self,
request: impl IntoRequest<GetOrdersRequest>,
) -> Result<Response<GetOrdersResponse>, Status>
pub async fn get_sandbox_orders( &mut self, request: impl IntoRequest<GetOrdersRequest>, ) -> Result<Response<GetOrdersResponse>, Status>
GetSandboxOrders — получить список активных заявок по счету
Sourcepub async fn cancel_sandbox_order(
&mut self,
request: impl IntoRequest<CancelOrderRequest>,
) -> Result<Response<CancelOrderResponse>, Status>
pub async fn cancel_sandbox_order( &mut self, request: impl IntoRequest<CancelOrderRequest>, ) -> Result<Response<CancelOrderResponse>, Status>
CancelSandboxOrder — отменить заявку
Sourcepub async fn get_sandbox_order_state(
&mut self,
request: impl IntoRequest<GetOrderStateRequest>,
) -> Result<Response<OrderState>, Status>
pub async fn get_sandbox_order_state( &mut self, request: impl IntoRequest<GetOrderStateRequest>, ) -> Result<Response<OrderState>, Status>
GetSandboxOrderState — получить статус торгового поручения
Sourcepub async fn get_sandbox_order_price(
&mut self,
request: impl IntoRequest<GetOrderPriceRequest>,
) -> Result<Response<GetOrderPriceResponse>, Status>
pub async fn get_sandbox_order_price( &mut self, request: impl IntoRequest<GetOrderPriceRequest>, ) -> Result<Response<GetOrderPriceResponse>, Status>
GetSandboxOrderPrice — получить предварительную стоимость для лимитной заявки
Sourcepub async fn get_sandbox_positions(
&mut self,
request: impl IntoRequest<PositionsRequest>,
) -> Result<Response<PositionsResponse>, Status>
pub async fn get_sandbox_positions( &mut self, request: impl IntoRequest<PositionsRequest>, ) -> Result<Response<PositionsResponse>, Status>
GetSandboxPositions — список позиций по счету
Sourcepub async fn get_sandbox_operations(
&mut self,
request: impl IntoRequest<OperationsRequest>,
) -> Result<Response<OperationsResponse>, Status>
pub async fn get_sandbox_operations( &mut self, request: impl IntoRequest<OperationsRequest>, ) -> Result<Response<OperationsResponse>, Status>
GetSandboxOperations — список операций по счету При работе с методом учитывайте особенности взаимодействия.
Sourcepub async fn get_sandbox_operations_by_cursor(
&mut self,
request: impl IntoRequest<GetOperationsByCursorRequest>,
) -> Result<Response<GetOperationsByCursorResponse>, Status>
pub async fn get_sandbox_operations_by_cursor( &mut self, request: impl IntoRequest<GetOperationsByCursorRequest>, ) -> Result<Response<GetOperationsByCursorResponse>, Status>
GetSandboxOperationsByCursor — список операций по счету с пагинацией При работе с методом учитывайте особенности взаимодействия.
Sourcepub async fn get_sandbox_portfolio(
&mut self,
request: impl IntoRequest<PortfolioRequest>,
) -> Result<Response<PortfolioResponse>, Status>
pub async fn get_sandbox_portfolio( &mut self, request: impl IntoRequest<PortfolioRequest>, ) -> Result<Response<PortfolioResponse>, Status>
GetSandboxPortfolio — портфель по счету
Sourcepub async fn sandbox_pay_in(
&mut self,
request: impl IntoRequest<SandboxPayInRequest>,
) -> Result<Response<SandboxPayInResponse>, Status>
pub async fn sandbox_pay_in( &mut self, request: impl IntoRequest<SandboxPayInRequest>, ) -> Result<Response<SandboxPayInResponse>, Status>
SandboxPayIn — пополнить счет.
Sourcepub async fn get_sandbox_withdraw_limits(
&mut self,
request: impl IntoRequest<WithdrawLimitsRequest>,
) -> Result<Response<WithdrawLimitsResponse>, Status>
pub async fn get_sandbox_withdraw_limits( &mut self, request: impl IntoRequest<WithdrawLimitsRequest>, ) -> Result<Response<WithdrawLimitsResponse>, Status>
GetSandboxWithdrawLimits — доступный остаток для вывода средств
Sourcepub async fn get_sandbox_max_lots(
&mut self,
request: impl IntoRequest<GetMaxLotsRequest>,
) -> Result<Response<GetMaxLotsResponse>, Status>
pub async fn get_sandbox_max_lots( &mut self, request: impl IntoRequest<GetMaxLotsRequest>, ) -> Result<Response<GetMaxLotsResponse>, Status>
GetSandboxMaxLots — расчет количества доступных для покупки/продажи лотов
Sourcepub async fn post_sandbox_stop_order(
&mut self,
request: impl IntoRequest<PostStopOrderRequest>,
) -> Result<Response<PostStopOrderResponse>, Status>
pub async fn post_sandbox_stop_order( &mut self, request: impl IntoRequest<PostStopOrderRequest>, ) -> Result<Response<PostStopOrderResponse>, Status>
PostSandboxStopOrder — выставить стоп-заявку
Sourcepub async fn get_sandbox_stop_orders(
&mut self,
request: impl IntoRequest<GetStopOrdersRequest>,
) -> Result<Response<GetStopOrdersResponse>, Status>
pub async fn get_sandbox_stop_orders( &mut self, request: impl IntoRequest<GetStopOrdersRequest>, ) -> Result<Response<GetStopOrdersResponse>, Status>
GetSandboxStopOrders — получить список активных стоп-заявок по счету
Sourcepub async fn cancel_sandbox_stop_order(
&mut self,
request: impl IntoRequest<CancelStopOrderRequest>,
) -> Result<Response<CancelStopOrderResponse>, Status>
pub async fn cancel_sandbox_stop_order( &mut self, request: impl IntoRequest<CancelStopOrderRequest>, ) -> Result<Response<CancelStopOrderResponse>, Status>
CancelSandboxStopOrder — отменить стоп-заявку
Trait Implementations§
Source§impl<T: Clone> Clone for SandboxServiceClient<T>
impl<T: Clone> Clone for SandboxServiceClient<T>
Source§fn clone(&self) -> SandboxServiceClient<T>
fn clone(&self) -> SandboxServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for SandboxServiceClient<T>
impl<T> RefUnwindSafe for SandboxServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for SandboxServiceClient<T>where
T: Send,
impl<T> Sync for SandboxServiceClient<T>where
T: Sync,
impl<T> Unpin for SandboxServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for SandboxServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SandboxServiceClient<T>where
T: UnwindSafe,
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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].