You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.8 KiB
59 lines
1.8 KiB
name: Binance Leverage tiers update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "25 2 * * 4"
|
|
# on demand
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
auto-update:
|
|
name: "Auto Update Binance Leverage Tiers"
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: develop
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install uv and Python 🐍
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
with:
|
|
activate-environment: true
|
|
enable-cache: false
|
|
python-version: "3.14"
|
|
|
|
- name: Install ccxt
|
|
run: uv pip install $(grep -E "^ccxt==" requirements.txt) $(grep -E "^orjson==" requirements.txt)
|
|
|
|
- name: Run leverage tier update
|
|
env:
|
|
CI_WEB_PROXY: ${{ secrets.CI_WEB_PROXY }}
|
|
FREQTRADE__EXCHANGE__KEY: ${{ secrets.BINANCE_EXCHANGE_KEY }}
|
|
FREQTRADE__EXCHANGE__SECRET: ${{ secrets.BINANCE_EXCHANGE_SECRET }}
|
|
run: python build_helpers/binance_update_lev_tiers.py
|
|
|
|
|
|
- uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
with:
|
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
|
add-paths: freqtrade/exchange/binance_leverage_tiers.json
|
|
labels: |
|
|
Tech maintenance
|
|
Dependencies
|
|
branch: update/binance-leverage-tiers
|
|
title: Update Binance Leverage Tiers
|
|
commit-message: "chore: update binance leverage tiers"
|
|
committer: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com>
|
|
author: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com>
|
|
body: Update binance leverage tiers.
|
|
delete-branch: true
|