c9s
|
5515f588e3
|
all: add parameter index to the Last method
|
2023-05-31 19:35:44 +08:00 |
|
Andy Cheng
|
d5e37f03e2
|
feature/dynamic_*: move dynamic_* to risk/dynamicrisk package
|
2022-12-16 11:51:52 +08:00 |
|
Andy Cheng
|
095eb9c134
|
feature/dynamic_exposure: undo move dynamic_exposure and dynamic_spread
|
2022-12-15 17:25:56 +08:00 |
|
Andy Cheng
|
5b017cd361
|
feature/dynamic_spread: rename DynamicSpreadAmp to DynamicAmpSpread
|
2022-12-15 17:12:04 +08:00 |
|
Andy Cheng
|
5c7c125c99
|
feature/dynamic_spread: move to risk package
|
2022-12-15 17:09:47 +08:00 |
|
Andy Cheng
|
1002c13062
|
feature/dynamic_exposure: move to risk package
|
2022-12-15 17:08:35 +08:00 |
|
c9s
|
8dca24e9ee
|
all: solve cyclic import
|
2022-09-09 17:40:17 +08:00 |
|
c9s
|
2e95246687
|
bbgo: add OpenPosition method
|
2022-09-09 13:57:39 +08:00 |
|
Andy Cheng
|
3da86556b5
|
risk: AvailableQuote() should use Net() to get net value
|
2022-08-13 13:28:45 +08:00 |
|
Andy Cheng
|
737f6e99ba
|
strategy/supertrend: use CalculateQuoteQuantity() in strategy
|
2022-08-05 16:28:42 +08:00 |
|
Andy Cheng
|
b564e69f82
|
strategy/supertrend: add CalculateQuoteQuantity()
|
2022-08-05 15:59:20 +08:00 |
|
Andy Cheng
|
dba1102588
|
strategy/supertrend: rename AvailableValue() to AvailableQuote()
|
2022-08-05 15:38:19 +08:00 |
|
Andy Cheng
|
eb57e80119
|
strategy/supertrend: different qty calculation for spot and leveraged
|
2022-08-05 15:11:15 +08:00 |
|
c9s
|
076f196621
|
risk: return quantity directly if it's not zero
|
2022-07-27 01:29:53 +08:00 |
|
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 |
|