Skip to content

Commit 4967f06

Browse files
fix: batchOrder json does not support booleans
1 parent 8f0f7a0 commit 4967f06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/kraken/futures/trade.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
from kraken.base_api import FuturesClient, defined
2626

27+
import json
2728

2829
class Trade(FuturesClient):
2930
"""
@@ -239,7 +240,7 @@ def create_batch_order(
239240
}
240241
"""
241242
batchorder: dict = {"batchOrder": batchorder_list}
242-
params = {"json": f"{batchorder}"}
243+
params = {"json": json.dumps(batchorder)}
243244
if processBefore:
244245
params["processBefore"] = processBefore
245246

0 commit comments

Comments
 (0)