Meng Xiangzhuo
41b725714f
chore: bump ruff target-version to 3.10
2024-11-08 04:37:33 +08:00
Matthias
e9a6ba03f9
chore: update persistence to modern typing syntax
2024-10-04 06:55:05 +02:00
Matthias
cebbe0121e
ruff format: update persistence
2024-05-13 07:10:25 +02:00
Matthias
accc1b509b
Simplify class setups without inheritance
2023-06-29 12:16:10 +00:00
Matthias
e579ff9532
Simplify pairlock querying
2023-03-16 06:48:12 +01:00
Matthias
ae361e1d5d
Update more .query usages
2023-03-16 06:44:53 +01:00
Matthias
8865af9104
Remove .query from pairlock
2023-03-15 21:21:00 +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
764001a4c2
Don't reuse variable
2023-03-01 20:32:32 +01:00
Matthias
8108a48f39
Follow PEP 484 - no implicit optionals
2023-01-21 20:01:56 +01:00
Matthias
d73fd42769
Fix flake8 error introduced with 6.0 update
2022-11-28 06:38:35 +01:00
Matthias
737bdfe844
Use "side" parameter when calling Pairlocks
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
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
Matthias
1da091dea3
ProtectionManager should return the lock just created
2021-09-19 19:41:19 +02:00
Matthias
6fb32c3594
Use commit instead of .flush()
2021-05-27 11:38:28 +02:00
Matthias
0407bf755f
Use .query.session to make sure the scoped session is used properly
2021-04-05 07:28:51 +02:00
Matthias
081b9be45c
use get_all_locks to get locks for backtest result
2021-02-27 09:32:59 +01:00
Matthias
75a5161650
Support multis-strategy backtests with protections
2020-12-07 11:39:01 +01:00
Matthias
768d7fa196
Readd optional for get_pair_locks - it's necessary
2020-12-07 08:23:10 +01:00
Matthias
6d0f16920f
Get Longest lock logic
2020-12-07 08:23:10 +01:00
Matthias
fc97266dd4
Add "now" to lock_pair method
2020-12-07 08:23:10 +01:00
Matthias
5c8779b155
Sort imports
2020-10-27 08:11:57 +01:00
Matthias
6c913fa617
Fix locking - should round before storing to have a consistent picture
2020-10-27 08:01:31 +01:00
Matthias
e602ac3406
Introduce Pairlocks middleware
2020-10-27 07:06:06 +01:00