#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyBarsRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(message, optional, tag="2")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(bool, tag="3")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyBarsResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<DailyBar>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyBar {
#[prost(message, optional, tag="1")]
pub date: ::core::option::Option<super::super::super::super::super::google::r#type::Date>,
#[prost(double, tag="2")]
pub open: f64,
#[prost(double, tag="3")]
pub high: f64,
#[prost(double, tag="4")]
pub low: f64,
#[prost(double, tag="5")]
pub close: f64,
#[prost(double, tag="6")]
pub volume: f64,
#[prost(double, tag="7")]
pub score: f64,
}
pub mod daily_bars_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct DailyBarsServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl DailyBarsServiceClient<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> DailyBarsServiceClient<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,
) -> DailyBarsServiceClient<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,
{
DailyBarsServiceClient::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 daily_bars(
&mut self,
request: impl tonic::IntoRequest<super::DailyBarsRequest>,
) -> Result<tonic::Response<super::DailyBarsResponse>, 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.daily.v1.DailyBarsService/DailyBars",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyVwapsRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(message, optional, tag="2")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(bool, tag="3")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyVwapsResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<DailyVwap>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyVwap {
#[prost(message, optional, tag="1")]
pub date: ::core::option::Option<super::super::super::super::super::google::r#type::Date>,
#[prost(double, tag="2")]
pub price: f64,
#[prost(double, tag="3")]
pub volume: f64,
#[prost(double, tag="4")]
pub score: f64,
}
pub mod daily_vwaps_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct DailyVwapsServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl DailyVwapsServiceClient<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> DailyVwapsServiceClient<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,
) -> DailyVwapsServiceClient<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,
{
DailyVwapsServiceClient::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 daily_vwaps(
&mut self,
request: impl tonic::IntoRequest<super::DailyVwapsRequest>,
) -> Result<tonic::Response<super::DailyVwapsResponse>, 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.daily.v1.DailyVwapsService/DailyVwaps",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyPricesRequest {
#[prost(message, optional, tag="1")]
pub identifier: ::core::option::Option<super::super::super::r#type::shared::v1::Identifier>,
#[prost(message, optional, tag="2")]
pub constraints: ::core::option::Option<super::super::super::r#type::shared::v1::Constraints>,
#[prost(bool, tag="3")]
pub adjustment: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyPricesResponse {
#[prost(message, repeated, tag="1")]
pub data: ::prost::alloc::vec::Vec<DailyPrice>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyPrice {
#[prost(message, optional, tag="1")]
pub date: ::core::option::Option<super::super::super::super::super::google::r#type::Date>,
#[prost(double, tag="2")]
pub price: f64,
#[prost(double, tag="3")]
pub volume: f64,
#[prost(double, tag="4")]
pub score: f64,
}
pub mod daily_prices_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
#[derive(Debug, Clone)]
pub struct DailyPricesServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl DailyPricesServiceClient<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> DailyPricesServiceClient<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,
) -> DailyPricesServiceClient<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,
{
DailyPricesServiceClient::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 daily_prices(
&mut self,
request: impl tonic::IntoRequest<super::DailyPricesRequest>,
) -> Result<tonic::Response<super::DailyPricesResponse>, 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.daily.v1.DailyPricesService/DailyPrices",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}