You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
421 B
20 lines
421 B
package vmts |
|
|
|
import ( |
|
"sig-pub/pkg/config" |
|
"sig-pub/pkg/types" |
|
"testing" |
|
"time" |
|
) |
|
|
|
var test_addr = "http://127.0.0.1:8428" |
|
|
|
func TestGetRangeKline(t *testing.T) { |
|
vmdb := NewVictoriaMetricsTSDB(config.VictoriaMetricsConfig{Addr: test_addr}) |
|
inst := types.TradeInstance{ |
|
InstId: "BTC_USDT", |
|
Exchange: types.ExchangeOKX, |
|
} |
|
|
|
vmdb.GetRangeKline(inst, types.Interval1m, 1753368047691, time.Now().UnixMilli()) |
|
}
|
|
|