From 71e9e9126ac033734b1a9af6909cf45b1f78f794 Mon Sep 17 00:00:00 2001 From: Sean N Date: Mon, 11 Aug 2025 15:16:07 +0200 Subject: [PATCH] Cleaning up and bumping version to 0.2.3 --- .github/workflows/release.yml | 11 +++++++++-- README.md | 9 ++++++++- config.json.example | 32 -------------------------------- ohheycrypto/__version__.py | 2 +- ohheycrypto/services/logging.py | 3 --- 5 files changed, 18 insertions(+), 39 deletions(-) delete mode 100644 config.json.example diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e707af..86339f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ on: jobs: create-release: runs-on: ubuntu-latest + permissions: + contents: write # Required to create releases + actions: read steps: - uses: actions/checkout@v4 @@ -35,6 +38,11 @@ jobs: - name: Check package run: twine check dist/* + - name: List built files + run: | + echo "Built files in dist/:" + ls -la dist/ + - name: Extract version from tag id: get_version run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT @@ -82,5 +90,4 @@ jobs: draft: false prerelease: ${{ contains(steps.get_version.outputs.VERSION, 'alpha') || contains(steps.get_version.outputs.VERSION, 'beta') || contains(steps.get_version.outputs.VERSION, 'rc') }} files: | - dist/ohheycrypto-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl - dist/ohheycrypto-${{ steps.get_version.outputs.VERSION }}.tar.gz \ No newline at end of file + dist/* \ No newline at end of file diff --git a/README.md b/README.md index 39a5ef8..850425b 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,14 @@ Contributions are welcome! Areas for improvement: - Web dashboard for monitoring - An improved Discord notification when making a profitable trades - Saving trade data to a SQLite database locally - +- Volume analysis (OBV, Volume Profile) +- Fibonacci retracements +- Support/resistance levels +- Maximum drawdown protection +- Dynamic stop-loss adjustment +- Correlation analysis for multi-pair trading +- Trade multiple crypto pairs simultaneously + Please submit pull requests or open issues for discussion. ## Important Disclaimers diff --git a/config.json.example b/config.json.example deleted file mode 100644 index 851e19b..0000000 --- a/config.json.example +++ /dev/null @@ -1,32 +0,0 @@ -{ - "trading": { - "stop_loss": 3.0, - "sell_threshold": 0.4, - "buy_threshold": 0.2, - "fiat_currency": "USDT", - "crypto_currency": "BTC", - "min_position_size": 0.5, - "max_position_size": 0.95, - "trailing_stop_percentage": 2.0 - }, - "market_analysis": { - "rsi_period": 14, - "rsi_oversold": 30.0, - "rsi_overbought": 70.0, - "ma_short_period": 10, - "ma_long_period": 20, - "volatility_lookback": 20 - }, - "execution": { - "market_check_interval": 60, - "circuit_breaker_threshold": 5, - "circuit_breaker_cooldown": 3600, - "order_timeout": 30, - "min_notional_value": 10.0 - }, - "api": { - "binance_api_key": null, - "binance_api_secret": null, - "discord_webhook": null - } -} \ No newline at end of file diff --git a/ohheycrypto/__version__.py b/ohheycrypto/__version__.py index 3cc9c4e..2872906 100644 --- a/ohheycrypto/__version__.py +++ b/ohheycrypto/__version__.py @@ -1,5 +1,5 @@ """Version information for ohheycrypto package.""" -__version__ = "0.2.0" +__version__ = "0.2.3" __author__ = "Sean Nieuwoudt" __email__ = "sean@underwulf.com" diff --git a/ohheycrypto/services/logging.py b/ohheycrypto/services/logging.py index c82df06..e045285 100644 --- a/ohheycrypto/services/logging.py +++ b/ohheycrypto/services/logging.py @@ -15,7 +15,6 @@ def order(order: Order, market: "Market"): current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") order_value = order.price * order.origQty - # Log structured order data print( chalk.white(current_time), chalk.white("-"), @@ -27,13 +26,11 @@ def order(order: Order, market: "Market"): chalk.green(f"value: ${order_value:.2f}"), ) - # Log enhanced market conditions current_price = float(market.price().get("askPrice", 0)) price_diff = ( ((order.price - current_price) / current_price) * 100 if current_price > 0 else 0 ) - # Get additional market data klines = market.klines(30) rsi = market.calculate_rsi(klines) if klines else None trend = market.get_trend_direction() if klines else "unknown"