|
From: Luigi B. <lui...@gm...> - 2015-02-25 15:15:16
|
Hi Joseph,
I'm not sure about the asset class. The whole commodity folder has been
kind of an abandoned project. I wouldn't tie currencies to it before giving
it a good, hard look.
The lack of fractional items shouldn't be a problem (there are also fiat
currencies that don't have them). I'm not sure about the numeric code. You
might try returning a null and see if this breaks anything.
Later,
Luigi
On Mon, Feb 16, 2015 at 8:11 AM, Joseph Wang <joe...@gm...> wrote:
> I've starting doing some quant work on coding cryptocurrency
> derivative code. One question that I have is the way of representing
> bitcoin. There is infrastructure for representing currencies, but
> while cryptocurrencies have codes associated with them, they don't
> have fractional items or ISO numbers.
>
> I was wondering if it would be worth refactoring the CommodityType and
> Currency classes into subclasses of an AssetType class.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-dev mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-dev
>
--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>
|