Matthias
3c019e0e16
tentative augmented typing of Trade object
2023-03-01 20:32:31 +01:00
Matthias
9d455f58b1
Improve some trade model Types
2023-03-01 20:32:31 +01:00
Matthias
829e10ff87
Improve Type for models.py
2023-03-01 20:32:31 +01:00
Matthias
b62830031f
Dummy-type query objects
2023-03-01 20:32:31 +01:00
Matthias
a553a9923a
Update types for pairlock
2023-03-01 20:32:31 +01:00
Matthias
f89b63b0c5
Fix dry-run stoploss orders filling "in place" after restart.
2023-02-18 19:25:11 +01:00
Matthias
81619fb4a0
Properly use sqlalchemy column types
2023-02-06 19:51:51 +01:00
Matthias
448505fbfb
Fix minor issue where amount could be empty in rest calls
2023-01-31 20:38:18 +01:00
Matthias
020dc3c6e1
filled-date shouldn't update again
2023-01-27 20:21:29 +01:00
Matthias
8108a48f39
Follow PEP 484 - no implicit optionals
2023-01-21 20:01:56 +01:00
Matthias
305b067e48
Support having no Amount/Price available from the exchange initially
2023-01-08 13:55:09 +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
cd4faa9c59
keep max_stake_amount through backtests
2022-12-27 18:08:20 +01:00
Matthias
62c4675e29
Remove some deprecated fields from the API
2022-12-27 14:28:07 +01:00
Matthias
cb66663fd2
show max_stake_amount in API
2022-12-27 14:28:07 +01:00
Matthias
55001bf321
Keep max_stake_amount (only relevant for DCA orders).
2022-12-27 14:28:07 +01:00
Matthias
bad6fe77d3
Remove deprecated trade property
2022-12-18 17:21:50 +01:00
Matthias
d73fd42769
Fix flake8 error introduced with 6.0 update
2022-11-28 06:38:35 +01:00
Matthias
436b314c80
add safe_remaining
...
fixes #7757
2022-11-17 19:07:47 +00:00
Matthias
afcb86f422
Improve migration types
2022-11-17 10:25:51 +00:00
Matthias
ee0e59157c
Update join relationship of orders table to selectin
...
closes #6791 by slightly improving performance in this area.
2022-11-12 16:34:00 +01:00
Matthias
f43f967040
Improve handling of unfilled stoploss orders in edge-cases
2022-11-08 20:34:18 +01:00
Matthias
d1591883a6
add missing datetime conversion in fromJson
2022-10-21 07:01:47 +02:00
Matthias
bd424a877b
Add Trade from_json method
2022-10-20 20:33:08 +02:00
Matthias
0e8cf366f5
Keep trade state in LocalTrade
2022-10-17 06:57:26 +02:00
Matthias
e82baf5f60
Use helper-method to modify trades_open
2022-10-16 16:45:16 +02:00
Matthias
063511826c
Update stoploss on exchange logic
...
closes #7424
2022-09-17 17:11:00 +02:00
Matthias
9f266cbcb2
Allow safe_price for market stop orders
2022-09-17 17:11:00 +02:00
Matthias
16573b19e3
Fix migration syntax error
2022-09-03 19:51:44 +02:00
Matthias
ed4cc18cdd
Migration to check order funding fee
2022-09-03 15:19:40 +02:00
Matthias
0f483ee31f
Use "since last order" approach for live as well.
2022-09-03 15:01:42 +02:00
Matthias
df50b1928d
Fix funding fee calculation for backtesting
2022-09-03 15:01:42 +02:00
Matthias
11fbfd3402
Remove unnecessary assignment
2022-09-01 19:39:20 +02:00
Matthias
6636f17e0f
Simplify usage of amount_to_contract precision
2022-08-25 07:08:22 +02:00
Matthias
32faad9333
Fix backtest calculation problem with DCA
...
closes #7287
2022-08-24 20:36:08 +02:00
Matthias
fe7108ae75
Convert amount to contracts before comparing for close
...
closes #7279
2022-08-23 06:37:38 +02:00
Matthias
78b161e14c
add contract_size to database
2022-08-23 06:37:38 +02:00
Matthias
87a3115073
Add get_open_trade_count() to simplify getting open trade count.
2022-08-21 17:08:27 +02:00
Matthias
42eb508515
Attempt fix of #7184
2022-08-19 07:09:46 +02:00
Matthias
76a3e97e05
Add migrations end message
...
closes #7251
2022-08-19 06:39:51 +02:00
Matthias
8d182768f9
stoploss should also use trimmed prices
2022-08-17 09:57:11 +02:00
Matthias
24690c1918
Don't convert open_rate to precision
...
this may cause more problems than it solves.
2022-08-16 18:32:00 +02:00
Matthias
3b44dc52e1
Minor corrections
2022-08-16 18:10:48 +02:00
Matthias
a73e4f8e41
Truncate amount before comparing for closure
2022-08-16 09:49:53 +02:00
Matthias
1dd56e35d5
Ensure comparisions align when closing a trade
2022-08-16 08:21:02 +02:00
Matthias
c3f159bd57
Add precision fields to database
2022-08-15 19:58:40 +02:00
Matthias
6c32331740
Move precision calculations to standalone functions
2022-08-15 08:43:58 +02:00
Matthias
e3a5b97b45
Update recalc_from_trades to use FtPrecise
2022-08-13 08:43:56 +02:00
Matthias
0e61c2d057
Replace Decimal with FtPrecise in trade_model
2022-08-13 08:43:56 +02:00
eSeR1805
f755df2568
Merge branch 'develop' into feature_keyval_storage
...
Update rpc/telegram to use MAX_MESSAGE_LENGTH.
2022-08-11 11:26:45 +03:00
Matthias
bfa859e618
Remove unnecessary method (simplify)
2022-08-06 17:46:58 +02:00
Matthias
5250189f77
Add Rollback function to Trade
...
simplifies Session work
2022-08-06 17:03:49 +02:00
Matthias
d75e0a9820
Fix Flake8 errors after flake update
2022-08-01 06:43:59 +02:00
Kavinkumar
a4bada3ebe
Partial exit using average price ( #6545 )
...
Introduce Partial exits
2022-07-31 14:19:04 +02:00
Matthias
d046f0cc5e
Improve method wording for liquidation price setter
2022-07-30 16:11:31 +02:00
Matthias
845cecd38f
Add stoploss or liquidation property
2022-07-30 16:10:16 +02:00
Matthias
15752ce3c2
Rename set_stoploss method to be fully private
2022-07-30 16:10:16 +02:00
Matthias
9852733ef7
Improve tests to align with modified logic
2022-07-30 16:10:16 +02:00
Matthias
995be90f91
Liquidation should be a separate exit type
2022-07-30 16:10:16 +02:00
Matthias
b7167ec880
Fix wrong fee calclulation for gateio futures
2022-07-09 08:51:59 +02:00
Matthias
6f0721ae2b
Update dry-order-fix to use sqlalchemy internals
2022-07-04 17:17:39 +02:00
Matthias
6da3fa08e4
Update migrations to also support Postgres
...
closes #7038
2022-07-04 11:14:59 +02:00
Matthias
53e5483daa
Store StopPrice for dry-run orders
...
closes #6996
2022-06-22 06:31:51 +02:00
eSeR1805
c420304b33
Delete custom data before the trade.
2022-06-19 20:03:56 +03:00
Matthias
0d967f93ba
Improve performance of some RPC calls
...
These don't need orders to be loaded. As a side-effect, this will
also reduce the strain on the database.
2022-06-19 16:13:04 +02:00
eSeR1805
ce9d9d7e60
Finish renaming persistant storage infrastructure.
2022-06-19 16:02:24 +03:00
eSeR1805
365527508b
Rename files.
2022-06-19 15:59:21 +03:00
eSeR1805
9fdb8b07ac
Rename persistant storage infrastructure.
2022-06-19 15:56:50 +03:00
eSeR1805
0009b987e4
Merge branch 'develop' into feature_keyval_storage
2022-06-19 13:32:25 +03:00
Matthias
0168343b76
Add trading-volume to api schema
2022-06-18 16:53:25 +02:00
Matthias
40c9abc7e1
Add trading volume to /profit output
2022-06-18 11:40:32 +02:00
Matthias
6bdf9c2a94
Simplify trade profit calculations further
2022-06-17 11:17:05 +00:00
Matthias
91f9818ae3
Simplify trade calculations
2022-06-17 09:53:29 +00:00
Matthias
d7770c507b
Remove implicit use of certain rates in profit calculations
2022-06-17 07:00:42 +00:00
Matthias
01a68e1060
Remove unnecessary check and condition
2022-06-13 20:48:49 +02:00
eSeR1805
4c6074062c
Merge branch 'develop' into feature_keyval_storage
2022-06-13 20:05:45 +03:00
eSeR1805
c719860a16
get_kval() -> get_kvals(). Update docs also.
2022-06-13 20:03:22 +03:00
eSeR1805
f3dee5ec4f
Update handling for query_kv when no Key is supplied.
2022-06-13 20:02:06 +03:00
eSeR1805
be169a23f4
Add a new session for KeyValues.
2022-06-13 20:00:21 +03:00
Matthias
d5fd1f9c38
Improve order filled handling
2022-06-13 13:24:48 +00:00
eSeR1805
1551510c6f
Merge branch 'develop' into feature_keyval_storage
2022-06-09 11:35:35 +03:00
Matthias
79107fd062
Add minimal order object serialization
2022-06-05 22:12:27 +02:00
Matthias
8369d5bedd
Include open orders in json responses
2022-06-05 22:12:27 +02:00
Matthias
c0ff554d5b
Cleanup old, left open dry-run orders
2022-06-05 22:12:27 +02:00
Matthias
f709222943
Properly close out orders in backtesting
2022-06-05 22:12:27 +02:00
eSeR1805
abda02572b
Fix KeyValue __repr__.
2022-06-05 12:18:07 +03:00
eSeR1805
096e98a68c
Remove stray debug message.
2022-05-31 16:16:57 +03:00
eSeR1805
854bd9af2b
Merge branch 'develop' into feature_keyval_storage
2022-05-31 12:28:58 +03:00
eSeR1805
10917a280a
Add initial structure and wrapping.
2022-05-31 12:26:07 +03:00
Matthias
b2968df5dc
Fix some type problems
2022-05-25 10:13:37 +00:00
Matthias
46ea135b6b
Update dry-run considerations
2022-05-19 20:10:11 +02:00
Matthias
56a73575a1
Add explicit test for order_to_ccxt
2022-05-19 19:29:39 +02:00
Matthias
a3d9384bc0
Remove clean-dry-run code
2022-05-19 06:56:34 +02:00
Matthias
0a95ef6ab2
Don't reset open orders in dry-run on restart
2022-05-19 06:42:38 +02:00
Matthias
18fd3bb333
Update stoploss handling for entry-order adjustment
2022-05-15 15:45:39 +02:00
eSeR1805
c27e0a0a1b
Allow SL refresh only if no filled entry orders.
2022-05-14 16:56:56 +03:00
eSeR1805
1c20fb7638
Refresh open_rate and stoploss on order replacement.
2022-05-14 16:37:04 +03:00
மனோஜ்குமார் பழனிச்சாமி
8a3c2c6cad
Corrected docstring
...
Discussed in Discord
2022-05-13 19:32:52 +05:30
Matthias
31cce741ac
Add sequence migration
2022-05-10 07:13:51 +02:00
Matthias
0f499469fc
Merge pull request #6796 from freqtrade/model_reorg
...
Model reorg
2022-05-09 20:15:45 +02:00
Matthias
30d6eeffd0
Fix migration bug
2022-05-08 17:49:13 +02:00
Matthias
b58e811b14
Move trade/order Models to their own class
2022-05-08 17:45:20 +02:00
Matthias
af1a5e0449
Extract base and Pairlock from models file
2022-05-08 17:38:06 +02:00
Matthias
3221726d85
Update migration to use boolean value
...
closes #6794
2022-05-08 17:29:42 +02:00
Matthias
c9498d0117
Merge pull request #6692 from eSeR1805/feat_readjust_entry
...
Feature: Readjust Entry Order
2022-05-07 20:11:20 +02:00
Matthias
2da284b921
Properly type side for create_order
2022-05-07 10:02:54 +02:00
Matthias
2d9be6dace
move open_rate updating to close_bt_order
2022-05-05 19:50:16 +02:00
eSeR1805
29f1edbde7
Cleanup. Remove stray new line.
2022-05-05 12:24:32 +03:00
eSeR1805
25c74e26d1
Models:Trade: Revert trade open_rate update.
2022-05-05 12:18:19 +03:00
eSeR1805
ae01afdd0f
Models:Trade: Fix open_rate updates.
2022-05-04 22:05:53 +03:00
eSeR1805
dbecc097df
Models:Trade: Update trade open_rate based on lastest order.
2022-05-04 21:34:45 +03:00
Matthias
995c48b642
Merge branch 'develop' into pairlocks_direction
2022-05-01 14:59:04 +02:00
Matthias
2ef1181e16
Simplify trade __repr__
2022-04-28 07:33:30 +02:00
Matthias
737bdfe844
Use "side" parameter when calling Pairlocks
2022-04-24 14:33:24 +02:00
Matthias
b0a8bf3025
Show lock side
2022-04-24 14:33:24 +02:00
Matthias
4942d73693
update pairlock tests
2022-04-24 14:33:24 +02:00
Matthias
845f960a4e
realign pairlock naming to side
2022-04-24 14:33:24 +02:00
Matthias
fc201bb4ff
implement pairlock side further
2022-04-24 14:33:24 +02:00
Matthias
7c79d937e0
Properly type "side" parameter
2022-04-24 14:33:24 +02:00
Matthias
6ff3b178b0
Add direction column to pairlocks
2022-04-24 14:33:24 +02:00
Matthias
baefda80d1
Enable flake8 E226 rule
2022-04-11 18:02:06 +02:00
Matthias
77c840c2a4
Fix syntax-error in exit_reason migration
2022-04-10 15:10:13 +02:00
Matthias
850760bc00
Remove migration from very old database
...
(database without Orders table)
2022-04-10 08:43:30 +02:00
Matthias
8e98a2ff9f
api - provide assset_currency via API
2022-04-09 16:42:18 +02:00
Matthias
28b58712fb
Add compatibility shim for trade.entry_trade
2022-04-06 19:13:46 +02:00
மனோஜ்குமார் பழனிச்சாமி
7e97e58820
renamed enter-side
2022-04-06 06:32:13 +05:30
Matthias
4cd4edf08b
Update exit_reasons while migrating the database
2022-04-04 19:52:26 +02:00
Matthias
69491c1430
Update more wording to "exit"
2022-04-03 19:39:13 +02:00
Matthias
2d2bea17e7
sell_order_status -> exit_order_status
2022-04-03 11:17:01 +02:00
Matthias
a27c837d18
Update sell_reason to exit_reason
2022-04-03 10:41:35 +02:00
Matthias
cd78792f48
Improve some telegram terminology
2022-04-03 10:40:13 +02:00
Matthias
e894f620c2
Improve compatibility
2022-04-03 08:15:23 +02:00
Matthias
543aa74278
update sell_reason to exit_reason
2022-04-02 20:04:29 +02:00
Matthias
94274e4823
Remove order.leverage column
2022-03-31 06:57:16 +02:00
Matthias
1c0946833d
Fix bug in exit-count detection
2022-03-25 16:06:03 +01:00
Matthias
dcfa3e8648
Update SellType to ExitType
2022-03-25 06:55:37 +01:00
Matthias
e545ac1978
Revert condition to exploit lazy evaluation
2022-03-23 19:41:57 +01:00
Matthias
4fd0681265
Combine stake_amount recalculation
2022-03-20 20:00:30 +01:00
Matthias
cfa9458bcc
Merge branch 'develop' into feat/short
2022-03-13 15:38:12 +01:00
Matthias
9107819c95
Fix order migration "forgetting" average
2022-03-13 14:42:15 +01:00
Matthias
d2a163e2cf
rename column to liquidation_price
2022-03-07 17:16:33 +01:00
Matthias
6360ef029c
Simplify and align liquidation price handling
2022-03-06 16:27:55 +01:00
Matthias
667054e1ad
Reorder methods in trade object
2022-03-06 15:07:07 +01:00
Matthias
46e17c9762
Fix stoploss_pct set wrongly for short trades
2022-03-06 15:07:04 +01:00
Matthias
cc38f0656d
Explicitly check for None to determine if initial stoploss was set
...
closes #6460
2022-03-06 15:06:57 +01:00
Matthias
be4bc4955c
Explicitly check for None to determine if initial stoploss was set
...
closes #6460
2022-03-05 14:12:14 +01:00
Matthias
8943d42509
Update telegram notifications to properly detect shorts
2022-03-04 19:42:33 +01:00
Sam Germain
488da9b875
Merge branch 'develop' into feat/short
2022-03-03 13:51:52 -06:00
Matthias
e9456cdf15
Update trade response to use a single Order object
2022-03-02 19:58:08 +01:00
Matthias
17c9c3caf3
Enable orders via API
2022-03-02 19:58:08 +01:00
Matthias
1b07ad92cf
Merge branch 'feat/short' into pr/samgermain/6467
2022-02-28 20:07:19 +01:00
Matthias
1d27cbd01f
Simplify leverage_prep interface
2022-02-28 19:34:10 +01:00
Matthias
33be14e7e2
Update stake_amount calculation with multiple entries when using leverage
2022-02-27 17:09:29 +01:00
Matthias
1b6548c8d8
Don't modify leverage through DCA
2022-02-27 15:44:23 +01:00
Matthias
eed516a5c6
Update DCA logic to some extend
2022-02-27 15:44:23 +01:00
Matthias
bcfa73d492
Add "nr_of_successfull_entries"
2022-02-27 15:44:23 +01:00
Sam Germain
78194559f4
persistence.adjust_stop_loss accounts for leverage
2022-02-26 13:55:37 -06:00
Matthias
018c620057
Fix 0 Division error on exchanges without average
...
closes #6461
2022-02-26 08:19:45 +01:00
Matthias
6562511137
add trade_direction to trade object
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
53452c8d64
Merge pull request #6437 from freqtrade/update_trade
...
Migrate trade updating to use order model
2022-02-23 19:56:02 +01:00
Matthias
8952829adc
Merge branch 'develop' into feat/short
2022-02-23 06:28:15 +01:00
Matthias
1f9ed0beff
Add test for wal mode
2022-02-22 19:39:55 +01:00
Matthias
02ce0dc02e
Set journal mode to wal for sqlite databases
...
closes #6353
2022-02-22 19:31:58 +01:00
Matthias
fddacfedaa
Remove returntype
2022-02-20 16:47:02 +01:00
Matthias
a24586cd41
Update migrations for new column
2022-02-20 16:32:04 +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
508e677d70
Fix some tests to call update_trade with order object
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
Matthias
e981d644e1
Add toto-lev for order-leverage
2022-02-16 19:24:59 +01:00
Matthias
119d4d5204
select_order should use ft_order_side, not the exchange specific one
2022-02-12 17:06:03 +01:00
Matthias
0c6d92a7a6
Merge branch 'develop' into feat/short
2022-02-11 17:02:04 +01:00
Matthias
9f47853661
Merge pull request #6235 from freqtrade/backtest_order_timeout
...
Backtest order timeout
2022-02-09 07:12:35 +01:00
Matthias
303b12efd8
Merge pull request #6273 from freqtrade/pg_migrations
...
Update database migrations for PG and mariadb
2022-02-06 14:39:02 +01:00
Matthias
808cefe526
Update order_selection logic
2022-02-05 16:28:47 +01:00
Matthias
4ea79a32e4
Use Order object for ft_timeout check
2022-02-05 16:28:47 +01:00
Matthias
7ac44380f7
Extract backtest order closing to models class
2022-02-05 16:28:46 +01:00
Matthias
f7a1cabe23
Add first version to fill orders "later" in backtesting
2022-02-05 16:28:21 +01:00
Matthias
6ed237a72a
Merge pull request #6272 from stash86/fix-docs
...
Add more info on Telegram's status message
2022-02-05 16:22:45 +01:00
Sam Germain
de557f1386
models.update removed TODO-lev
2022-02-03 17:48:34 -06:00
Sam Germain
f58b92bb86
exchange.create_order removed default for leverage
2022-02-03 17:48:08 -06:00
Matthias
29879bb415
Update wording to entry/exit
2022-02-03 19:11:35 +01: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
0c13e387fe
moved liquidation_price method to exchange classes
2022-01-31 12:16:43 -06:00
Sam Germain
69a6223ca0
implemented binance.get_maintenance_ratio_and_amt
2022-01-31 12:15:54 -06:00
Sam Germain
5796d95a95
Added gateio and okex isolated liquidation formulas
2022-01-31 12:15:54 -06:00
Sam Germain
ba02605d77
Isolated liq branch passes all tests and has the general structure that it is supposed to, but is patchy, and doesnt get the correct maintenance amt and maintenance margin rate yet
2022-01-31 12:15:54 -06:00
Sam Germain
92c94bb62a
added position and wallet_balance to LocalTrade.set_isolated_liq
2022-01-31 12:15:54 -06:00
Sam Germain
d26a068adf
rearanged isolated_liq in models a bit
2022-01-31 12:15:54 -06:00
Sam Germain
a087d03db9
Added liquidation_price function
2022-01-31 12:15:54 -06:00
Sam Germain
689174ea0d
removed TODO-lev comments
2022-01-31 04:12:37 -06:00
Matthias
7aae9565c7
Only look at buy orders when looking to recalculate trade value
2022-01-30 14:08:42 +01:00
Matthias
463714832d
Merge branch 'develop' into feat/short
2022-01-29 14:19:30 +01:00
Stefano Ariestasia
ed71f777a3
Merge branch 'fix-docs' of https://github.com/stash86/freqtrade into fix-docs
2022-01-26 07:07:00 +00:00
Stefano Ariestasia
1f26709aca
changes
2022-01-26 07:06:52 +00:00
Stefano Ariestasia
7c975df42a
Merge branch 'freqtrade:develop' into fix-docs
2022-01-25 10:30:03 +09:00
Reigo Reinmets
6613e3757a
Additional fix
2022-01-23 18:09:57 +02:00
Reigo Reinmets
51b94889b2
Just in case also check for closed to avoid counting in canceled orders.
2022-01-23 17:56:41 +02:00
Reigo Reinmets
8c79d55739
Fix issue #6268
2022-01-23 17:44:16 +02:00
Stefano Ariestasia
480ed90a02
create to_json function for Order
2022-01-23 11:33:06 +00:00
Matthias
f090dcc597
Merge branch 'develop' into feat/short
2022-01-22 17:56:01 +01:00
Matthias
bd4014e1e6
Small cleanup
2022-01-22 15:01:27 +01:00
Stefano Ariestasia
05046b9eef
Add more info on status message
2022-01-22 06:54:49 +00:00
Matthias
3d94d7df5c
Update migrations for mariadb
2022-01-21 19:31:11 +01:00
Matthias
c265f39323
Update sequences for postgres
2022-01-21 17:19:39 +01:00
Matthias
19948a6f89
Try fix sequence migrations
2022-01-21 16:49:08 +01:00
Matthias
5dca183b7b
Combine order and Trade migrations to better facilitate migrations in advanced DB systems
2022-01-21 16:49:08 +01:00
Matthias
6c7a4230ad
Update comment about funding_fees calculation
2022-01-17 19:20:47 +01:00
Reigo Reinmets
3de843ab2c
Add eager-loading for orders. This allows access to trade.orders in all callbacks.
2022-01-17 13:23:37 +02:00
Reigo Reinmets
93adb436f8
Fix flake8 intention issue.
2022-01-14 20:25:29 +02:00
Reigo Reinmets
320c9ccf90
Unify functions and make it easy to get a list of filled buy orders
2022-01-14 20:02:35 +02:00
Reigo Reinmets
ffe69535d8
These could be properties.
2022-01-13 20:31:03 +02:00
Reigo Reinmets
30d293bfec
Fix bug with None in backtesting.
2022-01-10 20:16:11 +02:00
Reigo Reinmets
813a2cd23b
Add useful helper methods for adjust_trade_position implementation
2022-01-08 17:18:37 +02:00
Sam Germain
c61acb9f19
removed rename todos
2022-01-08 03:09:47 -06:00
Sam Germain
46072be011
models.__init__ exception for no interest_rates on Margin trading
2021-12-31 06:20:00 -06:00
Reigo Reinmets
099dc07baf
No longer needed since recalc_trade_from_orders always calls it.
2021-12-26 20:02:20 +02:00
Reigo Reinmets
3aca3a7133
Use parentheses instead of backslash
2021-12-18 18:55:47 +02:00
Reigo Reinmets
462270bc5a
Fix a case where the amount was not recalculated. Added additional temporary logging.
2021-12-16 22:57:56 +02:00
Reigo Reinmets
71147d2899
Attempt to support limit orders for position adjustment.
2021-12-11 18:25:05 +02:00
Reigo Reinmets
b7bf3247b8
Only adjust stoploss if it's set.
2021-12-10 23:17:12 +02:00
Reigo Reinmets
c179951cca
Expect stake_amount, not actual amount of pair from strategy for DCA.
2021-12-10 20:42:24 +02:00
Reigo Reinmets
00366c5c88
Additional unit-tests
2021-12-09 20:03:41 +02:00
Reigo Reinmets
fde6779873
Some code improvements. Still some bugs.
2021-12-09 14:47:44 +02:00
Matthias
192ac88314
Update optimize-reports to enter_tag wording
2021-11-21 10:20:09 +01:00
Matthias
36deced00b
Remove more buy_tag references
2021-11-21 09:55:10 +01:00
Matthias
7d77aff289
Add some compatibility around buy_tag
2021-11-21 09:24:20 +01:00
Sam Germain
54ef52692f
Trade.has_no_leverage makes more sense
2021-11-20 01:06:10 -06:00
Matthias
f40221dd9f
Merge branch 'develop' into feat/short
2021-11-18 20:20:01 +01:00
Sam Germain
430aa0903f
Removed redundent TODO-levs
2021-11-13 19:45:41 -06:00
Matthias
4eb9038358
Some more fixes to % formatting
2021-11-11 15:06:16 +01:00
Matthias
d5438ed0a8
Fix docstring indents
2021-11-09 19:22:29 +01:00
Matthias
f9e5a25b36
Add docstring style to Contributing
2021-11-09 07:48:25 +00:00
Matthias
ebc38159b8
Merge branch 'develop' into feat/short
2021-11-06 15:24:52 +01:00
Matthias
f7dc47b1c8
Add test for exit_timeout_count
2021-11-06 13:10:41 +01:00
Matthias
7a907a7636
Add Emergencyselling after X timeouts have been reached
2021-11-06 11:48:49 +01:00
Matthias
431b96de98
Merge branch 'develop' into pr/theluxaz/5710
2021-11-03 19:43:36 +01:00
Matthias
dffe76f109
Don't double-loop to generate profits
2021-10-31 10:49:56 +01:00
Matthias
c094ac5762
Merge branch 'develop' into feat/short
2021-10-30 19:45:19 +02:00
Matthias
c579fcfc19
Add tests and documentation for unlock_reason
2021-10-30 09:51:09 +02:00
incrementby1
e9d71f26b3
small changes
2021-10-29 00:03:20 +02:00
incrementby1
658006e7ee
removed wrong use of map and filter function
2021-10-28 23:29:26 +02:00
incrementby1
02e69e1667
Changes to unlock_reason:
...
- introducing filter
- replaced get_all_locks with a query for speed
. removed logging in backtesting mode for speed
. replaced for-loop with map-function for speed
Changes to models.py:
- changed string representation of Pairlock to also contain reason and active-state
2021-10-28 15:16:07 +02:00
incrementby1
c3f3bdaa2a
Add "allow_position_stacking" value to config, which allows rebuys of a pair
...
Add function unlock_reason(str: pair) which removes all PairLocks with reason
Provide demo strategy that allows buying the same pair multiple times
2021-10-26 00:04:40 +02:00
theluxaz
b51f946ee0
Fixed models and rpc performance functions, added skeletons for tests.
2021-10-25 23:43:22 +03:00
Matthias
22dd2ca003
Fix mypy type errors
2021-10-24 15:18:29 +02:00