From 0fb31586fd3497edd2630739f91ef1bab98427d2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 25 Jul 2022 12:02:57 -0400 Subject: [PATCH] Go back to using `Position.size` property in pp loading audits --- piker/brokers/kraken/broker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/kraken/broker.py b/piker/brokers/kraken/broker.py index ed6b5fc1..6205e955 100644 --- a/piker/brokers/kraken/broker.py +++ b/piker/brokers/kraken/broker.py @@ -410,7 +410,7 @@ async def trades_dialogue( if ( not pair or not pp - or not math.isclose(pp.calc_size(), size) + or not math.isclose(pp.size, size) ): return False