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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user