-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 998 Bytes
/
rebalance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: rebalance
on:
workflow_dispatch:
schedule:
- cron: '0 */1 * * *'
jobs:
rebalance:
env:
BITBANK_API_KEY: ${{ secrets.BITBANK_API_KEY }}
BITBANK_API_SECRET: ${{ secrets.BITBANK_API_SECRET }}
GMO_API_KEY: ${{ secrets.GMO_API_KEY }}
GMO_API_SECRET: ${{ secrets.GMO_API_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install dependencies
run: pipenv sync
- name: Rebalance 'XRP/JPY' on bitbank
run: pipenv run rebalance -e bitbank -s 'XRP/JPY'
- name: Rebalance 'BTC/JPY' on GMO
run: pipenv run rebalance -e gmo -s 'BTC/JPY'