add trade and position service
This commit is contained in:
@@ -16,7 +16,7 @@ func UpdatePositionByTradeList(db *sql.DB) error {
|
||||
fmt.Printf("Failed to get the trades from db: %s", err)
|
||||
}
|
||||
|
||||
var TradeSum map[string]model.Position
|
||||
TradeSum := make(map[string]model.Position)
|
||||
|
||||
for _, trade := range trades {
|
||||
if trade.Type == model.Buy {
|
||||
|
||||
Reference in New Issue
Block a user