pub struct Parameters {Show 14 fields
pub amount: Option<String>,
pub app_markup_percentage: Option<String>,
pub barrier: Option<String>,
pub barrier2: Option<String>,
pub basis: 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 multiplier: Option<f64>,
pub selected_tick: Option<String>,
pub symbol: String,
}Expand description
[Optional] Used to pass the parameters for contract buy.
Fields§
§amount: Option<String>[Optional] Proposed payout or stake value\n
app_markup_percentage: Option<String>[Optional] Markup added to contract prices (as a percentage of contract payout)\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.\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.\n
basis: Option<String>[Optional] Indicate whether amount is ‘payout’ or ‘stake’.\n
contract_type: ContractTypeA valid contract-type\n
currency: StringThis can only be the account-holder’s currency\n
date_expiry: Option<String>[Optional] Epoch value of the expiry time of the contract. You must either specify date_expiry or duration.\n
date_start: Option<DateTime<Utc>>[Optional] For forward-starting contracts, epoch value of the starting time of the contract.\n
duration: Option<i64>[Optional] Duration quantity\n
duration_unit: Option<DurationUnit>[Optional] Duration unit is s: seconds, m: minutes, h: hours, d: days, t: ticks\n
multiplier: Option<f64>[Optional] The multiplier for non-binary options. E.g. lookbacks.\n
selected_tick: Option<String>[Optional] The tick that is predicted to have the highest/lowest value - for tickhigh and ticklow contracts.\n
symbol: StringSymbol code\n
Trait Implementations§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more