From 89bcaed15e160eac1d3523eb35f88a79b5aab38d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 5 Jul 2022 18:06:51 -0400 Subject: [PATCH] Add ledger and `pps.toml` snippets --- piker/brokers/kraken/README.rst | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/piker/brokers/kraken/README.rst b/piker/brokers/kraken/README.rst index 7a801a94..afeaeb2b 100644 --- a/piker/brokers/kraken/README.rst +++ b/piker/brokers/kraken/README.rst @@ -29,3 +29,36 @@ loaded in the pps pane on chart load and you should also be able to check your trade records in the file:: /ledgers/trades_kraken_spot.toml + + +An example ledger file will have entries written verbatim from the +trade events schema: + +.. code:: toml + + [TFJBKK-SMBZS-VJ4UWS] + ordertxid = "SMBZSA-7CNQU-3HWLNJ" + postxid = "SMBZSE-M7IF5-CFI7LT" + pair = "XXMRZEUR" + time = 1655691993.4133966 + type = "buy" + ordertype = "limit" + price = "103.97000000" + cost = "499.99999977" + fee = "0.80000000" + vol = "4.80907954" + margin = "0.00000000" + misc = "" + + +your ``pps.toml`` file will have position entries like, + +.. code:: toml + + [kraken.spot."xmreur.kraken"] + size = 4.80907954 + be_price = 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" }, + ]