Functions on options
Option.shares→number
Result: The Shares
function returns 1.
Option.base.type→Option.base.type
Result: The Base type
function returns the value of the "Base type" field from the options master data.
Option.referenceRatio→String
Result: The ReferenceRatio
function returns the string '1:1'.
Option.ContractFactor→Number
Result: The ContractFactor
function provides the factor by which a position or option price must be multiplied in order to determine a contract price. These are the contract size for equity options and the point value for index options.
Option.ContractSize→Number
Result: The ContractSize
function returns the contract size of the options. The function first accesses the "Contract size" field from the options master data, then the value from the list of trading conditions for options is used if necessary. The function returns the value "1" for index options.
Option.issuer→issuer
Result: The Issuer
function returns the value of the "Issuer" field from the options master data.
Option.IsAmerican→Boolean
Result: If the "American type" checkbox is activated in the options master data, the IsAmerican
function returns "True".
Option.term→date
Result: The Runtime
function returns the value of the "Runtime" field from the options master data.
Option.OOS
[Options;Warrants;Puts;Calls]→Options|Blank list
Result: The OOS
function returns the option itself if it matches the parameters, otherwise an empty list. Cf. securities.OOS.
Option.OptionGeneration→Number
Result: The OptionGeneration
function returns the generation of the option.
Option.OptionsPartition→Number
Result: The OptionsPartition
function returns the value of the "Partition" field from the options master data.
Option.option.type→Option.type
Result: The Option type
function returns the value of the "Option type" field from the option master data.
Option.OptionVersion→String
Result: The OptionVersion
function returns the version of the option.
Option.PointValue→Number
Result: For index options, the PointValue
function returns the point value from the trading conditions for options. For other options, e.g. stock options, the function returns the value "1".
Option.notes→number
Result: The bills
function returns 1.
Option.strike→number
Result: The Strike
function returns the value of the "Reference price" field from the options master data.
Option.StrikeCurrency→Currency
Result: The StrikeCurrency
function returns the currency of the underlying security.