Commit Graph

199 Commits

Author SHA1 Message Date
a0c94b2097
Cache all object list templates 2023-02-11 14:52:00 +00:00
8455d64e31
Reformat 2023-02-11 14:00:19 +00:00
57078c10c1
Optimise performance with caching 2023-02-11 14:00:09 +00:00
1f43a00c7a
Add all models to admin site and tweak some documentation 2023-02-10 23:47:55 +00:00
010aba7f81
Implement storing asset restriction callbacks 2023-02-10 23:26:30 +00:00
c283c6c192
Add asset restriction webhook API 2023-02-10 22:04:01 +00:00
aa227c53ac
Remove unused function in callbacks 2023-02-10 21:16:27 +00:00
0b7dc001bf
Add a warning about hooks to the asset restriction form 2023-02-10 21:14:17 +00:00
1d01368570
Add webhook ID to asset restriction model 2023-02-10 21:13:12 +00:00
101a4933c9
Make long IDs copyable 2023-02-10 21:13:00 +00:00
119acdd734
Use django-crud-mixins for CRUD helpers 2023-02-10 20:49:35 +00:00
659b73e695
Add mixins 2023-02-10 07:20:36 +00:00
8750e999b3
Remove unused log 2023-02-10 07:20:36 +00:00
f81d632df3
Add asset groups and restrictions 2023-02-10 14:33:17 +00:00
7938bffc8d
Implement extra permission checks and mutations on restriction mixin 2023-02-10 14:32:51 +00:00
72055181bc
Implement CRUD for asset groups 2023-02-10 07:20:19 +00:00
e00cdc906e
Update pre-commit versions 2023-02-09 07:20:17 +00:00
f4ef280f80
Fix circular import 2023-01-11 21:12:43 +00:00
70d1fdbbd3
Adjust comment 2023-01-11 20:53:04 +00:00
7d0f979a96
Check risk management when opening trades with strategies 2023-01-11 20:48:17 +00:00
3f05553c71
Add initial balance to template and adjust PL calculation to use initial balance 2023-01-11 20:43:11 +00:00
9a69120695
Remove leftover comments and debug statements 2023-01-11 19:59:27 +00:00
23faeb6f71
Write tests for open trade checks 2023-01-11 19:55:09 +00:00
e55f903f42
Continue implementing live risk checks 2023-01-11 19:46:47 +00:00
93be9e6ffe
Check the max risk relative to the account balance 2023-01-06 07:20:55 +00:00
ae42d9b223
Fix profit/loss calculation 2023-01-06 08:52:15 +00:00
1bab2a729b
Fix SL polarity for losses 2023-01-05 23:58:13 +00:00
db870c39c6
Fix TP/SL calculation and make more tests for profit/loss 2023-01-05 23:37:50 +00:00
2dfaef324c
Add more tests for risk checking 2023-01-05 19:48:56 +00:00
483333bf28
Test checking maximum risk with market data 2023-01-05 19:46:18 +00:00
d3e2bc8648
Implement TP/SL price to percent conversion 2023-01-05 19:27:59 +00:00
a6f9e74ee1
Close all positions on demo account when exiting tests 2023-01-05 17:25:22 +00:00
b8b39ea8d3
Implement closing all positions 2023-01-05 17:25:06 +00:00
9dda0e8b4a
Write live open/close and list trades tests 2023-01-02 18:42:55 +00:00
72671aa87f
Refactor OANDA schemas and refactor existing ones to make use of more objects 2023-01-02 18:42:33 +00:00
9835219e51
Implement closing trades on OANDA 2023-01-02 18:42:03 +00:00
2fa61fb195
Print the response if validation fails 2023-01-02 18:41:49 +00:00
e0ea4c86fa
Implement check risk function 2023-01-01 21:52:51 +00:00
46aaff43c0
Begin writing live tests 2023-01-01 21:52:43 +00:00
b2361bda77
Add enabled checkbox to account list 2023-01-01 15:52:04 +00:00
b31a2d1464
Allow disabling accounts 2023-01-01 15:46:40 +00:00
a18c150fe2
Begin implementing get all open trades 2022-12-22 07:20:49 +00:00
b818e7e3f5
Write risk checking helpers and tests 2022-12-13 07:20:49 +00:00
c81cb62aca
Finish implementing risk models 2022-12-13 07:20:49 +00:00
4e24ceac72
Add risk model and views 2022-12-21 21:35:59 +00:00
52ddef4c8f
Simplify protection options and allow none 2022-12-20 23:20:07 +00:00
29125d5087
Reshuffle the menu to minimise confusion 2022-12-13 07:20:49 +00:00
3a7b5c3ffd
Bring Alpaca and OANDA implementation functions into alignment 2022-12-13 07:20:49 +00:00
a41a1e76a5
Refactor market into two files 2022-12-20 07:20:26 +00:00
b7c46ba1d3
Add more user feedback on rejected and dropped trades 2022-12-20 07:20:26 +00:00