pub struct ProposalRequest {Show 26 fields
pub amount: Option<f64>,
pub barrier: Option<String>,
pub barrier2: Option<String>,
pub barrier_range: Option<BarrierRange>,
pub basis: Option<String>,
pub cancellation: Option<String>,
pub contract_type: ContractType,
pub currency: String,
pub date_expiry: Option<String>,
pub date_start: Option<DateTime<Utc>>,
pub duration: Option<i64>,
pub duration_unit: Option<DurationUnit>,
pub growth_rate: Option<f64>,
pub limit_order: Option<LimitOrder>,
pub loginid: Option<String>,
pub multiplier: Option<f64>,
pub passthrough: Option<Value>,
pub payout_per_point: Option<String>,
pub product_type: Option<String>,
pub proposal: Value,
pub req_id: Option<i64>,
pub selected_tick: Option<String>,
pub subscribe: Option<String>,
pub symbol: String,
pub trade_risk_profile: Option<String>,
pub trading_period_start: Option<DateTime<Utc>>,
}
Expand description
Gets latest price for a specific contract.
Fields§
§amount: Option<f64>
[Optional] Proposed contract payout or stake, or multiplier (for lookbacks).\n
barrier: Option<String>
[Optional] Barrier for the contract (or last digit prediction for digit contracts). Contracts less than 24 hours in duration would need a relative barrier (barriers which need +/-), where entry spot would be adjusted accordingly with that amount to define a barrier, except for Synthetic Indices as they support both relative and absolute barriers. Not needed for lookbacks.\n
barrier2: Option<String>
[Optional] Low barrier for the contract (for contracts with two barriers). Contracts less than 24 hours in duration would need a relative barrier (barriers which need +/-), where entry spot would be adjusted accordingly with that amount to define a barrier, except for Synthetic Indices as they support both relative and absolute barriers. Not needed for lookbacks.\n
barrier_range: Option<BarrierRange>
[Optional] Barrier range for callputspread.\n
basis: Option<String>
[Optional] Indicates type of the amount
.\n
cancellation: Option<String>
Cancellation duration option (only for MULTUP
and MULTDOWN
contracts).\n
contract_type: ContractType
The proposed contract type\n
currency: String
This can only be the account-holder’s currency (obtained from payout_currencies
call).\n
date_expiry: Option<String>
[Optional] Epoch value of the expiry time of the contract. Either date_expiry or duration is required.\n
date_start: Option<DateTime<Utc>>
[Optional] Indicates epoch value of the starting time of the contract. If left empty, the start time of the contract is now.\n
duration: Option<i64>
[Optional] Duration quantity. Either date_expiry or duration is required.\n
duration_unit: Option<DurationUnit>
[Optional] Duration unit - s
: seconds, m
: minutes, h
: hours, d
: days, t
: ticks.\n
growth_rate: Option<f64>
[Optional] Growth rate of an accumulator contract.\n
limit_order: Option<LimitOrder>
Add an order to close the contract once the order condition is met (only for MULTUP
and MULTDOWN
and ‘ACCU’ contracts). Supported orders: take_profit
, stop_loss
.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
multiplier: Option<f64>
[Optional] The multiplier for non-binary options. E.g. lookbacks.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
payout_per_point: Option<String>
[Optional] Clients can provide payout_per_point directly, and the barrier will be calculated based on this payout_per_point value.\n
product_type: Option<String>
[Optional] The product type.\n
proposal: Value
Field ‘proposal’ mapped to Value due to complexity/potential issues.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
selected_tick: Option<String>
[Optional] The tick that is predicted to have the highest/lowest value - for TICKHIGH
and TICKLOW
contracts.\n
subscribe: Option<String>
[Optional] 1 - to initiate a realtime stream of prices. Note that tick trades (without a user-defined barrier), digit trades and less than 24 hours at-the-money contracts for the following underlying symbols are not streamed: R_10
, R_25
, R_50
, R_75
, R_100
, RDBULL
, RDBEAR
(this is because their price is constant).\n
symbol: String
The short symbol name (obtained from active_symbols
call).\n
trade_risk_profile: Option<String>
[Only for Snowball] The trade risk profile for the Snowball contract. Higher risk profile offers higher coupon rate at the expense of higher probability of breaching caution price\n
trading_period_start: Option<DateTime<Utc>>
[Optional] Required only for multi-barrier trading. Defines the epoch value of the trading period start time.\n
Trait Implementations§
Source§impl Clone for ProposalRequest
impl Clone for ProposalRequest
Source§fn clone(&self) -> ProposalRequest
fn clone(&self) -> ProposalRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more