basic bot: drop registry addr and connect to default pikerd

basic_buy_bot
Tyler Goodlet 2023-06-26 14:00:01 -04:00
parent 5690595064
commit 57399e4f5d
1 changed files with 2 additions and 4 deletions

View File

@ -64,9 +64,7 @@ async def bot_main():
''' '''
from piker.service import maybe_open_pikerd from piker.service import maybe_open_pikerd
port: int = 6666 # non-default pikerd addr
ll: str = 'info' ll: str = 'info'
reg_addr: tuple[str, int] = ('127.0.0.1', port)
# open an order ctl client # open an order ctl client
client: OrderClient client: OrderClient
@ -79,19 +77,18 @@ async def bot_main():
# init and sync actor-service runtime # init and sync actor-service runtime
maybe_open_pikerd( maybe_open_pikerd(
# registry_addr=reg_addr,
loglevel=ll, loglevel=ll,
debug_mode=False, debug_mode=False,
), ),
tractor.wait_for_actor( tractor.wait_for_actor(
'pikerd', 'pikerd',
# arbiter_sockaddr=reg_addr,
), ),
open_ems( open_ems(
fqme, fqme,
mode='paper', # {'live', 'paper'} mode='paper', # {'live', 'paper'}
# mode='live', # for real-brokerd submissions
loglevel=ll, loglevel=ll,
) as ( ) as (
@ -113,6 +110,7 @@ async def bot_main():
action='buy', # TODO: remove this from our schema? action='buy', # TODO: remove this from our schema?
oid=oid, oid=oid,
account='paper', # use binance.usdtm for binance futes account='paper', # use binance.usdtm for binance futes
# account='binance.usdtm', # for live binance futes
size=size, size=size,
symbol=fqme, symbol=fqme,
price=price, price=price,