Repository: ccxt/ccxt
Pull request: fix(kraken): div trading fee by 100
fix: ccxt/ccxt#22675

In this PR, I divide current fee by 100 in kraken.

> Note: I always got this error from kraken `{"error":["EAPI:Invalid nonce"]}`. Could someone have working key try this PR?

Problem statement:
Kraken: trading fee is returned as percentage and not as ratio
### Operating System

Ubuntu

### Programming Languages

JavaScript

### CCXT Version

4.3.30

### Description

When loading the trading fees using fetchTradingFee() on Kraken, the fees are returned as percentages and not divided by 100. For a normalized experience I believe the rates should be converted by using `Precise.stringDiv(makerFee, '100');`

### Code

_No response_

Hints from issue discussion:

Commit message: fix(kraken): div trading fee by 100

Patch to review:
diff --git a/ts/src/kraken.ts b/ts/src/kraken.ts
index 42f962a930392..f9ca26f1422aa 100644
--- a/ts/src/kraken.ts
+++ b/ts/src/kraken.ts
@@ -767,8 +767,8 @@ export default class kraken extends Exchange {
         return {
             'info': response,
             'symbol': market['symbol'],
-            'maker': this.safeNumber (symbolMakerFee, 'fee'),
-            'taker': this.safeNumber (symbolTakerFee, 'fee'),
+            'maker': this.parseToNumeric (Precise.stringDiv (this.safeString (symbolMakerFee, 'fee'), '100')),
+            'taker': this.parseToNumeric (Precise.stringDiv (this.safeString (symbolTakerFee, 'fee'), '100')),
             'percentage': true,
             'tierBased': true,
         };


Code review comments:
diff_hunk: @@ -767,8 +767,8 @@ export default class kraken extends Exchange {
         return {
             'info': response,
             'symbol': market['symbol'],
-            'maker': this.safeNumber (symbolMakerFee, 'fee'),
-            'taker': this.safeNumber (symbolTakerFee, 'fee'),
+            'maker': this.parseToNumeric (Precise.stringDiv (this.safeString (symbolMakerFee, 'fee'), '100')),
path: ts/src/kraken.ts
text: @user1:
we should use parseNumber here