Finance::Underlying - Object representation of a financial asset
use Finance::Underlying;
my $underlying = Finance::Underlying->by_symbol('frxEURUSD');
print $underlying->pip_size, "\n";
Provides metadata on financial assets such as forex pairs.
Returns a list of all underlyings, ordered by symbol.
Return sorted list of all symbols.
Look up the underlying for the given symbol, returning a Finance::Underlying instance.
The asset being quoted, for example USD
for the frxUSDJPY
underlying.
User-friendly English name used for display purposes.
The symbol of the exchange this underlying is traded on.
See Finance::Exchange for more details.
Categorises the underlying, available values are:
- commodities
- forex
- future
- individualstock
- smart_fx
- stockindex
- synthetic
The type of market for this underlying, for example forex
for foreign exchange.
This will be one of the following:
- commodities
- forex
- futures
- indices
- stocks
- volidx
These should mirror Bloomberg's Composite vol data conventions.
For further information, see Foreign Exchange option pricing
, by Iain J Clark, pages
47 onwards.
Types of volatility conventions available:
There are three types:
- atm_delta_neutral_straddle - strike so that call delta = -put delta
- atm_forward - strike = forward price
- atm_spot - strike = spot
There are two types:
- 1 for premium adjusted . Premium adjusted means the actual hedge quantity must be adjusted by the premium received if the premium is paid in foreign currency.
- 0 for no premium adjusted - for futher explanation please refer to Wystup
FX Volatility Smile Construction
April 2010 paper, pg 5 and 6.
There are two delta convention available:
- spot_delta - with a hedge in the spot market.
- forward_delta - with a hedge in FX forward market
Risk reversal:
- call-put
- put-call
There are three types of butterfly available in Bloomberg setting:
- (call+put)/2-atm (which is quoted 1 vol strangle for Composite sources and 2 vol (a.k.a smile strangle) for BGN sources)
- Base currency strangle - ATM (which is (base currency call + base currency put)- ATM)
- Foreign currency strangle - ATM (which is (foreign currency call + foreign currency put)- ATM)
How large the spot pip is.
The second half of a forex pair - indicates the currency that this underlying is quoted in, or the currency in which a stock or stock index is quoted.
Classification for the underlying, see also "market".
The symbol of the underlying, for example frxUSDJPY
or WLDAUD
.
- Finance::Contract - represents a financial contract
binary.com