From d43ba47ebe56d4ecdd445a16bbee213d9b4d3805 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 27 Jul 2022 12:28:22 -0400 Subject: [PATCH] Renames to `ppu` --- piker/brokers/kraken/README.rst | 2 +- piker/brokers/kraken/broker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/kraken/README.rst b/piker/brokers/kraken/README.rst index afeaeb2b..80e56913 100644 --- a/piker/brokers/kraken/README.rst +++ b/piker/brokers/kraken/README.rst @@ -57,7 +57,7 @@ your ``pps.toml`` file will have position entries like, [kraken.spot."xmreur.kraken"] size = 4.80907954 - be_price = 103.97000000 + ppu = 103.97000000 bsuid = "XXMRZEUR" clears = [ { tid = "TFJBKK-SMBZS-VJ4UWS", cost = 0.8, price = 103.97, size = 4.80907954, dt = "2022-05-20T02:26:33.413397+00:00" }, diff --git a/piker/brokers/kraken/broker.py b/piker/brokers/kraken/broker.py index 160bfca1..3d7e2d91 100644 --- a/piker/brokers/kraken/broker.py +++ b/piker/brokers/kraken/broker.py @@ -308,7 +308,7 @@ def trades2pps( account='kraken.' + acctid, symbol=p.symbol.front_fqsn(), size=p.size, - avg_price=p.be_price, + avg_price=p.ppu, currency='', ) position_msgs.append(msg)