Skip to content

Commit

Permalink
fixup! fixup! Kraken: Handle Errors field in futures response
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Aug 16, 2024
1 parent e719881 commit b3c0268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchanges/kraken/kraken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,9 @@ func TestGetCharts(t *testing.T) {
require.NoError(t, err)
cp.Delimiter = "_"
resp, err := k.GetFuturesCharts(context.Background(), "1d", "spot", cp, time.Time{}, time.Time{})

require.NoError(t, err)
require.NotEmpty(t, resp.Candles)

end := time.UnixMilli(resp.Candles[0].Time)
_, err = k.GetFuturesCharts(context.Background(), "1d", "spot", cp, end.Add(-time.Hour*24*7), end)
require.NoError(t, err)
Expand Down

0 comments on commit b3c0268

Please sign in to comment.