[ts-gen] Options issue
sam
sam_backtester at yahoo.fr
Wed Jan 14 06:58:02 EST 2009
Hi.
I've just noticed a small issue, when The Shim tries to get the portfolio status:
--------
Error 1054 (42S22): Unknown column 'inf' in 'field list'
insert ignore
into OrderResult(
acc, type, curr, name, expiry, rite, strike, position, price, value, avg_cost, un_pnl, real_pnl, ibc)
values
('DU47775', 'OPT', 'EUR', 'BNP', '20090116', null, 40.00, 1, inf, 0.00, 410.30, -410.30, 0.00, null),
--------
It seems to happen with this BNP contract, which is nearly dead and expired (no ASK price).
See the .png included, it might help.
A more general question:
- what do we have to do to included an option contract, let's say the FEB 20 '09 6.0 CALL on C, ib id 56710904 ?
A small example for only one contract will be enough for me ;).
Thx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.trading-shim.org/pipermail/ts-general/attachments/20090114/c37baa39/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pb-shim.PNG
Type: image/png
Size: 14584 bytes
Desc: not available
Url : http://www.trading-shim.org/pipermail/ts-general/attachments/20090114/c37baa39/attachment-0001.png
More information about the ts-general
mailing list