Commit Graph

12 Commits

Author SHA1 Message Date
c9s
bdfb5d08aa
risk: pull out max quantity variable 2022-07-26 11:47:07 +08:00
c9s
a609c0606a
risk: fix margin level prec assertion 2022-07-22 15:06:10 +08:00
c9s
4b7126ce41
risk: add doc comment for MarginLevel method 2022-07-22 14:54:25 +08:00
c9s
a9f9fc4e5e
risk: add margin level calculator 2022-07-22 14:53:17 +08:00
c9s
b53da177c2
risk: add test case for account calculator 2022-07-22 14:42:30 +08:00
c9s
3cf5175baa
risk: make calculateAccountNetValue public 2022-07-22 13:36:03 +08:00
c9s
a1387bb4dd
risk: move spot condition to the top 2022-07-22 12:04:43 +08:00
c9s
36cfaa924d
risk: move leverage quantity calculation to the risk package 2022-07-22 11:55:24 +08:00
c9s
5bbccacc89
risk: rename func 2022-07-14 00:07:49 +08:00
c9s
c7424479bb
risk: add tests 2022-07-14 00:03:47 +08:00
c9s
8985a7a635
risk: add risk function tests 2022-07-13 23:56:22 +08:00
c9s
7932688aa7
add risk calculator functions 2022-07-13 23:45:47 +08:00