Commit Graph

169 Commits

Author SHA1 Message Date
236138a822 binding function works now for short and long
with and without leverage
2019-01-08 16:52:04 +01:00
8f35e767bd Work on asset binding when creating orders 2019-01-08 09:24:08 +01:00
2d7feed929 Work on correct calculation of available money with margin 2019-01-05 11:05:18 +01:00
a2e5143c64 more work on stop loss 2019-01-04 19:09:20 +01:00
b5c6d45f66 Fixed stop loss calculation 2019-01-04 08:29:45 +01:00
b193d69f52 More work on stop loss 2019-01-03 18:59:17 +01:00
fcdae01a8b Added ERROR status and message String with getter and setter 2019-01-02 20:03:55 +01:00
0cedbbc3d4 Work on stop loss 2019-01-01 19:20:35 +01:00
3f43ff6f29 Added some java doc 2019-01-01 14:48:46 +01:00
a1c1196ba1 no account checking (for test only) 2019-01-01 14:23:01 +01:00
0b62def911 Opens new windows for second asset(for test only) 2019-01-01 14:22:38 +01:00
0177510961 display caclulated stop loss (for test only) 2019-01-01 14:21:41 +01:00
641285fafb function to calculate stop loss 2019-01-01 14:20:41 +01:00
215fb5e074 renamed to getFinalBalance
Introduced function GetAssetDebt
2018-12-31 23:34:57 +01:00
22e77665ee Test stuff 2018-12-31 14:12:14 +01:00
f7c2b6266e Margin display 2018-12-31 14:12:02 +01:00
3a01f672eb Interface for get asset pair 2018-12-31 14:11:40 +01:00
3853beac19 Margin stuff 2018-12-31 14:11:18 +01:00
d661de2892 No change 2018-12-31 14:10:43 +01:00
6eb9ab8ff9 Proxy funkction for getAssetPair by assets 2018-12-31 14:09:18 +01:00
a9ad772112 creates account with world parameter 2018-12-31 14:08:44 +01:00
e99aa62c59 Stuff to calculate margin and value 2018-12-31 14:08:06 +01:00
401b6ce2f9 Constructors are protected 2018-12-31 14:07:37 +01:00
904b4a1016 Cunstruct account with world parameter 2018-12-31 14:06:18 +01:00
844a57df27 New function to asset pair by assets 2018-12-31 14:05:02 +01:00
b5cf77abbd Added @override annotations 2018-12-29 21:57:49 +01:00
ed07bd5819 Added @override annotations 2018-12-29 21:02:01 +01:00
cb01b886dc More functions defined in interface 2018-12-29 21:01:30 +01:00
882c84adf2 Order does not check decimals anymore 2018-12-29 20:02:58 +01:00
54d4b5baee Introduced Asset interface 2018-12-29 14:31:47 +01:00
6e86a45389 creates two accounts (testing only) 2018-12-29 13:31:27 +01:00
9fac7e41b7 Opens history dialog (for testing) 2018-12-29 13:31:08 +01:00
9d5f60291f Gui to display quote history 2018-12-29 13:30:36 +01:00
9f829b0554 Handles collision of two unlimited orders now 2018-12-29 13:30:07 +01:00
3bbcd63da9 Contains also order type now 2018-12-29 13:28:29 +01:00
bebb0c1f12 Introduced Order.Addition 2018-12-29 13:27:42 +01:00
500204819c Fixed formatting 2018-12-29 11:14:04 +01:00
0c5b7d5a02 reintroduced the finishTrade function 2018-12-29 11:01:49 +01:00
f7601aea3a Refined getBestPrice function 2018-12-29 10:35:47 +01:00
cadc910f99 Determines order type and compacts history 2018-12-29 05:25:42 +01:00
7b73b8b836 moved SimpleTrader to world 2018-12-29 01:41:45 +01:00
ad83e00fd3 listener for account changes implemented 2018-12-29 01:40:58 +01:00
451c064268 Modified to display two accounts from simple trader
for test purpose
2018-12-29 01:40:07 +01:00
5310b14863 Heavy work on execute orders 2018-12-29 01:39:38 +01:00
f0c4d4f19c public getQuoteHistory method added. 2018-12-29 01:38:53 +01:00
7f40700cc0 Moved to package world for test purpose. 2018-12-29 01:38:14 +01:00
341a888d6f Constructor to enforce an id 2018-12-29 01:37:38 +01:00
1336a7dbc5 made world protected, so TradingEngine can access it from outer 2018-12-29 01:36:57 +01:00
20ed896486 constructor to initialize only with asset 2018-12-29 01:36:02 +01:00
361a4788a0 new functions for adding and subtracting asset packs 2018-12-29 01:35:18 +01:00