pub struct ContractsForRequest {
pub contracts_for: Value,
pub currency: Option<String>,
pub landing_company: Option<LandingCompany>,
pub landing_company_short: Option<LandingCompanyShort>,
pub loginid: Option<String>,
pub passthrough: Option<Value>,
pub product_type: Option<String>,
pub req_id: Option<i64>,
}
Expand description
For a given symbol, get the list of currently available contracts, and the latest barrier and duration limits for each contract.
Fields§
§contracts_for: Value
Field ‘contracts_for’ mapped to Value due to complexity/potential issues.\n
currency: Option<String>
[Optional] Currency of the contract’s stake and payout (obtained from payout_currencies
call).\n
landing_company: Option<LandingCompany>
Deprecated - Replaced by landing_company_short.\n
landing_company_short: Option<LandingCompanyShort>
[Optional] Indicates which landing company to get a list of contracts for. If you are logged in, your account’s landing company will override this field. Note that when landing_company_short is set to ‘virtual’, landing_company will take precendce until the deprecated field is removed from the api.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
product_type: Option<String>
[Optional] If you specify this field, only contracts tradable through that contract type will be returned.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for ContractsForRequest
impl Clone for ContractsForRequest
Source§fn clone(&self) -> ContractsForRequest
fn clone(&self) -> ContractsForRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more