Renames to `ppu`

kraken_ws_orders
Tyler Goodlet 2022-07-27 12:28:22 -04:00
parent 168c9863cb
commit d43ba47ebe
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ your ``pps.toml`` file will have position entries like,
[kraken.spot."xmreur.kraken"] [kraken.spot."xmreur.kraken"]
size = 4.80907954 size = 4.80907954
be_price = 103.97000000 ppu = 103.97000000
bsuid = "XXMRZEUR" bsuid = "XXMRZEUR"
clears = [ clears = [
{ tid = "TFJBKK-SMBZS-VJ4UWS", cost = 0.8, price = 103.97, size = 4.80907954, dt = "2022-05-20T02:26:33.413397+00:00" }, { tid = "TFJBKK-SMBZS-VJ4UWS", cost = 0.8, price = 103.97, size = 4.80907954, dt = "2022-05-20T02:26:33.413397+00:00" },

View File

@ -308,7 +308,7 @@ def trades2pps(
account='kraken.' + acctid, account='kraken.' + acctid,
symbol=p.symbol.front_fqsn(), symbol=p.symbol.front_fqsn(),
size=p.size, size=p.size,
avg_price=p.be_price, avg_price=p.ppu,
currency='', currency='',
) )
position_msgs.append(msg) position_msgs.append(msg)