-
-
Save gloriousCode/7261f4e5311d95799aa70a30ac256f7a to your computer and use it in GitHub Desktop.
scientific study
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/gctcli/commands.go b/cmd/gctcli/commands.go | |
index 76efb3312..9a84799da 100644 | |
--- a/cmd/gctcli/commands.go | |
+++ b/cmd/gctcli/commands.go | |
@@ -3963,7 +3963,10 @@ func getHistoricCandles(c *cli.Context) error { | |
e := time.Now().Truncate(candleInterval) | |
s := e.Add(-candleInterval * time.Duration(candleRangeSize)) | |
- | |
+ fmt.Println(s) | |
+ fmt.Println(e) | |
+ fmt.Println(negateLocalOffset(s)) | |
+ fmt.Println(negateLocalOffset(e)) | |
client := gctrpc.NewGoCryptoTraderServiceClient(conn) | |
result, err := client.GetHistoricCandles(c.Context, | |
&gctrpc.GetHistoricCandlesRequest{ | |
diff --git a/engine/rpcserver.go b/engine/rpcserver.go | |
index e11cabca0..65ff5ae66 100644 | |
--- a/engine/rpcserver.go | |
+++ b/engine/rpcserver.go | |
@@ -2446,7 +2446,8 @@ func (s *RPCServer) GetHistoricCandles(ctx context.Context, r *gctrpc.GetHistori | |
Start: r.Start, | |
End: r.End, | |
} | |
- | |
+ log.Debugf(log.GRPCSys, "%v", start.In(time.Local)) | |
+ log.Debugf(log.GRPCSys, "%v", end.In(time.Local)) | |
var klineItem kline.Item | |
if r.UseDb { | |
klineItem, err = kline.LoadFromDatabase(r.Exchange, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment