1191 Commits

Author SHA1 Message Date
Matthias
63819fa7e0 test: update test for unwatch_ohlcv adjustment
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 20:54:04 +02:00
Matthias
820000fac4 chore: update dry-run order-id generation to uuid
this is supposed to avoid insert errors in windows CI
due to time imprecisions on windows ...

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 07:17:01 +02:00
Matthias
0a49903695 test: update bitget test for lev_prep adjustment 2026-04-26 09:07:02 +02:00
Matthias
f17e383157 test: add tests for get_ohlcv and ohlcvs 2026-04-25 13:09:34 +02:00
Matthias
093cc74774 refactor: make klines_last_refresh private 2026-04-25 12:49:31 +02:00
Matthias
17678f1819 refactor: make klines_last_request private 2026-04-25 08:48:46 +02:00
Matthias
057c51b0cd test: improve tests 2026-04-25 08:47:28 +02:00
Matthias
5e624d658f test: add test for startup concurrency 2026-04-25 08:37:19 +02:00
Matthias
9d0fb9b025 test: add explicit test for continuous_stopped handling 2026-04-24 07:08:48 +02:00
Matthias
6d096c20b0 test: add test for exchange_ws reset connection details 2026-04-24 07:06:07 +02:00
Matthias
af2e741465 test: add test for bitget stoploss canceling 2026-04-20 20:03:58 +02:00
Matthias
74ba9d76a2 fix: use as_unit instead of int math 2026-04-13 07:18:48 +02:00
Matthias
36b427cd3b feat: be clear on the use of demo exchanges 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
6e6082fa2b test: update test wording for stoploss price type 2026-03-26 07:08:44 +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
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
Matthias
3c4b07ce46 test: update krakenfutures_tests for usage of __name__ 2026-03-22 19:07:19 +01:00
matstedt
0dc26584cc krakenfutures: add funding_fee_candle_limit for limited history
Kraken Futures retains only ~29 days of hourly funding rate history.
Set funding_fee_candle_limit to 700 so ohlcv_candle_limit returns the
correct cap for CandleType.FUNDING_RATE instead of the general OHLCV
limit.
2026-03-22 19:07:19 +01:00
matstedt
f0aedc8d23 test(krakenfutures): align tests with simplified stoploss handling
- Add test for stoploss_query_requires_stop_flag in _ft_has.
- Replace _fix_trigger_order_id tests with base class integration tests
  (verify stop=True is passed by fetch_stoploss_order/cancel_stoploss_order).
- Add tests for stop param flow: passed to history endpoints, stripped
  from open orders query.
- Remove obsolete cancel_stoploss_order/fetch_stoploss_order override tests.
2026-03-22 19:07:19 +01:00
matstedt
bfbae5d040 fix(krakenfutures): re-introduce improved stoploss lookup for trigger orders 2026-03-22 19:07:19 +01:00
matstedt
f81e335b27 krakenfutures: simplify order/balance handling and harden error mapping 2026-03-22 19:07:05 +01:00
matstedt
756f178ec3 exchange_utils: use ccxt exchange.has directly in capability checks 2026-03-22 19:07:05 +01:00
Matthias
712fd8ac14 chore: import formatting 2026-03-22 19:07:05 +01:00
matstedt
1c77bd6f5d krakenfutures: improve fetch_order fallback 2026-03-22 19:07:05 +01:00
Matthias
1d0bcbe234 test: remove no longer necessary test 2026-03-22 19:07:05 +01:00
matstedt
6ed470884b krakenfutures: backfill leverage tier notionals 2026-03-22 19:07:04 +01:00
matstedt
9ddf464c03 fix(exchange): drop unused get_ft_has override plumbing 2026-03-22 19:07:04 +01:00
matstedt
06abc95b2e test: fix contradictory sorting by ruff and isort 7 2026-03-22 19:07:04 +01:00
matstedt
b4daabe491 test: re-organize imports 2026-03-22 19:07:04 +01:00
matstedt
e5a23f5afd test: fix import order in exchange utils test 2026-03-22 19:07:04 +01:00
matstedt
7ee4338b1f tests: increase coverage - krakenfutures edge paths and ft_has overrides 2026-03-22 19:07:04 +01:00
matstedt
3f6e7ca4c1 tests: cover krakenfutures currency sum and funding fees 2026-03-22 19:07:04 +01:00
matstedt
1345cfdbee exchange: fallback to canceled orders for krakenfutures fetch_order; add tests 2026-03-22 19:07:04 +01:00
matstedt
f2780c7c68 exchange: drop ccxt workarounds; keep closed-order fallback 2026-03-22 19:07:04 +01:00
matstedt
1254bd5bab tests: align krakenfutures ohlcv limit check 2026-03-22 19:07:04 +01:00
matstedt
ca9d4ed026 tests: fix _exchange_has_helper input in exchange_utils test 2026-03-22 19:07:04 +01:00
matstedt
2ed3db330a krakenfutures: use fetch_order_emulated with history fallback 2026-03-22 19:07:04 +01:00
matstedt
38d197b3bf krakenfutures: rely on ft_has stoploss params, update tests/docs 2026-03-22 19:07:04 +01:00
matstedt
5752e52b0f tests: update krakenfutures tests for get_ft_has removal and InvalidOrderException 2026-03-22 19:07:04 +01:00
matstedt
6fdeab2747 krakenfutures: align class name with resolver titlecase and remove unnecessary alias 2026-03-22 19:07:04 +01:00
matstedt
04ec24e737 krakenfutures: move ohlcv cap to _ft_has and support futures-only online tests 2026-03-22 19:07:04 +01:00