#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayEmaRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(int32, tag="4")]
pub length: i32,
#[prost(bool, tag="5")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayEmaResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradayEmaData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayEmaData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(double, tag="3")]
pub average: f64,
}
pub mod intraday_ema_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayEmaServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayEmaServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayEmaServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayEmaServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayEmaServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_ema(
&mut self,
request: impl tonic::IntoRequest<super::IntradayEmaRequest>,
) -> Result<tonic::Response<super::IntradayEmaResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayEmaService/IntradayEma",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradaySmaRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(int32, tag="4")]
pub length: i32,
#[prost(bool, tag="5")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradaySmaResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradaySmaData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradaySmaData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(message, optional, tag="3")]
pub average: ::core::option::Option<f64>,
}
pub mod intraday_sma_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradaySmaServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradaySmaServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradaySmaServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradaySmaServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradaySmaServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_sma(
&mut self,
request: impl tonic::IntoRequest<super::IntradaySmaRequest>,
) -> Result<tonic::Response<super::IntradaySmaResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradaySmaService/IntradaySma",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayRsiRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(int32, tag="4")]
pub length: i32,
#[prost(bool, tag="5")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayRsiResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradayRsiData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayRsiData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(double, tag="3")]
pub rsi: f64,
}
pub mod intraday_rsi_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayRsiServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayRsiServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayRsiServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayRsiServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayRsiServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_rsi(
&mut self,
request: impl tonic::IntoRequest<super::IntradayRsiRequest>,
) -> Result<tonic::Response<super::IntradayRsiResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayRsiService/IntradayRsi",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayCmaRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(bool, tag="4")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayCmaResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradayCmaData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayCmaData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(double, tag="3")]
pub average: f64,
}
pub mod intraday_cma_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayCmaServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayCmaServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayCmaServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayCmaServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayCmaServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_cma(
&mut self,
request: impl tonic::IntoRequest<super::IntradayCmaRequest>,
) -> Result<tonic::Response<super::IntradayCmaResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayCmaService/IntradayCma",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayMacdRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(int32, tag="4")]
pub long: i32,
#[prost(int32, tag="5")]
pub short: i32,
#[prost(bool, tag="6")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayMacdResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradayMacdData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayMacdData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(double, tag="3")]
pub macd: f64,
#[prost(double, tag="4")]
pub short: f64,
#[prost(double, tag="5")]
pub long: f64,
}
pub mod intraday_macd_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayMacdServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayMacdServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayMacdServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayMacdServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayMacdServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_macd(
&mut self,
request: impl tonic::IntoRequest<super::IntradayMacdRequest>,
) -> Result<tonic::Response<super::IntradayMacdResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayMacdService/IntradayMacd",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayBollingerRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(int32, tag="4")]
pub length: i32,
#[prost(double, tag="5")]
pub deviation: f64,
#[prost(bool, tag="6")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayBollingerResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<IntradayBollingerData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayBollingerData {
#[prost(message, optional, tag="1")]
pub time_stamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(double, tag="2")]
pub value: f64,
#[prost(message, optional, tag="3")]
pub lower: ::core::option::Option<f64>,
#[prost(message, optional, tag="4")]
pub upper: ::core::option::Option<f64>,
#[prost(message, optional, tag="5")]
pub middle: ::core::option::Option<f64>,
}
pub mod intraday_bollinger_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayBollingerServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayBollingerServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayBollingerServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayBollingerServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayBollingerServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_bollinger(
&mut self,
request: impl tonic::IntoRequest<super::IntradayBollingerRequest>,
) -> Result<tonic::Response<super::IntradayBollingerResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayBollingerService/IntradayBollinger",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayVolatilityRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(enumeration="super::super::super::r#type::shared::v1::Sampling", tag="2")]
pub sampling: i32,
#[prost(message, optional, tag="3")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(bool, tag="4")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntradayVolatilityResponse {
#[prost(double, tag="1")]
pub value: f64,
}
pub mod intraday_volatility_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct IntradayVolatilityServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl IntradayVolatilityServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> IntradayVolatilityServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> IntradayVolatilityServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
IntradayVolatilityServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
#[must_use]
pub fn send_gzip(mut self) -> Self {
self.inner = self.inner.send_gzip();
self
}
#[must_use]
pub fn accept_gzip(mut self) -> Self {
self.inner = self.inner.accept_gzip();
self
}
pub async fn intraday_volatility(
&mut self,
request: impl tonic::IntoRequest<super::IntradayVolatilityRequest>,
) -> Result<tonic::Response<super::IntradayVolatilityResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/systemathics.apis.services.intraday_analytics.v1.IntradayVolatilityService/IntradayVolatility",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}