Rename `Client.send_update()` -> `.update_nowait()`

rekt_pps
Tyler Goodlet 2023-03-22 10:50:10 -04:00
parent 069466218e
commit 581782800d
1 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class OrderBook(Struct):
log.warning('USE `.send_nowait()` instead!')
return self.send_nowait(msg)
def send_update(
def update_nowait(
self,
uuid: str,
@ -95,6 +95,14 @@ class OrderBook(Struct):
self._to_ems.send_nowait(msg)
return cmd
# TODO: async meth for this!
# def update(
# self,
# uuid: str,
# **data: dict,
# ) -> dict:
# ...
def cancel_nowait(
self,
uuid: str,