types: add db tag

This commit is contained in:
c9s 2022-05-30 15:58:00 +08:00
parent d72b56f51f
commit 2dc825f654
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -85,16 +85,16 @@ type MarginRepay struct {
} }
type MarginLiquidation struct { type MarginLiquidation struct {
AveragePrice fixedpoint.Value `json:"avgPrice"` AveragePrice fixedpoint.Value `json:"averagePrice" db:"average_price"`
ExecutedQuantity fixedpoint.Value `json:"executedQty"` ExecutedQuantity fixedpoint.Value `json:"executedQuantity" db:"executed_quantity"`
OrderID uint64 `json:"orderId"` OrderID uint64 `json:"orderID" db:"order_id"`
Price fixedpoint.Value `json:"price"` Price fixedpoint.Value `json:"price" db:"price"`
Quantity fixedpoint.Value `json:"qty"` Quantity fixedpoint.Value `json:"quantity" db:"quantity"`
Side SideType `json:"side"` Side SideType `json:"side" db:"side"`
Symbol string `json:"symbol"` Symbol string `json:"symbol" db:"symbol"`
TimeInForce TimeInForce `json:"timeInForce"` TimeInForce TimeInForce `json:"timeInForce" db:"time_in_force"`
IsIsolated bool `json:"isIsolated"` IsIsolated bool `json:"isIsolated" db:"is_isolated"`
UpdatedTime Time `json:"updatedTime"` UpdatedTime Time `json:"updatedTime" db:"updated_time"`
} }
// MarginHistory provides the service of querying loan history and repay history // MarginHistory provides the service of querying loan history and repay history