Commit Graph

93 Commits

Author SHA1 Message Date
Mark Veidemanis cb88cf33c2
Prevent rounding errors in value calculation 2022-11-22 07:20:37 +00:00
Mark Veidemanis 3f8fb66656
Fix price bound logic 2022-11-22 08:10:38 +00:00
Mark Veidemanis 46bba54cb7
Allow absent price 2022-11-21 07:20:12 +00:00
Mark Veidemanis f6b5652268
Update Drakdoo API format 2022-11-21 07:20:12 +00:00
Mark Veidemanis ca434b8cf0
Remove offset panel 2022-11-15 07:20:17 +00:00
Mark Veidemanis d7e81dedb2
Implement trailing stop loss 2022-11-15 07:20:17 +00:00
Mark Veidemanis 5c68191e5b
Calculate price slippage more reliably and allow specifying order type and time in force 2022-11-15 07:20:17 +00:00
Mark Veidemanis c8f776e2a8
Set the type back to market 2022-11-15 07:20:17 +00:00
Mark Veidemanis 2aac7d1bb5
Add controls boilerplate to main page 2022-11-14 18:29:07 +00:00
Mark Veidemanis d2e0137c8d
Fix widgets in pages 2022-11-14 17:14:47 +00:00
Mark Veidemanis e3d57c9aa8
Fix HTMX widgets and tweak display of some titles 2022-11-13 13:22:31 +00:00
Mark Veidemanis 781de3c772
Convert everything to Decimal 2022-11-11 07:20:00 +00:00
Mark Veidemanis 9fc5d2f4d7
Initialise inverted variable in currency conversion 2022-11-11 07:20:00 +00:00
Mark Veidemanis 67404fc161
Don't convert between the same currency 2022-11-11 07:20:00 +00:00
Mark Veidemanis 3f855dfb59
Remove some debug statements 2022-11-11 07:20:00 +00:00
Mark Veidemanis afb0504dca
Documented the market system properly, squashed some bugs 2022-11-11 07:20:00 +00:00
Mark Veidemanis c3d908341a
Refactor and ignore n/a exchange callbacks 2022-11-10 07:20:20 +00:00
Mark Veidemanis 8b52063473
Refactor execute_strategy into functions and send a price bound 2022-11-10 19:52:52 +00:00
Mark Veidemanis af9f874209
Improve posting trades to OANDA and make everything more robust 2022-11-10 19:27:46 +00:00
Mark Veidemanis bf863f43b2
Check exchange name and remove redundant code, use IOC orders for OANDA 2022-11-10 07:20:28 +00:00
Mark Veidemanis 40f6330a13
Remove asset filter and begin implementing posting trades 2022-11-10 07:20:14 +00:00
Mark Veidemanis 47384aed5f
Update webmanifest 2022-11-10 09:52:30 +00:00
Mark Veidemanis e8a2f9b0fa
Update strategy defaults 2022-11-06 07:20:24 +00:00
Mark Veidemanis 6dd2997a74
Fix posting trades 2022-11-06 07:20:32 +00:00
Mark Veidemanis 60979652d9
Implement more validation and conversion 2022-11-04 07:20:14 +00:00
Mark Veidemanis d34ac39d68
Pull object names from model definitions in CRUD views 2022-11-04 07:20:42 +00:00
Mark Veidemanis 0c52cbd0f8
Use new call helper for all OANDA commands 2022-11-04 07:20:12 +00:00
Mark Veidemanis c773b93675
Remove unnecessary template pack 2022-11-04 07:20:54 +00:00
Mark Veidemanis 52216df5a4
Add Python history to gitignore 2022-11-04 07:20:25 +00:00
Mark Veidemanis b36791d56b
Simplify schema and error handling 2022-11-04 07:20:55 +00:00
Mark Veidemanis 04a87c1da6
Add some comments about the exchange variables 2022-11-04 09:15:09 +00:00
Mark Veidemanis 7770a3844c
Make failing during validation or conversion configurable 2022-11-04 08:58:01 +00:00
Mark Veidemanis 74c46f2647
Watch for changes in HTML files too 2022-11-03 07:20:30 +00:00
Mark Veidemanis f90f388e87
Add ripsecrets to pre-commit hook 2022-11-03 07:20:30 +00:00
Mark Veidemanis 65f650f1ac
Check if hook exists 2022-11-03 15:59:27 +00:00
Mark Veidemanis d319769fe0
Finish porting data structures for positions 2022-11-02 19:09:50 +00:00
Mark Veidemanis 48858bf20b
Fix price parsing 2022-11-02 19:04:05 +00:00
Mark Veidemanis 1f75da40af
Set account ID in exchange library instead of the view 2022-11-02 18:28:31 +00:00
Mark Veidemanis 5cb7d08614
Convert API responses with Glom 2022-11-02 18:25:34 +00:00
Mark Veidemanis 396d838416
Change positions fields 2022-11-02 18:24:56 +00:00
Mark Veidemanis 8ee56b0e37
Begin implementing pydantic validation for OANDA 2022-10-31 08:58:08 +00:00
Mark Veidemanis c15ae379f5
Wrap API calls in helper and validate response 2022-10-30 19:11:07 +00:00
Mark Veidemanis f22fcfdaaa
Implement stub functions for OANDA 2022-10-30 11:21:48 +00:00
Mark Veidemanis f6fa9bdbb6
Begin implementing OANDA 2022-10-30 10:57:53 +00:00
Mark Veidemanis 49a3737a72
Implement helper for deleting all database objects 2022-10-30 10:57:41 +00:00
Mark Veidemanis 2a876a20ba
Swap modals with innerHTML 2022-10-29 14:24:09 +01:00
Mark Veidemanis 31a77e88ad
Remove some print statements 2022-10-29 14:05:48 +01:00
Mark Veidemanis 6902665ffb
Update tables when objects are changed 2022-10-29 14:05:01 +01:00
Mark Veidemanis c685b6d25f
Simplify DB object management with Django CRUD helpers 2022-10-29 12:43:13 +01:00
Mark Veidemanis 8f705e2f25
Add more links to home page 2022-10-28 20:52:46 +01:00