mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
types: add db tag
This commit is contained in:
parent
d72b56f51f
commit
2dc825f654
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user