GithubHelp home page GithubHelp logo

perl-finance-underlying's Introduction

NAME

Finance::Underlying - Object representation of a financial asset

SYNOPSIS

use Finance::Underlying;

my $underlying = Finance::Underlying->by_symbol('frxEURUSD');
print $underlying->pip_size, "\n";

DESCRIPTION

Provides metadata on financial assets such as forex pairs.

CLASS METHODS

all_underlyings

Returns a list of all underlyings, ordered by symbol.

symbols

Return sorted list of all symbols.

by_symbol

Look up the underlying for the given symbol, returning a Finance::Underlying instance.

ATTRIBUTES

asset

The asset being quoted, for example USD for the frxUSDJPY underlying.

display_name

User-friendly English name used for display purposes.

exchange_name

The symbol of the exchange this underlying is traded on.

See Finance::Exchange for more details.

instrument_type

Categorises the underlying, available values are:

  • commodities
  • forex
  • future
  • smart_fx
  • stockindex
  • synthetic

market

The type of market for this underlying, for example forex for foreign exchange.

This will be one of the following:

  • commodities
  • forex
  • futures
  • indices
  • synthetic_index

market_convention

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:

atm_setting

There are three types:

  • atm_delta_neutral_straddle - strike so that call delta = -put delta
  • atm_forward - strike = forward price
  • atm_spot - strike = spot

delta_premium_adjusted

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.

delta_style

There are two delta convention available:

  • spot_delta - with a hedge in the spot market.
  • forward_delta - with a hedge in FX forward market

rr

Risk reversal:

  • call-put
  • put-call

bf

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)

pip_size

How large the spot pip is.

quoted_currency

The second half of a forex pair - indicates the currency that this underlying is quoted in, or the currency in which a stock index is quoted.

submarket

Classification for the underlying, see also "market".

symbol

The symbol of the underlying, for example frxUSDJPY or WLDAUD.

SEE ALSO

AUTHOR

binary.com

perl-finance-underlying's People

Contributors

tom-binary avatar junbon-deriv avatar jy-deriv avatar reginaldo-deriv avatar yngshan-deriv avatar arun-deriv avatar regcostajr avatar raunakkathuria avatar chengyang-binary avatar shahrizal-binary avatar aminroosta avatar torsten-deriv avatar yihyang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.