diff --git a/internal/configs/strategy/market.go b/internal/configs/strategy/market.go index f5af1c5..1278fe4 100644 --- a/internal/configs/strategy/market.go +++ b/internal/configs/strategy/market.go @@ -6,15 +6,14 @@ const ( symbolBNB = "BNBUSDT" symbolTON = "TONUSDT" symbolXRP = "XRPUSDT" + symbolSOL = "SOLUSDT" ) var ( - TopPriceSymbols = []string{symbolBTC, symbolETH, symbolBNB, symbolTON, symbolXRP} + TopPriceSymbols = []string{symbolBTC, symbolETH, symbolBNB, symbolTON, symbolXRP, symbolSOL} ) const ( FundRateBuyThreshold = -0.001 FundRateSellThreshold = 0.00077 - - LiquidInfPrice = 1000_000_000 ) diff --git a/internal/services/tele/view/price.go b/internal/services/tele/view/price.go index 9aa6560..e5291c8 100644 --- a/internal/services/tele/view/price.go +++ b/internal/services/tele/view/price.go @@ -37,13 +37,13 @@ func RenderPrice(price float64) string { func RenderOnPriceMessage(symbol string, spotPrice float64, futurePrice float64, fundrate float64, fundtime int64, marginRate float64) string { return fmt.Sprintf( - "%s: %s\n"+ - "Fund rate: %.4f%% %s in %s\n"+ - "Spot: %s\n"+ - "Margin rate: %.3f%%", - RenderSymbolInfo(symbol), RenderPrice(futurePrice), + "%s\n"+ + " Spot: %s - Future: %s \n"+ + " Fund rate: %.4f%% %s in %s\n"+ + " Margin rate: %.3f%%", + RenderSymbolInfo(symbol), + RenderPrice(spotPrice), RenderPrice(futurePrice), fundrate*100, IconOfFundingFeeDirection(fundrate), timex.CdMinuteStringTime(time.UnixMilli(fundtime)), - RenderPrice(spotPrice), marginRate*365*100, ) }