Disable kraken orders due to #299
parent
c39fa825d0
commit
58517295d2
|
@ -159,9 +159,15 @@ class OHLC:
|
||||||
def get_config() -> dict[str, Any]:
|
def get_config() -> dict[str, Any]:
|
||||||
|
|
||||||
conf, path = config.load()
|
conf, path = config.load()
|
||||||
|
|
||||||
section = conf.get('kraken')
|
section = conf.get('kraken')
|
||||||
|
|
||||||
|
if section:
|
||||||
|
log.warning(
|
||||||
|
'Kraken order mode is currently disabled due to bug!\n'
|
||||||
|
'See https://github.com/pikers/piker/issues/299'
|
||||||
|
)
|
||||||
|
return {}
|
||||||
|
|
||||||
if section is None:
|
if section is None:
|
||||||
log.warning(f'No config section found for kraken in {path}')
|
log.warning(f'No config section found for kraken in {path}')
|
||||||
return {}
|
return {}
|
||||||
|
@ -558,7 +564,13 @@ async def handle_order_requests(
|
||||||
await ems_order_stream.send(BrokerdError(
|
await ems_order_stream.send(BrokerdError(
|
||||||
oid=request_msg['oid'],
|
oid=request_msg['oid'],
|
||||||
symbol=request_msg['symbol'],
|
symbol=request_msg['symbol'],
|
||||||
reason=f'Kraken only, No account found: `{account}` ?',
|
|
||||||
|
# reason=f'Kraken only, No account found: `{account}` ?',
|
||||||
|
reason=(
|
||||||
|
'Kraken only, order mode disabled due to '
|
||||||
|
'https://github.com/pikers/piker/issues/299'
|
||||||
|
),
|
||||||
|
|
||||||
).dict())
|
).dict())
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue