Price reminder and init approval

* Start price reminder grain

* Add config and init grain at startup

* Save init wallet when already init
This commit is contained in:
Oda
2025-09-13 02:29:14 +07:00
committed by GitHub
parent da50b30344
commit 56b4f14eb3
69 changed files with 2373 additions and 701 deletions

View File

@@ -9,7 +9,7 @@ public static class PriceExtensions
{
public static List<Candle> GetCandles(this Round[] prices, Timeframe timeframe, Ticker ticker)
{
int timezoneOffset = - (int)(new DateTimeOffset(DateTime.UtcNow).Offset.TotalSeconds);
int timezoneOffset = -(int)(new DateTimeOffset(DateTime.UtcNow).Offset.TotalSeconds);
var CHART_PERIODS = new Dictionary<Timeframe, int>
{
{ Timeframe.FiveMinutes, 60 * 5 },
@@ -53,6 +53,7 @@ public static class PriceExtensions
h = Math.Max(o, c);
l = Math.Min(o, c);
}
c = decimal.Parse(current.Value);
h = Math.Max(h, c);
l = Math.Min(l, c);
@@ -69,7 +70,7 @@ public static class PriceExtensions
Low = x.Low,
Timeframe = x.Timeframe,
Exchange = TradingExchanges.Evm,
Ticker = ticker.ToString()
Ticker = ticker
}).ToList();
}
}
}