Commit Graph

97 Commits

Author SHA1 Message Date
Giulio De Pasquale
0d68b2684d fixed table color on break even 2020-12-16 15:05:51 +00:00
Giulio De Pasquale
ca2c62739d initializing tick dictionary in status. bordello of fixes 2020-12-16 14:29:10 +00:00
Giulio De Pasquale
f7ea135cae removed wrong statement 2020-12-16 13:36:48 +00:00
Giulio De Pasquale
c19530badb added trailing stop 2020-12-16 13:36:20 +00:00
Giulio De Pasquale
912c4db2e2 added on_close event handler 2020-12-16 13:30:24 +00:00
Giulio De Pasquale
7bbd99ba97 added dynamic title based on current price 2020-12-16 12:57:29 +00:00
Giulio De Pasquale
f421e3b41c added react-helmet 2020-12-16 12:52:12 +00:00
Giulio De Pasquale
f9f14df519 implemented close position event and backend algorithm. 2020-12-16 12:32:16 +00:00
Giulio De Pasquale
f6a318257a detecting new events. events UI not working yet. fixed positions and events components show on demand 2020-12-16 12:02:50 +00:00
Giulio De Pasquale
4114333632 added positions on connect event. new socketio event, new_event 2020-12-16 11:44:12 +00:00
Giulio De Pasquale
ff0796024a removed price graph intestation 2020-12-16 11:39:25 +00:00
Giulio De Pasquale
14a5458c52 added contextual background 2020-12-16 11:38:58 +00:00
Giulio De Pasquale
780aae0fb1 extracted pos_to_json 2020-12-16 11:28:48 +00:00
Giulio De Pasquale
a20a06b3fe receiving first_connect message and rendering components on demand 2020-12-16 11:28:21 +00:00
Giulio De Pasquale
a7d888f00a renamed newdata 2020-12-16 11:27:53 +00:00
Giulio De Pasquale
0f82cd9d8c positiontable renders from props and not from an internal state 2020-12-16 11:27:35 +00:00
Giulio De Pasquale
74152a9fb9 renamed newtickdata to newtickmessage. added firstconnectmessage. 2020-12-16 11:27:10 +00:00
Giulio De Pasquale
dc382cd2cd modified on_close following the changes in the frontend event 2020-12-16 10:19:15 +00:00
Giulio De Pasquale
52124ee64f defined positionclosemessage type 2020-12-16 10:18:57 +00:00
Giulio De Pasquale
f35ab007d9 added print in stubs instead of raising exception 2020-12-16 10:13:37 +00:00
Giulio De Pasquale
a958d2f120 reordered methods in bfxbot. added stubs of close order and close position 2020-12-16 10:12:10 +00:00
Giulio De Pasquale
5544d681f4 added positions base prices on plot 2020-12-16 10:08:11 +00:00
Giulio De Pasquale
2c6aaadc2f added amount to tables. removed test position. 2020-12-16 09:44:25 +00:00
Giulio De Pasquale
9ae8389f83 h_price_line to current_price_line 2020-12-16 09:40:45 +00:00
Giulio De Pasquale
dfdb2e46a9 modified position json function on socket emit 2020-12-16 09:37:14 +00:00
Giulio De Pasquale
054bb0dc04 removed test entry, sending close event on button 2020-12-16 09:36:42 +00:00
Giulio De Pasquale
55bfe8824b added str and repr for positionstate. returning pw on strategy apply 2020-12-16 09:36:15 +00:00
Giulio De Pasquale
2130f8acb9 added undefined state as default 2020-12-15 20:18:31 +00:00
Giulio De Pasquale
a7cdb2288d modified signature of positionwrapper 2020-12-15 20:16:56 +00:00
Giulio De Pasquale
e5726627ca modified strategy to pack a wrapper 2020-12-15 20:16:39 +00:00
Giulio De Pasquale
2a55f67c6d comment 2020-12-15 20:11:21 +00:00
Giulio De Pasquale
2f5259ebd2 refactored names in symbolstatus. now a strategy has to assemble a positionwrapper. raising exceptions if types are not as expected. 2020-12-15 20:10:51 +00:00
Giulio De Pasquale
3534aef408 added todo 2020-12-15 16:34:36 +00:00
Giulio De Pasquale
38d13c724b implemented trailingstopmetadata 2020-12-15 16:31:20 +00:00
Giulio De Pasquale
15cad71afc refactored positionwrapper. added on_new_tick for strategy. refactored names in symbolstatus 2020-12-15 16:31:04 +00:00
Giulio De Pasquale
672a55d229 added eventmetadata class 2020-12-15 16:15:44 +00:00
Giulio De Pasquale
2d7307a038 added metadata to event. refactored function names and order in classes 2020-12-15 16:11:11 +00:00
Giulio De Pasquale
a7b1d05029 changed visibility of bfxbot attributes. removed pid from event class. added while loop to avoid race condition on socket.io first_connect event 2020-12-15 15:52:57 +00:00
Giulio De Pasquale
f930a849f0 main code cleanup 2020-12-15 15:31:09 +00:00
Giulio De Pasquale
7fafdc6293 removed old code 2020-12-15 15:16:16 +00:00
Giulio De Pasquale
e1323c5961 fixed footer margins. started adding events listgroup, events are not shown correctly yet 2020-12-14 20:26:14 +00:00
Giulio De Pasquale
e57daf3760 added base price to position table. plot code cleanup 2020-12-14 19:04:04 +00:00
Giulio De Pasquale
2cbb21f6cf code cleanup 2020-12-14 18:52:43 +00:00
Giulio De Pasquale
d72421eeb2 improved plot with dashed line and better formatting 2020-12-14 16:02:01 +00:00
Giulio De Pasquale
1718c37751 added dashed line on last price 2020-12-14 15:37:12 +00:00
Giulio De Pasquale
dfc9adcd9f fixed floating point numbers formatting in table 2020-12-14 14:58:34 +00:00
Giulio De Pasquale
ca1532fb8b first working commit for open positions table 2020-12-14 14:50:31 +00:00
Giulio De Pasquale
9d9565a9af accessing position.id instead of pid 2020-12-14 14:50:04 +00:00
Giulio De Pasquale
d1e9be15a1 parsing str to symbol when adding new positions 2020-12-14 14:49:51 +00:00
Giulio De Pasquale
3e45135809 reorganized layout with navbar and two cols 2020-12-14 13:55:33 +00:00