fix: Forgot to add fake_md_bridge.py
Needed to run py md plugins as standalone apps
This commit is contained in:
1 parent
4756e243fa
commit
ffe859703a
1 file changed
+19
@@ -0,0 +1,19 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class FakeMdBridge:
|
||||
def __init__(self, logger: Optional[logging.Logger] = logging.getLogger()):
|
||||
self.logger = logger
|
||||
|
||||
def on_books(self, v):
|
||||
if self.logger:
|
||||
self.logger.info("[books.json]%s" % v)
|
||||
|
||||
def on_securities(self, v):
|
||||
if self.logger:
|
||||
self.logger.info("[securities.json]%s" % v)
|
||||
|
||||
def on_trades(self, v):
|
||||
if self.logger:
|
||||
self.logger.info("[trades.json]%s" % v)
|
||||
Reference in new issue
Block a user