pub struct DeliveryService { /* private fields */ }Expand description
Delivery service for accessing delivery-related data.
Implementations§
Source§impl DeliveryService
impl DeliveryService
Sourcepub async fn get_delivery_data(
&self,
req: &DeliveryDataRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<DeliveryData>>
pub async fn get_delivery_data( &self, req: &DeliveryDataRequest, opts: Option<RequestOptions>, ) -> Result<Vec<DeliveryData>>
Get delivery data.
§Arguments
req- Request with variety code and trade dateopts- Optional request options
Sourcepub async fn get_delivery_match(
&self,
req: &DeliveryMatchRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<DeliveryMatch>>
pub async fn get_delivery_match( &self, req: &DeliveryMatchRequest, opts: Option<RequestOptions>, ) -> Result<Vec<DeliveryMatch>>
Get delivery match data.
§Arguments
req- Request with variety code and trade dateopts- Optional request options
Sourcepub async fn get_delivery_cost(
&self,
variety_id: &str,
variety_type: &str,
opts: Option<RequestOptions>,
) -> Result<Vec<DeliveryCost>>
pub async fn get_delivery_cost( &self, variety_id: &str, variety_type: &str, opts: Option<RequestOptions>, ) -> Result<Vec<DeliveryCost>>
Get delivery cost for a variety.
§Arguments
variety_id- Variety ID (“all” for all varieties)variety_type- Variety type (“0” = physical delivery, “1” = average price delivery)opts- Optional request options
Get warehouse premium for a variety.
§Arguments
variety_id- Variety IDtrade_date- Trade date (YYYYMMDD format)opts- Optional request options
Sourcepub async fn get_tc_congregate_delivery(
&self,
req: &TcCongregateDeliveryRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<TcCongregateDelivery>>
pub async fn get_tc_congregate_delivery( &self, req: &TcCongregateDeliveryRequest, opts: Option<RequestOptions>, ) -> Result<Vec<TcCongregateDelivery>>
Get TC (two-way delivery) congregate delivery statistics.
Returns aggregated delivery information for varieties supporting two-way delivery.
§Arguments
req- Request with variety_id and trade_dateopts- Optional request options
Sourcepub async fn get_roll_delivery_seller_intention(
&self,
req: &RollDeliverySellerIntentionRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<RollDeliverySellerIntention>>
pub async fn get_roll_delivery_seller_intention( &self, req: &RollDeliverySellerIntentionRequest, opts: Option<RequestOptions>, ) -> Result<Vec<RollDeliverySellerIntention>>
Get roll delivery seller intention.
Returns seller’s delivery intentions for rolling delivery contracts.
§Arguments
req- Request with variety_id and trade_dateopts- Optional request options
Sourcepub async fn get_bonded_delivery(
&self,
req: &BondedDeliveryRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<BondedDelivery>>
pub async fn get_bonded_delivery( &self, req: &BondedDeliveryRequest, opts: Option<RequestOptions>, ) -> Result<Vec<BondedDelivery>>
Get bonded delivery data.
Returns delivery statistics for bonded warehouse delivery mode.
§Arguments
req- Request with variety_id and trade_dateopts- Optional request options
Sourcepub async fn get_td_bonded_delivery(
&self,
req: &TdBondedDeliveryRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<TdBondedDelivery>>
pub async fn get_td_bonded_delivery( &self, req: &TdBondedDeliveryRequest, opts: Option<RequestOptions>, ) -> Result<Vec<TdBondedDelivery>>
Get TD (two-day) bonded delivery data.
Returns bonded delivery data with two-day settlement mode.
§Arguments
req- Request with variety_id and trade_dateopts- Optional request options
Sourcepub async fn get_factory_spot_agio(
&self,
req: &FactorySpotAgioRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<FactorySpotAgio>>
pub async fn get_factory_spot_agio( &self, req: &FactorySpotAgioRequest, opts: Option<RequestOptions>, ) -> Result<Vec<FactorySpotAgio>>
Get factory spot premium (basis spread).
Returns the difference between factory spot price and futures price.
§Arguments
req- Request with variety_idopts- Optional request options
Sourcepub async fn get_plywood_delivery_commodity(
&self,
req: &PlywoodDeliveryCommodityRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<PlywoodDeliveryCommodity>>
pub async fn get_plywood_delivery_commodity( &self, req: &PlywoodDeliveryCommodityRequest, opts: Option<RequestOptions>, ) -> Result<Vec<PlywoodDeliveryCommodity>>
Get plywood delivery commodity information.
Returns delivery specifications and parameters specific to plywood contracts.
§Arguments
req- Request with variety_idopts- Optional request options
Trait Implementations§
Source§impl Clone for DeliveryService
impl Clone for DeliveryService
Source§fn clone(&self) -> DeliveryService
fn clone(&self) -> DeliveryService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more