autoborrow: add json tags

This commit is contained in:
c9s 2022-06-02 01:53:22 +08:00
parent 34e1b642d1
commit f87a0ab316
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -312,12 +312,12 @@ func (s *Strategy) handleBinanceBalanceUpdateEvent(event *binance.BalanceUpdateE
}
type MarginAction struct {
Exchange types.ExchangeName
Action string
Asset string
Amount fixedpoint.Value
MarginLevel fixedpoint.Value
MinMarginLevel fixedpoint.Value
Exchange types.ExchangeName `json:"exchange"`
Action string `json:"action"`
Asset string `json:"asset"`
Amount fixedpoint.Value `json:"amount"`
MarginLevel fixedpoint.Value `json:"marginLevel"`
MinMarginLevel fixedpoint.Value `json:"minMarginLevel"`
}
func (a *MarginAction) SlackAttachment() slack.Attachment {