c9s
|
d0e4a5e65c
|
move addTrade lock section
|
2021-05-16 17:05:12 +08:00 |
|
c9s
|
e636a5008d
|
replace Exchange field type with ExchangeName
|
2021-05-16 17:02:23 +08:00 |
|
c9s
|
c9cdf31df1
|
add pnl emoji
|
2021-05-16 01:16:03 +08:00 |
|
c9s
|
942eaac659
|
improve message formatting
|
2021-05-16 00:45:08 +08:00 |
|
c9s
|
1f449eca7f
|
implement SlackAttachment interface on Position
|
2021-05-15 23:50:03 +08:00 |
|
c9s
|
531799bdfb
|
use mutex composition since we may lock from out side
|
2021-05-15 10:05:39 +08:00 |
|
c9s
|
8071559f99
|
position: use pointer receiver
|
2021-05-15 10:02:04 +08:00 |
|
c9s
|
a636cdaec9
|
add mutex to Position since position could be changed from 2 goroutine
|
2021-05-15 10:01:41 +08:00 |
|
c9s
|
3867fdde91
|
add stringer interface to Position
|
2021-02-16 16:40:11 +08:00 |
|
c9s
|
38bac10050
|
consider fee calculation
|
2021-01-21 00:49:01 +08:00 |
|
c9s
|
bfc8e511d0
|
simplify average cost calculation
|
2021-01-20 23:46:22 +08:00 |
|
c9s
|
16aa070120
|
assign base/quote currency to the position struct
|
2021-01-20 23:08:57 +08:00 |
|
c9s
|
8a08c406c3
|
check symbol for the position update
|
2021-01-20 17:37:23 +08:00 |
|
c9s
|
48dd697ce3
|
handling short-to-long and long-to-short position
|
2021-01-20 17:35:58 +08:00 |
|
c9s
|
c2a27b031e
|
init position with loaded symbols
|
2021-01-20 16:30:44 +08:00 |
|
c9s
|
09d712416f
|
add json struct tags
|
2021-01-20 16:15:34 +08:00 |
|
c9s
|
617f5119fd
|
test trade profit calculation
|
2021-01-20 16:14:02 +08:00 |
|
c9s
|
34148948ab
|
add position and its tests
|
2021-01-20 16:08:14 +08:00 |
|