Skip to content

Commit

Permalink
Merge pull request #44 from Polymarket/chore/support-wimbledon-mens-s…
Browse files Browse the repository at this point in the history
…ingles

wimbledon config
  • Loading branch information
L-Kov authored Jun 29, 2022
2 parents e7d379e + e19a739 commit 75343a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow that is manually triggered

name: Start an NBA game market maker bots
name: Start a game market maker bots

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
Expand Down Expand Up @@ -51,6 +51,7 @@ on:
- "basketball_nba_championship_winner"
- "basketball_ncaab"
- "basketball_euroleague"
- "tennis_atp_wimbledon"
required: true

region:
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:
KUBE_CONFIG_DATA: ${{ secrets.PROD_KUBE_CONFIG_DATA }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
ECR_REPOSITORY: polymarket
IMAGE_TAG: mmk_nba_game_${{ github.event.inputs.game_id }}_${{ github.sha }}_main
IMAGE_TAG: mmk_game_${{ github.event.inputs.game_id }}_${{ github.sha }}_main

steps:
- name: Checkout Code
Expand Down Expand Up @@ -127,7 +128,7 @@ jobs:
ENVIRONMENT: ${{ github.event.inputs.environment }}

run: |
./create_nba_game_bot_k8s_deployment.sh $BANDS_FILE $TOKEN_ID_TEAM_A $TOKEN_ID_TEAM_B $SPORT $REGION $MARKET $GAME_ID "$TEAM_A" "$TEAM_B" $IMAGE_TAG $ENVIRONMENT
./create_game_bot_k8s_deployment.sh $BANDS_FILE $TOKEN_ID_TEAM_A $TOKEN_ID_TEAM_B $SPORT $REGION $MARKET $GAME_ID "$TEAM_A" "$TEAM_B" $IMAGE_TAG $ENVIRONMENT
- name: Deploy market maker bot for team A
uses: ckuroki/kubectl-aws-eks@v1
Expand Down Expand Up @@ -162,7 +163,7 @@ jobs:
KUBE_CONFIG_DATA: ${{ secrets.STAGING_KUBE_CONFIG_DATA }}
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
ECR_REPOSITORY: polymarket
IMAGE_TAG: mmk_nba_game_${{ github.event.inputs.game_id }}_${{ github.sha }}
IMAGE_TAG: mmk_game_${{ github.event.inputs.game_id }}_${{ github.sha }}

steps:
- name: Checkout Code
Expand Down Expand Up @@ -203,7 +204,7 @@ jobs:
ENVIRONMENT: ${{ github.event.inputs.environment }}

run: |
./create_nba_game_bot_k8s_deployment.sh $BANDS_FILE $TOKEN_ID_TEAM_A $TOKEN_ID_TEAM_B $SPORT $REGION $MARKET $GAME_ID "$TEAM_A" "$TEAM_B" $IMAGE_TAG $ENVIRONMENT
./create_game_bot_k8s_deployment.sh $BANDS_FILE $TOKEN_ID_TEAM_A $TOKEN_ID_TEAM_B $SPORT $REGION $MARKET $GAME_ID "$TEAM_A" "$TEAM_B" $IMAGE_TAG $ENVIRONMENT
- name: Deploy market maker bot for team A
uses: ckuroki/kubectl-aws-eks@v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow that is manually triggered

name: Stop an NBA game market maker bots
name: Stop a game market maker bots

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
Expand Down
32 changes: 8 additions & 24 deletions bands.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"avgMargin": 0.01,
"maxMargin": 0.02,
"minAmount": 30.0,
"avgAmount": 50.0,
"maxAmount": 100.0
"avgAmount": 200.0,
"maxAmount": 300.0
},
{
"minMargin": 0.02,
"avgMargin": 0.02,
"maxMargin": 0.03,
"minAmount": 50.0,
"avgAmount": 100.0,
"maxAmount": 200.0
"avgAmount": 200.0,
"maxAmount": 300.0
},
{
"minMargin": 0.03,
Expand All @@ -31,14 +31,6 @@
"minAmount": 100.0,
"avgAmount": 500.0,
"maxAmount": 1000.0
},
{
"minMargin": 0.05,
"avgMargin": 0.05,
"maxMargin": 0.06,
"minAmount": 100.0,
"avgAmount": 500.0,
"maxAmount": 1000.0
}
],
"sellBands": [
Expand All @@ -47,16 +39,16 @@
"avgMargin": 0.01,
"maxMargin": 0.02,
"minAmount": 30.0,
"avgAmount": 50.0,
"maxAmount": 100.0
"avgAmount": 200.0,
"maxAmount": 300.0
},
{
"minMargin": 0.02,
"avgMargin": 0.02,
"maxMargin": 0.03,
"minAmount": 50.0,
"avgAmount": 100.0,
"maxAmount": 200.0
"avgAmount": 200.0,
"maxAmount": 300.0
},
{
"minMargin": 0.03,
Expand All @@ -73,14 +65,6 @@
"minAmount": 100.0,
"avgAmount": 500.0,
"maxAmount": 1000.0
},
{
"minMargin": 0.05,
"avgMargin": 0.05,
"maxMargin": 0.06,
"minAmount": 100.0,
"avgAmount": 500.0,
"maxAmount": 1000.0
}
]
}
File renamed without changes.

0 comments on commit 75343a1

Please sign in to comment.