Derivitec API Functions¶
To get started, connect to the dev environment.
>>> from derivitec import DerivitecClient, dev
>>> client = DerivitecClient(dev)
>>> client.connect()
12/12/2017 04:21:56 PM DerivitecClient connected.
Now the client is connected we can send a request.
>>> client.get_available_currency_isos()
[u'AUD', u'CHF', u'EUR', u'GBP', u'JPY', u'SEK', u'USD', u'HKD', u'TWD', u'SGD']
Alternatively you can connect via:
>>> from derivitec import conn
>>> conn.connect(dev)
12/12/2017 04:22:40 PM DerivitecClient connected.
Doing this sets the client variable in the conn module.
What follows is a reference of all API calls currently exposed with example usage.
|
Add business days. |
|
Add a request to the client. |
|
Adjust a date to a business day using a calendar and business day convention. |
|
Get the implied futures prices of bonds, given a bond future and repo rates. |
Calculate historical price series on a set of contracts. |
|
|
Calculate risk on a set of contracts. |
|
Calculate risk on a portfolio. |
|
Calculate risk on a set of tradable ids. |
|
|
|
Create books. |
|
Delete borrow curves. |
|
Delete equity vol surfaces. |
|
Delete index compenent data. |
|
Delete projected dividends. |
|
Fit bond yield curves to bond data. |
Fit equity vol surfaces to convertible bond data. |
|
|
Get the futures price of contracts for a market data date and pricing date or for some predefined market data. |
Get active user portfolio |
|
Get available currencies |
|
Get available risk reports. |
|
|
Get Black Scholes implied vol for european option |
|
Get bond data. |
|
Get bond futures. |
|
Get a bond futures data time series for a given futures prefix and a specified offset to the expiry between two dates. |
|
Get bond info. |
|
Get bond yield curve maturity buckets constituents. |
|
Get bond yield curves. |
|
Get bonds. |
|
Get borrow curves. |
|
Get borrow curves for env. |
|
Get calendars |
|
Get cash flows for a bond between two dates. |
|
Get cds data. |
|
Get commodity futures. |
|
Get cmdty futures data for some identifiers between two dates. |
|
Get commodity vol surfaces. |
|
Get commodities |
|
Get contracts from a portfolio |
|
Get contracts from a portfolio |
|
Get contracts from a list of tradable ids. |
|
Get the convenience yield. |
|
Get convertible bonds for some identifier. |
Get convertible bonds for some identifier. |
|
|
Get bounds for a bond between two dates. |
|
Get credit swaption vol cube data for credit index and optional flags. |
|
Get crypto coin data for some crypto currencies between two dates. |
|
Get a map of dates to coupons for a bond. |
|
Get discount curves for some currencies and market dates. |
|
Get discount factors from a curve. |
|
Get dividend curve data for an given equity, provider and market date. |
|
Get dividend index fixings for some identifiers between two dates. |
Get dividend index vol surfaces. |
|
|
Get equity futures. |
|
Download vol-of-variance nodes using the pricing environment fallback. |
|
Get equities. |
|
Get equity-equity correlation data. |
|
Get equity forwards |
|
Get equity-fx correlation data. |
|
Get equity vol grid from a vol surface |
|
Get equity vol index vol surfaces. |
|
Get equity vol index vol surface vols between two dates. |
|
Get equity vol surfaces. |
|
Get equity vol surfaces for env. |
|
Get equity vol surface vols between two dates. |
|
Get ETF premiums for some identifiers between two dates. |
Get contracts from a list of tradable ids. |
|
|
Get convertible bonds for some identifier. |
|
Get forward of an asset at a set of expiries. |
|
Get FX crosses. |
|
Get FX data for some FX pairs between two dates. |
|
Get fx futures. |
|
Get FX vol surfaces. |
|
Get index compenent data. |
|
Get index compenent data for env. |
|
Get back a new market data container with interest rate bumps applied. |
|
Get ir futures. |
|
Gets a market data container required for pricing a list of contracts. |
|
Get pnl report infos |
|
Get pnl report meta data |
|
Get var report data by report ids. |
|
Get portfolio table for the specified portfolio. |
|
Get pricing details from a contract |
|
Get pricing details from a contract |
|
Get projected dividends for env. |
|
Get report data by report id. |
|
Get the report excel export from its id. |
|
Get report infos. |
Get the report result from its id. |
|
|
Get risk report metadata |
|
Get spider rock vol data. |
|
Get stock data for some identifiers between two dates. |
|
Get stock info for some identifiers. |
|
Get swaption vol cube data for rate asset and optional flags. |
|
Get a time series. |
|
Get tradable ids from a list of a contracts as of a given date. |
|
Get tradable ids from portfolio as of a date time. |
|
Get portfolio table for the specified portfolio. |
|
Get var report data by report id. |
|
Get report infos. |
|
Get var report status by report id. |
|
Get var report time series data by report id. |
|
Get var report data by report ids. |
|
Get vol from a volatility surface at a fixed maturity for a set of strikes. |
|
Legacy Position upload. |
Login using the security token to get an access token. |
|
|
Position upload. |
|
Get the prices of contracts for a market data date and pricing date or for some predefined market data. |
|
Trigger a report run. |
|
Trigger a report run. |
|
Trigger a var report run. |
|
Upload amortisation rate data. |
|
Upload bond infos. |
UploadBondIssuerCreditSpreads. |
|
|
Upload bond price data. |
|
Upload bond yield curves. |
|
Upload borrow curves. |
|
Upload Cmdty futures data |
|
Upload credit swaption vol cube data. |
|
Upload discount curves. |
|
Upload stock data |
|
Upload dividend index vol surfaces. |
|
Upload entity custom data. |
|
Upload equity volatility-of-variance curves for analytic vol swaps. |
Upload equity-dividend correlation data. |
|
|
Upload equity-equity correlation data. |
|
Upload equity-fx correlation data. |
|
Upload equity ir correlation data. |
|
Upload equity vol curves. |
|
Upload equity vol grids. |
|
Upload equity vol surfaces. |
|
Upload ETF premiums |
|
Upload fx ir correlation data. |
|
Upload fx vol grids. |
|
Upload index component data. |
|
Upload probability of default data. |
|
Upload projected dividends. |
|
Upload rate assets. |
|
Upload recovery of default data. |
|
Upload stock data |
|
Upload survival curves. |
Upload a batch of beta-adjusted ATMF spot model definitions. |