down arb
This commit is contained in:
8
bot_x.py
8
bot_x.py
@@ -337,6 +337,10 @@ def main():
|
|||||||
|
|
||||||
if not market_open or xlf_state != "IDLE":
|
if not market_open or xlf_state != "IDLE":
|
||||||
return
|
return
|
||||||
|
if any(mean_rev.position.get(s) is not None for s in symbols_for_mr):
|
||||||
|
return
|
||||||
|
if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema):
|
||||||
|
return
|
||||||
|
|
||||||
bond_ask = state.ask_prices["BOND"]
|
bond_ask = state.ask_prices["BOND"]
|
||||||
gs_ask = state.ask_prices["GS"]
|
gs_ask = state.ask_prices["GS"]
|
||||||
@@ -407,6 +411,10 @@ def main():
|
|||||||
|
|
||||||
if not market_open or vale_state != "IDLE":
|
if not market_open or vale_state != "IDLE":
|
||||||
return
|
return
|
||||||
|
if any(mean_rev.position.get(s) is not None for s in symbols_for_mr):
|
||||||
|
return
|
||||||
|
if any(cross_ema.last_signal.get(s) is not None for s in symbols_for_ema):
|
||||||
|
return
|
||||||
|
|
||||||
vale_bid = state.bid_prices["VALE"]
|
vale_bid = state.bid_prices["VALE"]
|
||||||
vale_ask = state.ask_prices["VALE"]
|
vale_ask = state.ask_prices["VALE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user