From e2c6184cdf2c4a9f9bc809088056cc365d243b13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 24 Jan 2018 15:49:06 +0100 Subject: [PATCH] Add dummy README and gitignore --- .gitignore | 1 + README.md | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb1273d --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Sell all + + import portfolio + portfolio.Balance.prepare_trades_to_sell_all(portfolio.market) + + portfolio.Trade.prepare_orders(compute_value=lambda x, y: x["bid"] * portfolio.D("1.001")) + + portfolio.Trade.print_all_with_order() + + portfolio.Trade.run_orders() + + +# get balance: + + portfolio.Balance.fetch_balance(portfolio.market) + +# follow orders: + + portfolio.Trade.follow_orders(sleep=3) + +# open orders: + + portfolio.Trade.all_orders(state="open") + + +# Buy -- 2.41.0