Static Data

shaunlaurens edited this page Mar 25, 2012 · 12 revisions

Return to Observing External Data

One key feature of the Netrium Language is the ability to incorporate financial market elements directly into the language. Once declared in the Units.db.xml file, they can be used as if they were a part of the language. Note that this means that the declared items must comply with Haskell naming conventions - i.e. they must be a single word, and start with a lowercase letter.

There is a sample units.db.xml file in the examples folder.

These elements are:

Cash Flow Types

for example: cash, premiums, interest payments, initial margins etc.

    <CashFlowTypeDecl name="cash"/>

Commodities

  <CommodityDecl name="gas"/>

Commodities, for example: gas, electricity, carbon, brentoil etc.

Units of Measure

   <UnitDecl name="mwh"/>

Units of Measure, for example: mwh, bbl, tons, thm, aau etc.

Locations

  <LocationDecl name="nbp"/>

Locations, for example: nbp, uk, eu, ara, amprionHVG etc.

Currencies

  <CurrencyDecl name="gbp"/>

Currencies, for example: gbp, eur, usd, yen etc.

Next

To learn more, take a look through the sample library.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.