Commit Graph

1116 Commits

Author SHA1 Message Date
Matthias 79538368db Simplify liquidation price calculation 2022-02-28 19:47:21 +01:00
Matthias 8e2d3445a7 Move leverage_prep calculations to exchange class 2022-02-28 19:29:42 +01:00
Matthias 4b27bd9838 don't fetch free balance if we don't use it 2022-02-24 20:05:56 +01:00
Sam Germain f67e0bd6dd wallet amount for futures 2022-02-24 20:05:56 +01:00
Matthias fd936e26ae Merge branch 'develop' into feat/short 2022-02-24 19:56:42 +01:00
Matthias 8952829adc Merge branch 'develop' into feat/short 2022-02-23 06:28:15 +01:00
Matthias 70f4305dfa don't allow short trades in spot mode 2022-02-21 19:19:12 +01:00
Matthias fddacfedaa Remove returntype 2022-02-20 16:47:02 +01:00
Matthias 6fb5b22a8e Some cleanup 2022-02-20 16:31:44 +01:00
Matthias dc7bcf5dda Update failing test 2022-02-20 14:29:26 +01:00
Matthias db540dc990 Orders should also store fee if in receiving currency 2022-02-20 14:24:27 +01:00
Matthias e9f451406c Use correct order id 2022-02-19 16:43:38 +01:00
Matthias 874c161f78 Update more tests to use order_obj to update trade 2022-02-19 16:43:38 +01:00
Matthias 1b1216fc87 Rename update_trade method 2022-02-19 16:43:38 +01:00
Matthias c13eed2178 use Order object to update trade 2022-02-19 16:43:38 +01:00
Matthias 3785f04be7 Handle empty min stake amount as observed on FTX
(closes #6429)
2022-02-19 06:39:43 +01:00
Sam Germain a65dcc709e leverage in trade.stake_amount calculation 2022-02-16 08:09:43 -06:00
Matthias de26844578
Merge pull request #6397 from samgermain/todos
edited todo-lev comments
2022-02-16 13:36:17 +01:00
Sam Germain a9eb8ce1bf added todos back in 2022-02-16 05:47:41 -06:00
Sam Germain a2b84561fe removed a todo 2022-02-14 10:00:03 -06:00
Sam Germain 19783e0d39 edited todos 2022-02-14 09:02:55 -06:00
Matthias 2523c12c71 Small enhancements and notes 2022-02-13 14:33:37 +01:00
Sam Germain fc2d3649a1 edited todos 2022-02-12 16:23:14 -06:00
Matthias c769e9757d Improve "order refind" to also work for stoploss orders 2022-02-12 20:13:12 +01:00
Sam Germain 3c3675ea1a moved liquidation_buffer to exchange class, add check for valid liquidation_buffer values 2022-02-11 19:38:59 +01:00
Sam Germain e5d68f12d2 Added liquidation_buffer to freqtradebot 2022-02-11 19:38:58 +01:00
Matthias 0c6d92a7a6 Merge branch 'develop' into feat/short 2022-02-11 17:02:04 +01:00
Matthias 4ea79a32e4 Use Order object for ft_timeout check 2022-02-05 16:28:47 +01:00
Sam Germain 8b57827676 exchange.get_max_pair_stake_amount hard set leverage to 0 2022-02-04 14:26:15 -06:00
Sam Germain dc6cb445fd Merge branch 'feat/short' into max-amount 2022-02-04 04:42:38 -06:00
Sam Germain 1824ee6b73 removed TODO 2022-02-04 04:41:41 -06:00
Sam Germain 3ee2b7978c wallets.validate_stake_amount added param max_stake_available 2022-02-03 20:33:16 -06:00
Sam Germain 30c476e3c1 freqtradebot.get_valid_enter_price_and_stake gets min of stake_amount and max_stake_amount before calling wallets.validate_stake_amount 2022-02-03 20:33:16 -06:00
Sam Germain 7465037906 freqtradebot.execute_entry test for too high stake amount 2022-02-03 20:33:16 -06:00
Sam Germain 8c680d75b9 moved max_stake_amount check for None to exchange.get_max_pair_stake_amount 2022-02-03 20:33:16 -06:00
Sam Germain 6b6b35ac1c check for max stake limit in freqtradebot and backtesting 2022-02-03 20:33:04 -06:00
Sam Germain 84dea0339b Added todo to freqtradebot._safe_exit_amount 2022-02-03 17:48:34 -06:00
Sam Germain a31cf236e4 freqtradebot._safe_exit_amount, no _safe_exit_amount is needed for futures 2022-02-03 17:48:34 -06:00
Sam Germain d5376c2c89 wrote freqtradebot.test_leverage_prep 2022-02-03 17:48:33 -06:00
Sam Germain 64bfa118e0 freqtradebot.handle_cancel_enter todo - Check edge cases, we dont want to make leverage > 1.0 if we dont have to 2022-02-03 17:48:33 -06:00
Sam Germain f58b92bb86 exchange.create_order removed default for leverage 2022-02-03 17:48:08 -06:00
Matthias a733a74dd9
Merge pull request #6294 from xataxxx/health
/health api and telegram commands to return last processing time
2022-02-02 19:53:45 +01:00
Sam Germain 386be2d889 set reduceOnly for futures exit orders 2022-02-02 00:08:50 -06:00
Sam Germain 30519aa3be Changed name Collateral -> MarginMode, collateral -> margin_mode, and _supported_trading_mode_margin_pairs -> _supported_trading_margin_pairs 2022-02-01 13:05:40 -06:00
Sam Germain 430051275a freqtradebot.leverage_prep moved wallet_balance to a variable 2022-01-31 13:21:27 -06:00
Sam Germain b8f4cebce7 exchange.liquidation_price methods combined, dry_run check on exchange for liquidation price 2022-01-31 12:18:25 -06:00
Sam Germain 143c37d36f cleaned up liquidation price methods 2022-01-31 12:17:07 -06:00
Sam Germain ede9012fcc removed TODO-levs about okex liquidation price 2022-01-31 12:17:07 -06:00
Sam Germain 0c13e387fe moved liquidation_price method to exchange classes 2022-01-31 12:16:43 -06:00
Sam Germain e4b37c6462 freqtradebot.leverage_prep minor fixes 2022-01-31 12:16:43 -06:00