-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement mixed catalog data requests with catalog update #2043
Conversation
13e1ba0
to
93f852e
Compare
93f852e
to
34ddc68
Compare
7497951
to
069dc2a
Compare
069dc2a
to
7876a3a
Compare
CodSpeed Performance ReportMerging #2043 will not alter performanceComparing Summary
|
da169f9
to
81f7701
Compare
81f7701
to
d6633cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting some additional testing and tweaks before merging.
nautilus_trader/common/actor.pyx
Outdated
if start is not None: | ||
Condition.is_true(start <= now, "start was > now") | ||
if end is not None: | ||
Condition.is_true(end <= now, "start was > now") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
if start is not None: | ||
Condition.is_true(start <= now, "start was > now") | ||
if end is not None: | ||
Condition.is_true(end <= now, "start was > now") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
@@ -2142,6 +2156,8 @@ cdef class Actor(Component): | |||
datetime end = None, | |||
ClientId client_id = None, | |||
callback: Callable[[UUID4], None] | None = None, | |||
bint update_catalog = False, | |||
str quote_type = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to specify the bbo schemas?
I think this is fine, probably one of the only ways to do it without adding specific data types, which might be overkill.
if start is not None: | ||
Condition.is_true(start <= now, "start was > now") | ||
if end is not None: | ||
Condition.is_true(end <= now, "start was > now") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
if start is not None: | ||
Condition.is_true(start <= now, "start was > now") | ||
if end is not None: | ||
Condition.is_true(end <= now, "start was > now") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
if start is not None: | ||
Condition.is_true(start <= now, "start was > now") | ||
if end is not None: | ||
Condition.is_true(end <= now, "start was > now") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
@@ -1804,7 +1804,7 @@ def test_update_timer_with_test_clock_sends_single_bar_to_handler(self): | |||
bid_size=Quantity.from_int(1), | |||
ask_size=Quantity.from_int(1), | |||
ts_event=1 * 60 * 1_000_000_000, # 1 minute in nanoseconds | |||
ts_init=1 * 60 * 1_000_000_000, # 1 minute in nanoseconds | |||
ts_init=1 * 60 * 1_000_000_000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a constant we might be able to use here, but I think it's hard to access from Python because of Cython.
d6633cf
to
00b84e1
Compare
00b84e1
to
11141a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work here, also some nice tidy ups 👌.
Pull Request
Add update_catalog method to actor class
Type of change
How has this change been tested?
Added several tests