Kraken order book stream - subscribe to multiple currency pairs by one messge

Open
#3,882 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start at info.bitrich.xchangestream.core.StreamingExchange#connect and trace how its ProductSubscription is converted into Kraken WebSocket subscribe messages. Review Kraken's multi-channel subscribe documentation, then verify that multiple currency pairs can be sent in one message and no longer trigger unnecessary rate-limit pressure.

Written by the indexing model from the issue text.

Description

Current implementation supports only one currency pair subscribe per one sent message via websocket. In case of subscribing to many currency pairs, Kraken ws soon hits rate limits.

Kraken ws supports subscribe to multiple channels by one message https://docs.kraken.com/websockets/#message-subscribe

It would be nice to be able to use this ability. I guess info.bitrich.xchangestream.core.StreamingExchange#connect with ProductSubscription argument is good place to implement this.

Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
21

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knowm/XChange

All issues in knowm/XChange

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.