Back to Community
ERROR: Dropping expired assets from optimization universe

How do you avoid the expired assets from optimization universe error?

1 response

I agree it would be great to be able to suppress that and glad you mentioned it.
By the way it's not an "ERROR" (you can edit your title along with editing the message), it says "WARN", it is warning-level. I'd prefer INFO.
And use of the word "expired" was a source of confusion for me at first, we never talk about expired stocks, makes me think of milk. Should be replaced with the word we are all familiar with, delisted, in my opinion. It's just saying they have delisted and are being cleared out. Example below. Looks like they are three days each.

2007-01-10 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(26654 [GKIS])']
2007-01-11 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(26654 [GKIS])']
2007-01-12 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(26654 [GKIS])']
2007-01-24 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(5702 [OS])']
2007-01-25 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(5702 [OS])']
2007-01-26 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(40069 [RBAK])', 'Equity(5702 [OS])']
2007-01-29 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(20909 [PSTI])', 'Equity(40069 [RBAK])']
2007-01-30 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(20909 [PSTI])', 'Equity(40069 [RBAK])', 'Equity(22458 [MCDTA])']
2007-01-31 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(20909 [PSTI])', 'Equity(22458 [MCDTA])']
2007-02-01 07:30 WARN Dropping expired assets from optimization universe:  
['Equity(22458 [MCDTA])']

The first mention would be the day of delisting I think. The position remains, can gain or lose value even though no longer on the market if I understand properly. The third is the autoclose date, definitely. That's when the position is cleared. (There's no visible order to observe, that's fine).

I don't know if Q is open to suggestions or to what degree they are taken very seriously or usually just wind up on a long todo list.
Multiple people chiming in can surely make a difference.
If they were interested, my suggestion in an ideal world might be along this line:
1. As suggested, be able to turn those messages off. Something like set_logging('delist') = 0
2. If on (default), the day after delisting, something like 'INFO: -596 GKIS delisted 2007-01-11 at 20.98 value -12504'
3. Prevent the position value from changing over the next two or three days up to the autoclose date since it would not change in the real world (doesn't really exist anymore).
4. Remove from the positions object.
5. On autoclose date, given above, no further message necessary.

My own code looks like this:

ti:211 INFO auto close -596 GKIS at 20.98 value -12504

There's probably something blocking a simple action of just clearing the position away immediately after delisting that I'm not aware of.

Anyone like that suggestion enough to want to +1? Or have other to add?