mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
risk: add doc comment for MarginLevel method
This commit is contained in:
parent
a9f9fc4e5e
commit
4b7126ce41
|
@ -140,6 +140,8 @@ func (c *AccountValueCalculator) NetValue(ctx context.Context) (fixedpoint.Value
|
|||
return accountValue, nil
|
||||
}
|
||||
|
||||
// MarginLevel calculates the margin level from the asset market value and the debt value
|
||||
// See https://www.binance.com/en/support/faq/360030493931
|
||||
func (c *AccountValueCalculator) MarginLevel(ctx context.Context) (fixedpoint.Value, error) {
|
||||
marginLevel := fixedpoint.Zero
|
||||
marketValue, err := c.MarketValue(ctx)
|
||||
|
|
Loading…
Reference in New Issue
Block a user