Matthias
|
897c14e2e5
|
Don't check for "open orders" in handle_cancel_enter
it's actually irrelenant (closes #9273).
|
2023-10-08 09:40:46 +02:00 |
|
Matthias
|
6c00bf423b
|
Fix comment
|
2023-10-08 08:59:18 +02:00 |
|
Matthias
|
081411fba4
|
Improve bot typehints
|
2023-10-07 15:09:34 +02:00 |
|
Axel-CH
|
e8be011e2b
|
update manage_trade_stoploss_orders: remove unrelevant TODO
|
2023-10-06 17:01:12 -04:00 |
|
Axel-CH
|
df8f1b9328
|
update manage_trade_stoploss_orders description
|
2023-10-06 15:58:51 -04:00 |
|
Axel-CH
|
9d82de15d4
|
first updated proposition of handle_stoploss_on_exchange, add sl_orders helper
|
2023-10-06 15:56:08 -04:00 |
|
Matthias
|
910e317a45
|
Fix unhandled exception
closes #9270
|
2023-10-06 20:13:37 +02:00 |
|
Axel-CH
|
ea828ccb4a
|
remove legacy sl management code from create_stoploss_order
|
2023-10-06 10:40:23 -04:00 |
|
Axel-CH
|
2565d509a6
|
remove legacy sl management code from handle_insufficient_funds
|
2023-10-06 10:38:14 -04:00 |
|
Axel-CH
|
d5a0759051
|
add open_sl_orders helper, use it in cancel_stoploss_on_exchange
|
2023-10-06 10:29:57 -04:00 |
|
Axel-CH
|
9214af6901
|
update cancel_stoploss_on_exchange to cancel all sl orders of trade
|
2023-10-05 22:24:17 -04:00 |
|
Matthias
|
f5db856a75
|
re-align adjust_entry_price between backtest and live
|
2023-10-05 18:11:35 +02:00 |
|
Matthias
|
1e0d622d80
|
Don't run "recovery" when stop-orders are open
|
2023-10-05 06:45:00 +02:00 |
|
Matthias
|
b4e732617e
|
Add handling for order replacement cancel failing
|
2023-09-22 06:37:56 +02:00 |
|
Matthias
|
450219c83b
|
Extract replace_order_faild message and behavior
|
2023-09-22 06:37:56 +02:00 |
|
Matthias
|
9f445cb053
|
Don't rely on status when determining open order count
|
2023-09-21 07:14:51 +02:00 |
|
Matthias
|
1d23ba6e30
|
Improve wording after order-replacement
|
2023-09-21 07:14:31 +02:00 |
|
Matthias
|
1b28521875
|
Improve execute_entry interface
|
2023-09-21 06:28:51 +02:00 |
|
Matthias
|
75f89ec12f
|
Merge pull request #9188 from Axel-CH/add-trade-param-to-custom-entry-price
Add trade param to custom entry price
|
2023-09-17 23:23:42 +02:00 |
|
Matthias
|
f6fce2162c
|
Add new parameter to strategy template
|
2023-09-17 22:25:23 +02:00 |
|
Axel-CH
|
224213840d
|
update trade object as optional parameter
|
2023-09-17 03:13:40 -04:00 |
|
Axel-CH
|
a7cd9d77f2
|
ignore custom_entry_price trade object type test, remove LocalTrade as type
|
2023-09-16 13:58:59 -04:00 |
|
Matthias
|
c90be601f5
|
Add offset to "fetch_orders" to avoid missing the initial order
|
2023-09-16 17:53:47 +02:00 |
|
Matthias
|
3d858f6599
|
Fix bug closing trades while recalculating
closes #9186
|
2023-09-16 16:39:52 +02:00 |
|
Matthias
|
d01bc0fb9f
|
Enforce kwargs for update_trade_state
|
2023-09-16 14:44:24 +02:00 |
|
Matthias
|
3a7f390510
|
Cancel based forceexits shouldn't trigger a full exit.
|
2023-09-16 09:32:51 +02:00 |
|
Matthias
|
ae4021da14
|
Rename get_canceled exit orders ...
|
2023-09-16 09:11:31 +02:00 |
|
axel
|
cf96ad1d1b
|
add trade param to custom entry price in interface, bot, backtesting, exemples
|
2023-09-16 02:32:03 -04:00 |
|
Matthias
|
af1054fa70
|
Avoid re-implementing existing feature
|
2023-09-12 07:00:55 +02:00 |
|
Matthias
|
ee9d2c637a
|
Improve "order refind" mechanics
|
2023-09-11 20:18:42 +02:00 |
|
Matthias
|
29fbac9f96
|
Add "catch-all" exceptionhandler for handle_onexchange_order
(it's actually a poor mans workaround)
closes #9025
|
2023-09-10 20:27:08 +02:00 |
|
Matthias
|
421a6c02a0
|
Improve enum imports
|
2023-09-10 18:10:38 +02:00 |
|
Matthias
|
245a67e37e
|
Avoid tons of commits when cancelling all orders
|
2023-09-09 09:55:01 +02:00 |
|
Matthias
|
e76d4241a0
|
Remove further unnecessary method
|
2023-09-09 09:54:12 +02:00 |
|
Matthias
|
8c95207ca4
|
Merge branch 'develop' into pr/Axel-CH/8779
|
2023-09-07 20:19:25 +02:00 |
|
Matthias
|
ffaa121bc7
|
Simplify code by removing unnecessary (and non-working) method
|
2023-09-07 20:16:56 +02:00 |
|
Matthias
|
227b194a88
|
Partial exits should consider leveraged trades.
|
2023-09-07 18:27:19 +02:00 |
|
Matthias
|
2c095c07f2
|
Improve variable naming
|
2023-09-07 18:27:19 +02:00 |
|
Matthias
|
39b6a00224
|
Improve naming of calculate_profit method
|
2023-09-04 06:42:16 +02:00 |
|
Matthias
|
459b9d80d4
|
use calc_profit_combined
|
2023-09-04 06:28:29 +02:00 |
|
Matthias
|
25f5dbfcbd
|
Delete trade if replacing the first order failed
part of #9128
|
2023-09-02 16:49:12 +02:00 |
|
Matthias
|
be044fbacf
|
Improve log output
|
2023-09-02 16:37:53 +02:00 |
|
Matthias
|
28c62724df
|
Add explicit test and message for "Order could not be replaced" scenario
part of #9128
|
2023-09-01 06:58:59 +02:00 |
|
Matthias
|
43c73c75c5
|
Remove more open_order_id references
|
2023-08-25 07:10:30 +02:00 |
|
Matthias
|
106dffe2c5
|
split update_trade
|
2023-08-14 17:07:34 +02:00 |
|
Matthias
|
147cc4f0b6
|
Initial version of stop "after_fill"
|
2023-08-14 15:21:10 +02:00 |
|
Matthias
|
88925d6c1d
|
Merge branch 'develop' into pr/Axel-CH/8779
|
2023-08-09 19:58:24 +02:00 |
|
Matthias
|
cd6fc1652e
|
Add rate-limited wallets call before adjust_trade-Position calls
closes #8998
|
2023-08-06 17:11:17 +02:00 |
|
Axel CHERUBIN
|
f397d973f3
|
Merge branch 'freqtrade:develop' into feature/multiple_open_orders
|
2023-08-02 23:48:13 -04:00 |
|
Matthias
|
b2abdab7cd
|
Fix bug where adjust_entry_price was called for exit orders
closes #8973
|
2023-07-28 07:16:32 +02:00 |
|
Matthias
|
240606c5a4
|
Only run once for an order
|
2023-07-13 07:14:20 +02:00 |
|
Matthias
|
6134764d5e
|
Don't wrongly eat into dust on rebuys
closes #8841
|
2023-07-13 07:07:15 +02:00 |
|
Matthias
|
511023ee10
|
Fix typo in comment
|
2023-07-09 13:47:57 +02:00 |
|
axel
|
32c919cfad
|
replace open_orders_count by has_open_orders in freqtradebot
|
2023-06-16 23:36:37 -04:00 |
|
axel
|
bf60f38a23
|
fix tests test_handle_trade, test_handle_cancel_exit_limit, WIP on test_adjust_entry_maintain_replace
|
2023-06-16 23:29:41 -04:00 |
|
axel
|
5f70406880
|
fix more tests
|
2023-06-15 22:00:15 -04:00 |
|
axel
|
ebd5fac91d
|
update cancel_all_open_orders, wip on fixing test_cancel_all_open_orders
|
2023-06-15 21:04:40 -04:00 |
|
axel
|
156c202889
|
fix more tests including process_open_trade_positions
|
2023-06-15 20:46:35 -04:00 |
|
axel
|
73d1201ed8
|
start fixing test_handle_stoploss_on_exchange_trailing, add temp logs
|
2023-06-15 13:37:36 -04:00 |
|
axel
|
fcbacae6f1
|
remove unuseful function call in manage_open_orders
|
2023-06-15 12:04:42 -04:00 |
|
axel
|
60a50a2ea8
|
fix test_handle_stoploss_on_exchange, add more orders related hybrid_properties to Trade classes
|
2023-06-15 11:56:41 -04:00 |
|
axel
|
defa6f45b2
|
fix more freqtradebot tests, update params of handle_cancel_enter, handle_cancel_exit
|
2023-06-15 03:05:01 -04:00 |
|
axel
|
9cdff0b0a5
|
fix first important tests in test_freqtradebot, update and fix on order related Trade class hybrid_properties
|
2023-06-15 01:55:13 -04:00 |
|
axel
|
450fc5763f
|
fix test test_freqtradebot.py::test_execute_entry
|
2023-06-14 14:20:14 -04:00 |
|
Matthias
|
193d88c9c8
|
Double-check cancelling stop order didn't close the trade
|
2023-05-31 14:12:03 +02:00 |
|
Matthias
|
b8220ee0f7
|
Improve recovery detection by skipping open orders
|
2023-05-24 18:19:14 +02:00 |
|
Matthias
|
9b10287899
|
Improve typing
|
2023-05-15 17:53:18 +02:00 |
|
Matthias
|
66c3eb2820
|
Remove keys from config before loading strategy
|
2023-05-15 07:22:40 +02:00 |
|
Matthias
|
fe36e77412
|
Split exchange_config before passing through the strategy
|
2023-05-15 07:22:40 +02:00 |
|
Matthias
|
af8fbad281
|
Improve Date timezone useage
|
2023-05-14 08:54:26 +02:00 |
|
Matthias
|
66a97ff45d
|
Remove some utcnow usages
|
2023-05-13 20:43:37 +02:00 |
|
Matthias
|
7bba034efd
|
Merge pull request #8560 from freqtrade/feat/recoverTrades
Recover trades after selling on exchange
|
2023-05-13 16:35:08 +02:00 |
|
Matthias
|
af95d56ceb
|
Import deepcopy specifically
|
2023-05-13 16:16:35 +02:00 |
|
Matthias
|
1552d81f45
|
Simplify load_exchange interface
|
2023-05-13 11:03:26 +02:00 |
|
Matthias
|
775ea1c8c6
|
Improve type safety
|
2023-05-03 06:25:02 +00:00 |
|
Matthias
|
976cc1ab15
|
Extract order_obj existence check to separate function
|
2023-05-03 06:48:17 +02:00 |
|
Matthias
|
0d1d25e868
|
Improve error-handling
|
2023-05-02 21:44:19 +02:00 |
|
Matthias
|
b0b036c457
|
Fix logic lapsus in check_exit_amount
|
2023-04-26 07:02:46 +02:00 |
|
Matthias
|
f2696c9609
|
Force special exit reason for "recovered" exits
|
2023-04-25 18:09:46 +02:00 |
|
Matthias
|
24cab00479
|
Extract amount checking to wallets, implement for futures
|
2023-04-25 17:49:20 +02:00 |
|
Matthias
|
974cf6c365
|
Move comment to more appropriate spot
|
2023-04-25 17:41:59 +02:00 |
|
Matthias
|
81633b7c2e
|
Add "handle_onexchange_order" functionality
|
2023-04-25 16:19:14 +02:00 |
|
Matthias
|
e8fedb685b
|
Update missleading docstring
|
2023-04-25 11:52:13 +02:00 |
|
Matthias
|
11c9f96d23
|
Use lock for trade entries, too
|
2023-04-25 11:45:35 +02:00 |
|
Matthias
|
4a4be27ebc
|
use orderid from order, the trade one has been reset
part of #8526
|
2023-04-21 07:14:03 +02:00 |
|
Matthias
|
ca1a616b89
|
use Fstrings for log message
|
2023-04-21 07:08:14 +02:00 |
|
Matthias
|
a102cfdfc9
|
Add new /profit fields to API
|
2023-04-08 16:41:25 +02:00 |
|
Matthias
|
7751768b2e
|
Store initial_time value
|
2023-04-08 16:13:16 +02:00 |
|
Matthias
|
f8d89c46e5
|
Don't reset open_order_id if the order didn't cancel
|
2023-04-07 19:49:13 +02:00 |
|
Matthias
|
1952e453bb
|
Improved formatting for fetch order_or_stop calls
|
2023-04-07 17:35:11 +02:00 |
|
Matthias
|
372f1cb37f
|
Reduce verbosity for stop orders
|
2023-04-03 06:37:31 +02:00 |
|
Matthias
|
dc7e834911
|
Fix some type issues
|
2023-04-01 20:17:56 +02:00 |
|
Matthias
|
916e1bbc7c
|
Merge pull request #8412 from freqtrade/fix/partial_stops
support partially filled stops
|
2023-04-01 15:18:42 +02:00 |
|
Matthias
|
5e13b48648
|
Merge pull request #8386 from freqtrade/feature/price_to_precision_round
price to precision rounding
|
2023-03-31 07:20:10 +02:00 |
|
Matthias
|
861c577138
|
Support partially filled stop orders
closes #8374
|
2023-03-29 07:05:39 +02:00 |
|
Matthias
|
8a49d62068
|
Don't update liquidation price for closed trades
|
2023-03-29 06:49:22 +02:00 |
|
Matthias
|
d97500581d
|
Merge pull request #8379 from xmatthias/type_sendmsg
Type sendmsg
|
2023-03-26 14:09:01 +02:00 |
|
Matthias
|
73b59df77b
|
Merge branch 'develop' into pr/paranoidandy/8272
|
2023-03-26 11:22:24 +02:00 |
|
Matthias
|
86aef7cf9d
|
Add current_time to bot_loop_start callbak
|
2023-03-26 11:22:19 +02:00 |
|
Matthias
|
0cb28f3d82
|
Use kwarg for rounding_mode, update tests with additional parameter
|
2023-03-26 11:00:41 +02:00 |
|
Matthias
|
d0d0cbe1d1
|
Implement price_to_precision logic for stoploss
|
2023-03-26 10:37:18 +02:00 |
|
Matthias
|
298f5685ee
|
Reuse existing "cancel_stoploss" call
|
2023-03-25 20:06:21 +01:00 |
|
Matthias
|
c0a57d352f
|
send base_currency with messages that need it.
|
2023-03-25 08:16:07 +01:00 |
|
Matthias
|
281dd7785e
|
Fix some remaining type errors
|
2023-03-24 20:56:18 +01:00 |
|
Matthias
|
8928d3616a
|
Improve msgtypes
|
2023-03-24 20:47:53 +01:00 |
|
Matthias
|
245ae99273
|
Further typing ...
|
2023-03-24 20:33:00 +01:00 |
|
Matthias
|
0ece73578c
|
Add typedDict for RPC messages
Currently not fully functional.
|
2023-03-24 20:33:00 +01:00 |
|
Matthias
|
b317524ed7
|
protect adjust_trade_position from crashing in case of unsafe code
|
2023-03-24 20:27:45 +01:00 |
|
Matthias
|
469166636c
|
Set initial stoploss when creating the order
This ensures that a trade never has "None" as stoploss
|
2023-03-24 07:27:45 +01:00 |
|
Matthias
|
150c5510c7
|
Don''t fully fail bot when invalid price value is reached
closes #8300
|
2023-03-22 19:46:07 +01:00 |
|
Matthias
|
aa54b77702
|
Rename _session to sessoin
|
2023-03-15 21:12:06 +01:00 |
|
Matthias
|
8073989c98
|
Remove more usages of .query
|
2023-03-15 21:10:47 +01:00 |
|
Matthias
|
8f29312c9e
|
Minimum re-entry stake should not include stoploss
|
2023-03-14 08:14:01 +01:00 |
|
Matthias
|
5c280d5649
|
Improve emergency_exit handling
|
2023-03-13 20:28:13 +01:00 |
|
Matthias
|
59d2ff3ffa
|
Simplify handle_cancel_exit
|
2023-03-11 15:15:10 +01:00 |
|
Matthias
|
39c651e40c
|
Remove pointless reset of close_profit
|
2023-03-11 15:15:02 +01:00 |
|
Matthias
|
a76ca771f8
|
telegram: Fix sending telegram message with exception
|
2023-03-10 18:09:05 +01:00 |
|
Matthias
|
c2c039151c
|
Improve typesafety around trade object
|
2023-03-01 20:32:32 +01:00 |
|
Matthias
|
f6b3998bbd
|
Fix backtesting type incompatibilities
|
2023-03-01 20:32:32 +01:00 |
|
Matthias
|
608a7c2d38
|
Add safe_close_rate
|
2023-03-01 20:32:31 +01:00 |
|
Matthias
|
3c019e0e16
|
tentative augmented typing of Trade object
|
2023-03-01 20:32:31 +01:00 |
|
Matthias
|
41e27ba621
|
Enhance some type info
|
2023-03-01 20:32:31 +01:00 |
|
Matthias
|
d1b2e38ae9
|
if a stoploss order exists, always allow canceling that
|
2023-02-28 20:39:17 +01:00 |
|
Matthias
|
5660036f47
|
Merge pull request #8245 from eSAMTrade/bugfix-8244
Fix last_process related bug in RPC.health (BUG-#8231)
|
2023-02-28 18:18:53 +01:00 |
|
Matthias
|
e5c68661fe
|
Simplify code line wrapping
|
2023-02-27 19:57:28 +01:00 |
|
ASU
|
1d5608d627
|
Fix last_process related bug in RPC.health
|
2023-02-27 12:14:38 +02:00 |
|
Matthias
|
3397e47ccf
|
Rename stoploss() to create_stoploss()
|
2023-02-14 20:42:08 +01:00 |
|
Matthias
|
6e55a873b3
|
Rename edge.stoploss to get_stoploss
this will make it clear that it's different from
|
2023-02-14 07:18:11 +01:00 |
|
Matthias
|
c15e10fe1f
|
Improve logic for initially placed stoploss
|
2023-02-08 07:08:42 +01:00 |
|
Matthias
|
82dad7ab17
|
Merge pull request #8086 from freqtrade/feat/cancel_order
Cancel open orders through UI/telegram
|
2023-02-06 19:43:21 +01:00 |
|
Matthias
|
55850a5ccd
|
Skip orders when correlated trade was deleted.
closes #8107
|
2023-02-04 08:39:25 +01:00 |
|
raphaelstar
|
b4c3e1fd58
|
order.amount -> order.safe_amount
|
2023-02-02 15:52:27 +01:00 |
|
Matthias
|
c1a34396d0
|
Merge branch 'develop' into feat/cancel_order
|
2023-02-01 07:06:17 +00:00 |
|
Matthias
|
8a0fabed0e
|
Ensure we don't overwrite valid values by invalid exchange responses
|
2023-01-31 20:55:11 +01:00 |
|
Matthias
|
a704c43402
|
provide cancel-reason to handle_cancel_order
|
2023-01-31 07:08:12 +01:00 |
|
Matthias
|
5a7008f377
|
rename handle_timedout to handle_cancel_order
|
2023-01-30 20:02:01 +01:00 |
|
Matthias
|
34e7433844
|
Add leverage to dry-run liquidation price calculation
|
2023-01-24 07:21:56 +01:00 |
|
Matthias
|
8108a48f39
|
Follow PEP 484 - no implicit optionals
|
2023-01-21 20:01:56 +01:00 |
|
Matthias
|
9cb7d6c26e
|
Run binance futures migrations on startup
|
2023-01-12 23:35:06 +01:00 |
|
Matthias
|
fd694f14c2
|
Add new order columns, ft_amount and ft_price
|
2023-01-08 13:53:08 +01:00 |
|
Matthias
|
550ab2b8e8
|
Improve select_order to only consider filled where needed.
|
2023-01-08 11:24:04 +01:00 |
|
Matthias
|
ad0d7c9a9e
|
Don't allow DCA trades to go beyond max order size
closes #7924
|
2022-12-23 16:09:35 +01:00 |
|
Matthias
|
abc3badfb5
|
Improve shutdown behavior
closes #7882
|
2022-12-12 20:01:54 +01:00 |
|
Matthias
|
e4a3efc7d4
|
Don't use strategy.stoploss too often
discovered in #7760
|
2022-11-27 15:54:35 +01:00 |
|
Matthias
|
0f97ef0d7b
|
Reset stoploss_order_id when order is canceled
closes #7766
|
2022-11-25 16:08:33 +01:00 |
|
Matthias
|
1b3e62bcbc
|
Lock execute_entry to prevent timing hickups
|
2022-11-25 14:50:48 +01:00 |
|
Matthias
|
c593cdc438
|
Improve type hints
|
2022-11-25 14:48:06 +01:00 |
|
Matthias
|
5e6cda11ef
|
Update method name for trade fee updating
|
2022-11-25 14:43:56 +01:00 |
|
Matthias
|
0fa5217043
|
Improve protection setup
lock_pair should be called when the order closes, not when the exit order is placed.
it should also be called for stoploss orders, too.
closes #7783
|
2022-11-21 19:30:49 +01:00 |
|
Matthias
|
0a702cdd26
|
Ensure more methods are typechecked
|
2022-11-14 20:56:35 +01:00 |
|