Commit Graph

6438 Commits

Author SHA1 Message Date
Matthias 6210927bdb feat: add sortino_from_balance calculation 2026-04-11 16:59:55 +02:00
Matthias 97badd0d3b test: add tests for sharpe based on balance 2026-04-11 16:43:28 +02:00
Matthias 68d514db91 test: split test_btanalysis and test_metrics 2026-04-11 16:41:07 +02:00
Matthias 36b427cd3b feat: be clear on the use of demo exchanges 2026-04-09 06:38:24 +02:00
Matthias 8b204c75cb test: test validate_demo / dry-run combo 2026-04-09 06:38:24 +02:00
Matthias 1ac68d6161 feat: show message when enabling demo trading mode 2026-04-09 06:38:24 +02:00
Matthias e7f9059ff4 test: add test for demo trading validation 2026-04-09 06:38:24 +02:00
Matthias ed6899aad6 Merge pull request #13019 from freqtrade/feat/capture_wallets
Capture wallet balance
2026-04-07 07:16:34 +02:00
Matthias 70b24fd0c1 test: reset pairlocks pior to running test 2026-04-07 06:44:25 +02:00
Matthias c906e146fc test: add reset_locks to the end of the new test 2026-04-06 10:24:41 +02:00
Matthias 6712d20578 test: Add test for new pairlock deduplication 2026-04-06 09:58:58 +02:00
Matthias 3d68d6aefc test: Add exchange mock for get_pair_base_currency 2026-04-05 17:06:53 +02:00
Matthias b6b9ae5eb0 test: assert repr for walletHistory 2026-04-04 14:09:36 +02:00
Matthias b45e086b50 test: add tests for get_backtest_wallet_change (and market change) 2026-04-04 13:41:20 +02:00
Matthias 66eb7f0199 test: add test for historic_balance endpoint 2026-04-04 13:12:43 +02:00
Matthias dec3c3e13b test: fix a couple tsts ... 2026-04-04 12:12:11 +02:00
Matthias e28da4b087 test: Fix and improve balance distribution test 2026-04-04 09:12:44 +02:00
Matthias 5e6d3e265b tests: rename mock helper function 2026-04-04 09:12:44 +02:00
Matthias 138b70a2bf test: add explicit test for prepare_balance_distribution 2026-04-04 09:12:44 +02:00
Matthias 4cac724709 test: update wallet capture test 2026-04-04 09:12:44 +02:00
Matthias f7ddf46b32 refactor: rename WalletHistory fieldname from price to rate 2026-04-04 09:12:44 +02:00
Matthias 1237bb798c test: fix backtest api wallets test 2026-04-04 09:12:44 +02:00
Matthias cb8d68f395 test: add test for record_wallet_state 2026-04-04 09:12:44 +02:00
Matthias 7dfcf846d0 test: add asserts for backtest wallet capturing 2026-04-04 09:12:44 +02:00
Matthias 4904c7b9fd refactor: split trade_parallelism trades into their own testfile 2026-04-04 09:12:44 +02:00
Matthias 27c7a37531 test: add test for balance_distribution_over_time 2026-04-04 09:12:44 +02:00
Matthias 1d7b1cd4ea test: improve test to make it more realistic 2026-04-04 09:12:44 +02:00
Matthias 03fd0575ce test: simplify imports 2026-04-04 09:12:44 +02:00
Matthias c12c2177cd test: add tests for wallets_migration 2026-04-04 09:12:44 +02:00
Matthias 51cf051fce test: add test for backtest/wallets endpoint 2026-04-04 09:12:44 +02:00
Matthias 4ddb7fd43f chore: clarify delist-filter exception 2026-04-04 09:02:52 +02:00
Matthias 326ef6d49b test: update krakenfutures "filled" test 2026-03-30 06:51:31 +02:00
Matthias c7dfd54eb3 test: stabilize time-dependant test after summer time switch 2026-03-29 13:33:56 +02:00
Matthias 3e40944b4e test: skip pygments vulnerability for now 2026-03-26 07:15:21 +01:00
Matthias 6e6082fa2b test: update test wording for stoploss price type 2026-03-26 07:08:44 +01:00
Matthias fd858b79af test: remove "ignore-vuln" from pip-audit tests
the vulnerability was fixed.
2026-03-25 10:58:39 +01:00
Matthias 724318c43e test(krakenfutures): Add canceled order test 2026-03-22 19:07:19 +01:00
matstedt eba9c24510 refactor(krakenfutures): drop resolved trigger price workaround 2026-03-22 19:07:19 +01:00
Matthias bd9697e6be test: fix krakenfutures tests 2026-03-22 19:07:19 +01:00
Matthias 200b9da2a2 test: remove unnecessary test
ccxt limit is tested as part of test_ohlcv_limit_futures in compat testing
2026-03-22 19:07:19 +01:00
Matthias 32fecd7b15 test(krakenfutures): improve _ft_has test 2026-03-22 19:07:19 +01:00
Matthias f8b99c6e66 test(krakenfutures): update stop strip test 2026-03-22 19:07:19 +01:00
Matthias 57c7edfe26 test: update krakenfutures live test 2026-03-22 19:07:19 +01:00
Matthias 437d0a264c test: Improve test sequence (simplifies analysis) 2026-03-22 19:07:19 +01:00
Matthias 3a28c91635 test: add regular market order 2026-03-22 19:07:19 +01:00
Matthias 1f4c188dbf test: add futures market-parsing test 2026-03-22 19:07:19 +01:00
matstedt bfd758d353 krakenfutures: recompute average and cost from fills for terminal orders 2026-03-22 19:07:19 +01:00
matstedt c533e48310 refactor: remove funding_fee_candle_limit override
Kraken Futures now provides 1 year of hourly funding rate history.
The previous limit of 700 candles (29 days) was a workaround for
limited API retention. Freqtrade paginates funding rate fetches
automatically, so the CCXT default (2000) works correctly.
2026-03-22 19:07:19 +01:00
matstedt a1e9b6bea8 fix: compute average price from trades and enrich fees for Kraken Futures
Kraken Futures' /orders/status returns limitPrice (not fill price) and
/fills omits fee amounts (only fillType). This adds:

- _adjust_krakenfutures_order: fetches trades for closed/filled orders
  with average=None and computes VWAP average price.
- get_trades_for_order override: enriches trades with calculated fees
  from the market's maker/taker fee schedule.

Tests: 7 new tests covering VWAP computation, fee enrichment with
maker/taker rates, and preservation of existing values.
2026-03-22 19:07:19 +01:00
matstedt 0dfd7324bd fix: extract triggerPrice from priceTriggerOptions for stoploss orders
CCXT's krakenfutures parse_order misses triggerPrice when the
/orders/status endpoint nests it inside priceTriggerOptions.
Override _order_contracts_to_amount to populate triggerPrice and
stopPrice from info.order.priceTriggerOptions.triggerPrice.
2026-03-22 19:07:19 +01:00