Commit Graph

14711 Commits

Author SHA1 Message Date
Matthias
cf6bf1b7b5 refactor: reduce code duplication for cancel_stop_orders 2025-12-16 20:32:26 +01:00
Matthias
5800002d42 feat: add stoploss_fetch_requires_stop_param property 2025-12-16 20:32:26 +01:00
Matthias
6a98c19dab fix: improve binance stoploss "triggered" behavior 2025-12-16 20:12:34 +01:00
Matthias
fa5210aa4b fix: function signature mismatch 2025-12-15 20:35:05 +01:00
Matthias
289e53ed5a fix: allow set-leverage failures on followup orders 2025-12-15 20:23:11 +01:00
Matthias
a16d2a1ef9 chore: fix typo 2025-12-14 18:29:43 +01:00
Matthias
13c86452e9 refactor: only assign order_type once 2025-12-14 18:29:37 +01:00
Matthias
e26529b695 feat: Don't run custom_exit_price callback when exiting with price 2025-12-14 17:58:11 +01:00
Matthias
bac6219cc1 feat: add price to force-exit 2025-12-14 17:58:11 +01:00
Matthias
8af0631ff0 Merge pull request #12599 from freqtrade/fix/dynamic_funding_fees
Adjust to dynamic funding fees
2025-12-14 17:56:34 +01:00
Matthias
31d3a19836 feat: support candle_type parameter via API download 2025-12-14 13:49:39 +01:00
Matthias
93bde7dc46 fix: support binance algo orders
closes #12610
2025-12-12 06:52:11 +01:00
Matthias
12206f028b chore: comment wording improvements 2025-12-11 07:16:36 +01:00
Matthias
4c7944ac77 chore: update comment wording 2025-12-11 07:09:23 +01:00
Freqtrade Bot
6d017c9a6c chore: update pre-commit hooks 2025-12-11 03:29:24 +00:00
Matthias
23a4260859 chore: simplify okx cancel stoploss method 2025-12-10 17:23:10 +01:00
Matthias
46538d9a5b fix: verify prog actually exists before using it 2025-12-09 19:34:58 +01:00
Matthias
b3a1442a69 feat: allow varying help texts for different subcommands 2025-12-09 18:25:11 +01:00
Matthias
bbafb1dabd fix: deduplicate list before downloading
This avoids duplicate downloads, for example on hyperliquid, which uses "futures" as mark candle type.
2025-12-09 13:54:05 +01:00
Matthias
645a9159e4 chore: hyperliquid doesn't have mark candles
it uses regular futures candles as multiplicator for funding fees.
2025-12-09 13:43:49 +01:00
Matthias
01fbf31405 chore: don't suggest binance.us supports futures
it doesn't.
2025-12-08 17:15:41 +01:00
Matthias
96849fcafe refactor: provide a non-failing check_candle_support method 2025-12-08 17:01:36 +01:00
Matthias
c7636734de feat: validate supported candle types when downloading data 2025-12-08 14:29:16 +01:00
Matthias
994e61fe42 feat: add (commented) validation for fetch_*_ohlcv methods 2025-12-08 13:47:26 +01:00
Matthias
359eba462b feat: add candle_types argument to download-data 2025-12-08 12:45:41 +01:00
Matthias
cde886b884 chore: use str for safe usage of candle_type 2025-12-08 10:20:00 +01:00
Matthias
9f4e167455 chore: force keyword usage on refresh_backtest_ohlcv 2025-12-08 09:27:48 +01:00
Matthias
e6030b7f59 chore: minor adjustments for clarity 2025-12-07 20:01:08 +01:00
Matthias
c1c968666e chore: some minor cleanups 2025-12-07 18:19:22 +01:00
Matthias
01b0a8fa42 fix: 1h should be the default for funding/mark candles 2025-12-06 16:15:32 +01:00
Matthias
cf6b7a847b fix: bitget's minimal funding fee interval is 1h 2025-12-06 16:01:05 +01:00
Matthias
4897080827 fix: bybit's minimal funding fee interval to 1h 2025-12-06 15:53:27 +01:00
Matthias
3ca8e0fb5c feat: auto-adjust funding rate timeframe in dataprovider 2025-12-06 15:42:40 +01:00
Matthias
40f4ff04c2 feat: auto-fix invalid funding rate timeframe in informative decorator 2025-12-06 14:16:27 +01:00
Matthias
3bd911982f feat: add get_funding_rate_timeframe to dataprovider 2025-12-06 14:13:53 +01:00
Matthias
730383ab18 feat: auto-download correct funding rate timeframe 2025-12-06 14:13:41 +01:00
Matthias
b70f10dca6 chore: simplify warning formatting 2025-12-06 14:06:17 +01:00
Matthias
17009ac59f chore: allow non-matching funding timeframe - as timeframe doesn't actually matter any longer. 2025-12-06 13:53:18 +01:00
Matthias
07fbf2b467 feat: support dynamic funding fees in dry/live mode 2025-12-06 13:46:27 +01:00
Matthias
3f0be5e41f fix: floor timestamp to seconds
no candle has more than second precision.
2025-12-06 13:42:16 +01:00
Matthias
2845568f61 feat: limit funding_fee renaming to rename from low to high. 2025-12-05 20:32:56 +01:00
stremblayiOS
417a0817a7 Fix IndexError in fetch_positions for Hyperliquid when no pair specified
## Summary

