Skip to content

Conversation

@MarcDahlem
Copy link
Contributor

  • allow exchanges to implement an OHLC download
  • OHLC downloads can be resumed, if the exchange & -implementation supports it

final Map<String, String> params = createRequestParamMap();
params.put("pair", marketId);
params.put("interval", intervalInMinutes);
if (resumeID != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Objects.nonNull(resumeID) ?

gson.fromJson(response.getPayload(), resultType);

final List errors = krakenResponse.error;
if (errors == null || errors.isEmpty()) {
Copy link

@Bisconcini Bisconcini May 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import static java.util.Objects.isNull;

( isNull(errors) || errors.isEmpty() ) more readable I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants