Commit Graph

244 Commits

Author SHA1 Message Date
Mark Veidemanis 466b17400f
Finish implementing active management hooks 2023-02-18 11:54:30 +00:00
Mark Veidemanis 3e35214e82
Fix open trades checks 2023-02-17 22:23:12 +00:00
Mark Veidemanis d262f208b5
Write crossfilter, asset groups and max open trades implementation and tests 2023-02-17 22:11:46 +00:00
Mark Veidemanis 67117f0978
Write protection check tests 2023-02-17 17:05:52 +00:00
Mark Veidemanis 1dbb3fcf79
Add more hooks to active management 2023-02-17 07:20:15 +00:00
Mark Veidemanis dd3b3521d9
Move more checks from market into checks library 2023-02-17 07:20:28 +00:00
Mark Veidemanis da67177a18
Begin work on scheduling management command 2023-02-17 07:20:19 +00:00
Mark Veidemanis ffdbcecc8d
Do profit calculation the right way around 2023-02-16 07:20:41 +00:00
Mark Veidemanis c0f266da73
Add signals and active management to strategy list 2023-02-15 20:04:23 +00:00
Mark Veidemanis 3854bdcc7d
Add signals trading enabled 2023-02-15 20:02:38 +00:00
Mark Veidemanis 5c090433a3
Add migration to remove order settings from strategies 2023-02-15 19:13:16 +00:00
Mark Veidemanis eefd704800
Add user field to all list templates 2023-02-15 18:44:19 +00:00
Mark Veidemanis b4afa32a6e
Move order settings to OrderSettings 2023-02-15 18:41:08 +00:00
Mark Veidemanis 69cf8dcc10
Add order settings to strategy 2023-02-15 18:35:46 +00:00
Mark Veidemanis 660aca44db
Begin adding order settings 2023-02-15 18:33:38 +00:00
Mark Veidemanis 1974b19157
Move risk model to strategy 2023-02-15 18:15:36 +00:00
Mark Veidemanis 9a5ed32be9
Add Lago 2023-02-15 07:20:53 +00:00
Mark Veidemanis b37c62f5f1
Fix delete confirmation 2023-02-15 07:20:53 +00:00
Mark Veidemanis bc60eabb05
Fix caching with different types 2023-02-15 07:20:53 +00:00
Mark Veidemanis b6952767d5
Fix asset filter 2023-02-14 07:20:47 +00:00
Mark Veidemanis 0a89d96b86
Log assetfilter messages to console 2023-02-14 07:20:47 +00:00
Mark Veidemanis 73cf56c50e
Use correct template for position details 2023-02-14 07:20:47 +00:00
Mark Veidemanis b6126a8454
Remove subtitle for positions 2023-02-14 07:20:47 +00:00
Mark Veidemanis 7a593b902b
Add help texts to AssetRule 2023-02-14 07:20:47 +00:00
Mark Veidemanis 74fdd8a735
Fix asset_group reference 2023-02-14 07:20:47 +00:00
Mark Veidemanis f4ae8fbc5f
Check equality with None instead of truthfulness 2023-02-14 07:20:47 +00:00
Mark Veidemanis 27de8090de
Add instruments to account readout 2023-02-14 07:20:47 +00:00
Mark Veidemanis 1fc969177d
Send all precision errors to the user 2023-02-14 07:20:47 +00:00
Mark Veidemanis 68a33cea7d
Send the user a more detailed precision error message 2023-02-14 07:20:47 +00:00
Mark Veidemanis c915fd1e41
Improve get precision error messages 2023-02-14 07:20:47 +00:00
Mark Veidemanis 507708574c
Add original status 2023-02-14 07:20:47 +00:00
Mark Veidemanis 6385339b7b
Don't print the JSON of webhooks 2023-02-14 07:20:47 +00:00
Mark Veidemanis 6464b6de05
Filter for enabled accounts 2023-02-13 21:02:59 +00:00
Mark Veidemanis 6ff5f718ba
Implement asset rules as Asset Group children objects 2023-02-13 20:45:23 +00:00
Mark Veidemanis b48af50620
Rename pairs to assets 2023-02-13 17:50:46 +00:00
Mark Veidemanis 0321aff9d5
Implement checking direction with assetfilter 2023-02-13 17:47:47 +00:00
Mark Veidemanis dcfb963be6
Remove asset restrictions and make asset groups smarter 2023-02-13 07:20:40 +00:00
Mark Veidemanis 287facbab2
Allow changing the asset filter list 2023-02-11 18:46:26 +00:00
Mark Veidemanis da9f32e882
Send the user a message when an asset restriction is hit 2023-02-11 18:25:09 +00:00
Mark Veidemanis 313c7f79d0
Write tests for asset filter 2023-02-11 18:22:49 +00:00
Mark Veidemanis ce0b75ae2d
Make account on AssetGroup optional 2023-02-11 18:18:07 +00:00
Mark Veidemanis bdf8f04210
Re-add property fields 2023-02-11 18:07:05 +00:00
Mark Veidemanis 7afdd39af7
Fix adding asset restrictions 2023-02-11 17:45:22 +00:00
Mark Veidemanis 33d8e26c9b
Use cachalot to invalidate caches 2023-02-11 17:22:25 +00:00
Mark Veidemanis 7d693ad1fa
Vary cache on URL 2023-02-11 15:48:53 +00:00
Mark Veidemanis a0c94b2097
Cache all object list templates 2023-02-11 14:52:00 +00:00
Mark Veidemanis 8455d64e31
Reformat 2023-02-11 14:00:19 +00:00
Mark Veidemanis 57078c10c1
Optimise performance with caching 2023-02-11 14:00:09 +00:00
Mark Veidemanis 1f43a00c7a
Add all models to admin site and tweak some documentation 2023-02-10 23:47:55 +00:00
Mark Veidemanis 010aba7f81
Implement storing asset restriction callbacks 2023-02-10 23:26:30 +00:00