Skip to content

Commit

Permalink
Cancel support in Docker#21
Browse files Browse the repository at this point in the history
  • Loading branch information
4TT1L4 committed Jan 4, 2024
1 parent 12720fc commit ddcfd44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ services:
image: ghcr.io/geniusyield/market-maker:latest
container_name: mm
environment:
# Supported modes: MM for market making and CANCEL for canceling ALL the orders.
MODE: MM
PAYMENT_SIGNING_KEY: ${PAYMENT_SIGNING_KEY}
PROVIDER_CONFIG: |
{
Expand Down
8 changes: 7 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
echo $PROVIDER_CONFIG >> ~/config.json
echo $MARKET_MAKER_CONFIG >> ~/market-maker-config.json
echo $PAYMENT_SIGNING_KEY >> ~/payment-signing-key.skey
cabal run geniusyield-market-maker-exe -- Run ~/config.json ~/market-maker-config.json
if [[ "${MODE:=MM}" == "CANCEL" ]]; then
echo "Canceling all the orders..."
cabal run geniusyield-market-maker-exe -- Cancel ~/config.json ~/market-maker-config.json
else
echo "Starting market maker..."
cabal run geniusyield-market-maker-exe -- Run ~/config.json ~/market-maker-config.json
fi

0 comments on commit ddcfd44

Please sign in to comment.