Giulio De Pasquale
20b838f635
hardcoded leverage to Bitfinex connector response
2021-02-22 00:23:40 +00:00
Giulio De Pasquale
2aa9bcdb95
removed commented trailingstop strategy
2021-02-21 18:41:40 +00:00
Giulio De Pasquale
3adceef1e9
changed log messaged
2021-02-21 18:38:20 +00:00
Giulio De Pasquale
4592d755aa
using order manager order API to submit limit orders. added position id to metadata
2021-02-20 23:25:54 +00:00
Giulio De Pasquale
ae54166ea2
removed leverage debug msg
2021-02-20 22:23:03 +00:00
Giulio De Pasquale
b5007c8f95
set leverage to 15
2021-02-20 22:19:00 +00:00
Giulio De Pasquale
634f86c6fa
orders are now per orderform and not per order manager. current order strategy is set only when executing limit order on profit by trailing stop
2021-02-20 22:17:53 +00:00
Giulio De Pasquale
669bd70946
added todo
2021-02-20 22:16:57 +00:00
Giulio De Pasquale
2d81358fa0
implemented stop order for trailing stop. position strategy now receives fees information. added fees API to client.
2021-02-20 21:01:32 +00:00
Giulio De Pasquale
386137f16e
fixed Display for Stop order. changed field to stop_price for StopLimit
2021-02-20 21:00:50 +00:00
Giulio De Pasquale
35d967e6d9
modified event constructor, added builder method with_metadata.
...
code cleanup
2021-02-20 19:27:15 +00:00
Giulio De Pasquale
7252dd4f8b
print errors when setting up env and logger
2021-02-19 17:28:21 +00:00
23e5f2fbae
Merge pull request 'web sources removed' ( #12 ) from rust into master
...
Reviewed-on: https://giugl.io/gitea/peperunas/rustico/pulls/12
2021-02-18 10:46:25 +01:00
bc78d3247b
Merge branch 'master' into rust
2021-02-18 10:45:09 +01:00
Giulio De Pasquale
96c694c2a3
removed web sources
2021-02-18 09:44:22 +00:00
6960bb85a2
Merge pull request 'rust' ( #10 ) from rust into master
...
Reviewed-on: https://giugl.io/gitea/peperunas/rustico/pulls/10
2021-02-18 10:42:15 +01:00
Giulio De Pasquale
3f5e6e3a70
added frontend components
2021-02-18 09:37:48 +00:00
Giulio De Pasquale
2d3d1ca69c
using right platform when sending Limit order
2021-02-17 16:32:47 +00:00
Giulio De Pasquale
881defa081
enriched orderform in EnforceMarket
2021-02-17 16:32:08 +00:00
Giulio De Pasquale
848043d758
changed signature of with_... functions to get Option<T>
2021-02-17 16:31:47 +00:00
Giulio De Pasquale
c7c4dd5902
changed visibility of ActiveOrder's fields. implemented getters
2021-02-17 16:23:34 +00:00
Giulio De Pasquale
53fb8781b3
added trailingstop strategy (useless) but modified hiddentrailing stop: implemented default for both strategies.
...
additionally, the order manager now tries to pair active orders with active positions. order managers now have more APIs such as close orders associated with positions and submit order
2021-02-17 15:59:32 +00:00
Giulio De Pasquale
762485db3a
renamed Message into ActionMessage
2021-02-17 15:57:52 +00:00
Giulio De Pasquale
7f848223b9
renamed strategies
2021-02-16 18:18:39 +00:00
Giulio De Pasquale
6e848c35e3
early exit on empty positions
2021-02-16 18:17:48 +00:00
Giulio De Pasquale
70c2dcde17
added deriv test usdt/btc
2021-02-16 18:17:30 +00:00
Giulio De Pasquale
e133092831
Thank you Clippy!
2021-02-13 15:52:50 +00:00
Giulio De Pasquale
597dc57bd5
cargo fix
2021-02-13 15:31:19 +00:00
Giulio De Pasquale
127ffaa1b9
moved amount out of OrderKind and into OrderForm. leverage detection for open positions
2021-02-13 15:29:00 +00:00
Giulio De Pasquale
ce8eec71ff
fetch account fees on-demand and apply them to position p/l
2021-02-13 14:58:15 +00:00
Giulio De Pasquale
b46aec3395
use dotenv
2021-02-13 13:49:06 +00:00
Giulio De Pasquale
e210808983
added support for derivative trading in connectors. stub for fees calculation. hardcoded leverage 15 in order submission
2021-02-12 14:58:43 +00:00
Giulio De Pasquale
613b314631
added derivative symbols
2021-02-12 14:57:37 +00:00
Giulio De Pasquale
2acc81cd75
remodeled percentage calculation in strategy
2021-02-12 14:57:23 +00:00
Giulio De Pasquale
6c409ac9fd
added trading fees model
2021-02-12 14:56:50 +00:00
Giulio De Pasquale
7ba90a72c0
code reorganization
2021-02-12 14:56:30 +00:00
Giulio De Pasquale
054b3b6659
cargo fix and reformatting
2021-01-28 20:07:26 +00:00
Giulio De Pasquale
d383328ebb
implemented trades from orders and orders history
2021-01-28 20:06:11 +00:00
Giulio De Pasquale
c930dce131
support for balance transfer API (bitfinex)
2021-01-27 20:18:06 +00:00
Giulio De Pasquale
7357d48115
don't crash if no open positions are found
2021-01-27 17:12:20 +00:00
Giulio De Pasquale
d445dc137a
removed order manager update from pairmanager update phase
2021-01-27 17:07:44 +00:00
Giulio De Pasquale
dd3786486c
formatting
2021-01-27 17:04:37 +00:00
Giulio De Pasquale
6ed510f2cc
cargo fix
2021-01-27 17:01:26 +00:00
Giulio De Pasquale
382f9c8106
order manager on its own
2021-01-27 17:00:47 +00:00
Giulio De Pasquale
7230b7c67d
filter active orders based on pair
2021-01-26 17:13:14 +00:00
Giulio De Pasquale
fbdb481aa0
positionclosed eventkind
2021-01-26 17:12:39 +00:00
Giulio De Pasquale
ac1fd3669f
removed extra function for orderstrategy (for now). order manager update is now working
2021-01-26 17:01:58 +00:00
Giulio De Pasquale
ef618ad754
removed extra api keys
2021-01-26 16:19:10 +00:00
Giulio De Pasquale
15c1d5b84a
added polka dot
2021-01-26 16:19:00 +00:00
Giulio De Pasquale
99904683a1
min profit 0.4
2021-01-26 16:18:50 +00:00