Skip to content

Migrate fee retrieval off deprecated Kraken AssetPairs.fees_maker - #130

Merged
btschwertfeger merged 5 commits into
masterfrom
migrate-fee-schedule
Sep 15, 2026
Merged

btschwertfeger merged 5 commits into
masterfrom
migrate-fee-schedule

Conversation

@btschwertfeger

@btschwertfeger btschwertfeger commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

tKraken deprecated fees/fees_maker on AssetPairs (always [] as of 2026-09-08, https://docs.kraken.com/exchange/changelog), which crashed __retrieve_asset_information with an IndexError whenever --fee wasn't passed explicitly.

This PR changes how the fee is estimated by using python-kraken-sdk v3.4.0 that introduces support for the new way of determining the fee schedule

Related changes:

The integration tests were running against the live Kraken API, causing the changed behavior now.

The AAPLxUSD volume values needed to be changed. Back then, the fee was -0.02% (https://www.kraken.com/features/fee-schedule). Now this is set to the same value as for the other tests to keep it uniform and deterministic.

Closes #127
Closes #128
Closes #129

@btschwertfeger btschwertfeger added the bug Something isn't working label Sep 14, 2026
@btschwertfeger btschwertfeger self-assigned this Sep 14, 2026
@read-the-docs-community

read-the-docs-community Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 infinity-grid | 🛠️ Build #34563051 | 📁 Comparing c3fa9f2 against latest (f4fceb0)

  🔍 Preview build  

3 files changed
± 04_configuration.html
± 06_development.html
± genindex.html

@btschwertfeger btschwertfeger added this to the Upcoming Release milestone Sep 14, 2026
@codecov-commenter

codecov-commenter commented Sep 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.61%. Comparing base (f4fceb0) to head (c3fa9f2).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/infinity_grid/adapters/exchanges/kraken.py 66.66% 2 Missing ⚠️
src/infinity_grid/interfaces/exchange.py 66.66% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #130      +/-   ##
==========================================
- Coverage   83.67%   83.61%   -0.06%     
==========================================
  Files          25       25              
  Lines        1678     1691      +13     
==========================================
+ Hits         1404     1414      +10     
- Misses        274      277       +3     
Files with missing lines Coverage Δ
src/infinity_grid/models/exchange.py 100.00% <100.00%> (ø)
src/infinity_grid/strategies/grid_base.py 69.53% <100.00%> (ø)
src/infinity_grid/interfaces/exchange.py 71.59% <66.66%> (-0.18%) ⬇️
src/infinity_grid/adapters/exchanges/kraken.py 71.75% <66.66%> (-0.15%) ⬇️

@btschwertfeger
btschwertfeger enabled auto-merge (squash) September 15, 2026 05:23
@btschwertfeger
btschwertfeger merged commit 752f33d into master Sep 15, 2026
30 checks passed
@btschwertfeger
btschwertfeger deleted the migrate-fee-schedule branch September 15, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

2 participants