abstract eventwindow and trading calendar utility

This commit is contained in:
scottsanderson
2012-08-07 10:32:10 -04:00
parent e061cb3a07
commit ed206de84a
8 changed files with 410 additions and 62 deletions
+3 -1
View File
@@ -249,9 +249,11 @@ def compare_by_dt_source_id(x,y):
return -1
elif x.source_id > y.source_id:
return 1
else:
return 0
#Alias for ease of use
comp = compare_by_dt_source_id
def to_dt(msg):
return ndict({'dt': msg})