[]Route{
{"GET", []gin.HandlerFunc{GetMarketConfig}, "/:name"},
{"POST", []gin.HandlerFunc{UpdateMarketConfig}, "/:name/update"},
+ {"GET", []gin.HandlerFunc{GetMarketBalance}, "/:name/balance"},
},
},
}
RunQuery(query, c)
}
+func GetMarketBalance(c *gin.Context) {
+ query := &MarketBalanceQuery{}
+
+ query.In.User = GetUser(c)
+ query.In.Market = c.Param("name")
+ query.In.Currency = c.Query("currency")
+
+ RunQuery(query, c)
+}
+
func UpdateMarketConfig(c *gin.Context) {
query := &UpdateMarketConfigQuery{}