Saturday, 8 May 2010

Composing Contracts Part 4: Sample Usage

open System
open ContractDataTypes
open Contracts

let t1 = Date(DateTime.Today.AddSeconds(10.0))

// zero-coupon bond
let c1 = zcb t1 10.0 USD

let ret = eval c1

ret.Subscribe(printf "%A")

Console.ReadLine ()

No comments: