Updated health check pings to use the prefix /var/tmp/mango_healthcheck_

This commit is contained in:
Geoff Taylor 2021-07-14 14:17:14 +01:00
parent 9f99ecf650
commit fd7c045d37
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class SimpleMarketMaker:
self.existing_order_tolerance: Decimal = existing_order_tolerance
self.pause: timedelta = pause
self.stop_requested = False
self.health_filename = "/var/tmp/mango_simple_market_maker"
self.health_filename = "/var/tmp/mango_healthcheck_simple_market_maker"
def start(self):
# On startup there should be no existing orders. If we didn't exit cleanly last time though,

View File

@ -15,6 +15,6 @@ do
place-order --market $MARKET --order-type LIMIT --log-level ERROR \
--side SELL --quantity $FIXED_POSITION_SIZE --price $(echo "$CURRENT_PRICE + $FIXED_SPREAD" | bc)
echo "Last ${MARKET} market-making action: $(date)" > /var/tmp/mango_worlds_simplest_market_maker
echo "Last ${MARKET} market-making action: $(date)" > /var/tmp/mango_healthcheck_worlds_simplest_market_maker
sleep $SLEEP_BETWEEN_ORDER_PLACES
done