question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kraken only receives one ticker update, then nothing afterwards

See original GitHub issue

Exchange Kraken

Subscription type Ticker

Describe the bug Only one update is received, no subsequent updates occur even though the data is updating on the exchange.

To Reproduce

   const ccxws = require('ccxws');
    const client = new ccxws.kraken({
      reconnectIntervalMs: 15 * 60 * 1000
    });
    client.on('ticker', (ticker, market) => {
      console.log('ccxws TICKER update, market=', market, 'ticker=', ticker);
    });
 
    // give it a moment to load the symbols map internally
    await timeout(3000);
    const ccxwsMarket = { id: 'XXMRXXBT', base: 'XMR', quote: 'BTC' };
    client.subscribeTicker(ccxwsMarket);

Expected behavior A new ticker update event is received on every change of the data. Currently only the first ticker is received when I run the example above.

Additional context I added some logs to the ccxws kraken-client processMsg() method, and it appears to only be receiving heartbeat messages after the first initial ticker payload. This would imply that the exchange itself isn’t sending the data, but I find that hard to believe. Kraken API status page shows all systems functional.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
bmancini55commented, Jul 28, 2020

@nudabagana the Kraken order book issue has been reported in the past and we thought it was addressed but there may have been a regressioon introduced with #155. I’ll create another issue to track the issue there as an immediate priority.

@evan-coygo if you’ve found a suitable workaround for the ticker issue, I’d like to close this issue and PR. I’m also happy to create a new feature issue to explore either a top of book event or wiring it into the ticker event for the exchanges where it is supported.

0reactions
evan-coygocommented, Jul 28, 2020

yes I’ll go ahead and close it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kraken REST API Documentation
Our REST API is organised into publicly accessible endpoints (market data, exchange status, etc.), and private authenticated endpoints (trading, funding, user ...
Read more >
Submit a request - Kraken Support
If you'd like real-time help from one of our support specialists, open a chat or give us a call. Please choose your issue...
Read more >
Kraken Terminal trading interface errors
What it means: Too many requests have been made to the exchange via Kraken Terminal. ‌What you can do: Try again after a...
Read more >
Kraken Websockets API 1.9.0 documentation
All messages sent and received via WebSockets are encoded in JSON format ... not be sent in book snapshot messages, but rather only...
Read more >
Why has my deposit or withdrawal not arrived? - Kraken Support
If your deposit to Kraken does not arrive within the estimated time frame, here are the steps to take: Check if there is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found