Fix IndexError crash in fetch_positions() when initializing wallets on Hyperliquid exchange.

## Quick changelog

- Changed fetch_positions to pass None instead of empty list when no specific pair is requested
- Fixes compatibility with Hyperliquid CCXT implementation that expects None for all positions

## What's new?

When fetch_positions() is called without a specific pair parameter, the code was passing an empty list [] to the CCXT API.
For Hyperliquid exchange, this causes an IndexError because the exchange's implementation attempts to access symbols[0]
without checking if the list is empty.

The CCXT standard is to pass None (not an empty list) when requesting all positions. This change aligns the code with
the CCXT API convention and prevents the crash on Hyperliquid during wallet initialization.

Error that was occurring:
```
IndexError: list index out of range
  at /root/freqtrade/.venv/lib/python3.11/site-packages/ccxt/hyperliquid.py:3051
  market = self.market(symbols[0])
```

This change does not use AI-generated code.
2025-12-05 18:33:40 +01:00
Matthias
41a82eff21 fix: don't fill up funding fee data Data
Timeframes are arbitrary and may vary between pairs or
time ranges
2025-12-05 18:20:14 +01:00
Matthias
d41acc77f7 fix: floor funding-rate to seconds to account for slight time offset 2025-12-05 18:20:14 +01:00
Matthias
271fc6b585 feat: don't fill up missing funding-fees after merge 2025-12-05 18:20:14 +01:00
Matthias
338c1c5424 fix: compare timeout with <= instead of <
closes #12590

Backtesting assumes round dates, so a timeout at "candle length" needs
to timeout at the hour - not after the hour.
otherwise the timeout becomes either double (60 instead of 30) -
or longer by one "timeframe detail" (31 instead of 30).
2025-12-05 07:10:04 +01:00
Matthias
68e54248fd fix: calculate meaningful price change properly weighting each pair
closes #12588
2025-12-04 21:28:31 +01:00
Matthias
83f70b3c27 Merge pull request #12585 from LMessi2000/fix/okx-price-type-mapping
fix(okx): correct PriceType.MARK and PriceType.INDEX mapping
2025-12-04 07:24:31 +01:00
Freqtrade Bot
e76b9bb64a chore: update pre-commit hooks 2025-12-04 03:27:18 +00:00
LMessi2000
a3e97527d1 fix(okx): correct PriceType.MARK and PriceType.INDEX mapping 2025-12-03 20:41:01 +08:00