View Source XtbClient.Messages.SymbolInfo (XtbClient v0.1.1)
Information relevant to the symbol of security.
Please be advised that result values for profit and margin calculation can be used optionally, because server is able to perform all profit/margin calculations for Client application by commands described later in this document.
parameters
Parameters
askask price in base currency,bidbid price in base currency,category_namecategory name,contract_sizesize of 1 lot,currencycurrency,currency_pairindicates whether the symbol represents a currency pair,currency_profitthe currency of calculated profit,descriptiondescription,expirationexpiration,nullif not applicable,group_namesymbol group name,highthe highest price of the day in base currency,initial_margininitial margin for 1 lot order, used for profit/margin calculation,instant_max_volumemaximum instant volume multiplied by 100 (in lots),leveragesymbol leverage,long_onlyindicates whether the symbol is long only,lot_maxmaximum size of trade,lot_minminimum size of trade,lot_stepa value of minimum step by which the size of trade can be changed (withinlotMin-lotMaxrange),lowthe lowest price of the day in base currency,margin_hedgedused for profit calculation,margin_hedged_strongfor margin calculation,margin_maintenancefor margin calculation,nullif not applicable,margin_modefor margin calculation,percentagepercentage,pips_precisionnumber of symbol's pip decimal places,precisionnumber of symbol's price decimal places,profit_modefor profit calculation,quote_idsource of price, seeXtbClient.Messages.QuoteId,short_sellingindicates whether short selling is allowed on the instrument,spread_rawthe difference between raw ask and bid prices,spread_tablespread representation,startingnullif not applicable,step_rule_idappropriate step rule ID fromXtbClient.Connection.get_step_rules/1command response,stops_levelminimal distance (in pips) from the current price where the stopLoss/takeProfit can be set,swap_rollover_3_daystime when additional swap is accounted for weekend,swap_enableindicates whether swap value is added to position on end of day,swap_longswwap value for long positions in pips,swap_shortswap value for short positions in pips,swap_typetype of swap calculated,symbolsymbol name,tick_sizesmallest possible price change, used for profit/margin calculation,nullif not applicable,tick_valuevalue of smallest possible price change (in base currency), used for profit/margin calculation,nullif not applicable,timeask & bid tick time,time_stringtime in string,trailing_enabledindicates whether trailing stop (offset) is applicable to the instrument,typeinstrument class number.
handled-api-methods
Handled Api methods
getSymbol
Link to this section Summary
Link to this section Types
@type t() :: %XtbClient.Messages.SymbolInfo{ ask: float(), bid: float(), category_name: binary(), contract_size: integer(), currency: binary(), currency_pair: true | false, currency_profit: binary(), description: binary(), expiration: DateTime.t() | nil, group_name: binary(), high: float(), initial_margin: integer(), instant_max_volume: integer(), leverage: float(), long_only: true | false, lot_max: float(), lot_min: float(), lot_step: float(), low: float(), margin_hedged: integer(), margin_hedged_strong: true | false, margin_maintenance: integer(), margin_mode: XtbClient.Messages.MarginMode.t(), percentage: float(), pips_precision: integer(), precision: integer(), profit_mode: XtbClient.Messages.ProfitMode.t(), quote_id: XtbClient.Messages.QuoteId.t() | nil, short_selling: true | false, spread_raw: float(), spread_table: float(), starting: DateTime.t() | nil, step_rule_id: integer(), stops_level: integer(), swap_enable: true | false, swap_long: float(), swap_rollover_3_days: integer(), swap_short: float(), swap_type: integer(), symbol: binary(), tick_size: float(), tick_value: float(), time: DateTime.t(), time_string: binary(), trailing_enabled: true | false, type: integer() }