From 4dbda936bdc4dc86cae19bdf25b8b5fbbcb87244 Mon Sep 17 00:00:00 2001 From: Servio Date: Wed, 12 Mar 2025 13:00:43 -0300 Subject: [PATCH] remove println --- oracle/provider/gate_get_external_liquidity.go | 2 -- usecase/calculate_external_liquidity.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/oracle/provider/gate_get_external_liquidity.go b/oracle/provider/gate_get_external_liquidity.go index 97f87924..899b6d58 100644 --- a/oracle/provider/gate_get_external_liquidity.go +++ b/oracle/provider/gate_get_external_liquidity.go @@ -2,7 +2,6 @@ package provider import ( "encoding/json" - "fmt" "net/http" "strconv" @@ -35,7 +34,6 @@ func (p *GateProvider) GetExternalLiquidity( } //https://api.gateio.ws/api/v4/spot/order_book?currency_pair=BTC_USDT&limit=5000 route := p.endpoints.Rest + gateRestOrderBook + "?currency_pair=" + pair.Base + "_" + pair.Quote + "&limit=5000" - fmt.Println("external_liquidity_route", route) resp, err := http.Get(route) if err != nil { p.logger.Err(err). diff --git a/usecase/calculate_external_liquidity.go b/usecase/calculate_external_liquidity.go index 083ccb6f..aced9a00 100644 --- a/usecase/calculate_external_liquidity.go +++ b/usecase/calculate_external_liquidity.go @@ -94,7 +94,6 @@ func CalculateExternalLiquidityUseCase( lowestPrice = price } - fmt.Println("highestPrice, lowestPrice, baseAmount, quoteAmount", highestPrice, lowestPrice, baseAmount, quoteAmount) for _, ask := range depthData.Asks { price, err := math.LegacyNewDecFromStr(fmt.Sprintf("%f", ask[0])) if err != nil { @@ -111,11 +110,8 @@ func CalculateExternalLiquidityUseCase( baseAmount = baseAmount.Add(amount) highestPrice = price } - fmt.Println("highestPrice, lowestPrice, baseAmount, quoteAmount", highestPrice, lowestPrice, baseAmount, quoteAmount) baseDepth := (highestPrice.Quo(price)).Sub(math.LegacyOneDec()) quoteDepth := math.LegacyOneDec().Sub(lowestPrice.Quo(price)) - fmt.Println("baseDepth", baseDepth) - fmt.Println("quoteDepth", quoteDepth) // Use decimals externalLiquidityEntity := entity.ExternalLiquidity{