From 57399e4f5d8ac666424ef9da0d7b59210f3b6956 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 26 Jun 2023 14:00:01 -0400 Subject: [PATCH] basic bot: drop registry addr and connect to default pikerd --- examples/basic_order_bot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/basic_order_bot.py b/examples/basic_order_bot.py index 8bb94aea..b0db9c8b 100644 --- a/examples/basic_order_bot.py +++ b/examples/basic_order_bot.py @@ -64,9 +64,7 @@ async def bot_main(): ''' from piker.service import maybe_open_pikerd - port: int = 6666 # non-default pikerd addr ll: str = 'info' - reg_addr: tuple[str, int] = ('127.0.0.1', port) # open an order ctl client client: OrderClient @@ -79,19 +77,18 @@ async def bot_main(): # init and sync actor-service runtime maybe_open_pikerd( - # registry_addr=reg_addr, loglevel=ll, debug_mode=False, ), tractor.wait_for_actor( 'pikerd', - # arbiter_sockaddr=reg_addr, ), open_ems( fqme, mode='paper', # {'live', 'paper'} + # mode='live', # for real-brokerd submissions loglevel=ll, ) as ( @@ -113,6 +110,7 @@ async def bot_main(): action='buy', # TODO: remove this from our schema? oid=oid, account='paper', # use binance.usdtm for binance futes + # account='binance.usdtm', # for live binance futes size=size, symbol=fqme, price=price,