Commit Graph

33 Commits

Author SHA1 Message Date
Giulio De Pasquale
ac8458723b super() 2020-12-21 12:02:16 +00:00
Giulio De Pasquale
00a100f618 added method to calculate maximum order amount 2020-12-21 12:00:33 +00:00
Giulio De Pasquale
13a6fb087e return none if no position in previous tick 2020-12-19 21:46:15 +00:00
Giulio De Pasquale
6c6d85ba78 added get_balance_delta function in wrapper 2020-12-19 10:53:55 +00:00
Giulio De Pasquale
a0c1a58d39 don't trigger events and state callbacks in strategy evaluation 2020-12-17 10:50:08 +00:00
Giulio De Pasquale
a8e3206584 returning dict and assigning it... 2020-12-17 09:56:27 +00:00
Giulio De Pasquale
2a6dc24300 retrying bitfinex api operations 2020-12-16 15:06:16 +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
c19530badb added trailing stop 2020-12-16 13:36:20 +00:00
Giulio De Pasquale
f9f14df519 implemented close position event and backend algorithm. 2020-12-16 12:32:16 +00:00
Giulio De Pasquale
780aae0fb1 extracted pos_to_json 2020-12-16 11:28:48 +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
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
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
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
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
Giulio De Pasquale
02678fd8e6 new event first connect to send previous data on first connect 2020-12-13 20:40:55 +00:00
Giulio De Pasquale
9955ddf08e sending new_ticks event 2020-12-10 16:29:26 +00:00
Giulio De Pasquale
dcd91eaab8 Merge branch 'refactor' of ssh://giugl.io.gitea:10022/peperunas/gkaching into refactor 2020-12-07 21:38:22 +00:00
Giulio De Pasquale
074de41e57 raising exceptions if keys are not defined 2020-12-07 12:27:32 +00:00
Giulio De Pasquale
8391cec49e added any_state/event in handler 2020-12-04 12:13:13 +00:00
Giulio De Pasquale
c7a582e6c5 heavy reorganization 2020-11-30 14:38:28 +00:00
Giulio De Pasquale
7521756115 started refactoring 2020-11-30 09:12:43 +00:00