Subscribing to several order books takes too long #9

Open
opened 2023-02-12 03:07:36 -08:00 by giust · 0 comments
giust commented 2023-02-12 03:07:36 -08:00 (Migrated from github.com)

Hi,

I'm subscribing to many orderbooks at once (more than 100) using this sample code

const book100 = await kraken.ws.book({depth: 100})
// live book construction from "snapshot", "ask", and "bid" events.
.on("mirror", (mirror, pair) => console.log(mirror, pair))
.on("error", (error, pair) => console.log(error, pair))
// resubscribes if there is a checksum validation issue (emits statuses).
.on("status", (status) => console.log(status)
.subscribe("XBT/USD", "ETH/USD", .....); // subscribe to multiple pairs at once

Most of them subscribe within a few seconds, but a few take some minutes. Any idea what could be causing this delay?

Thank you

Hi, I'm subscribing to many orderbooks at once (more than 100) using this sample code const book100 = await kraken.ws.book({depth: 100}) // live book construction from "snapshot", "ask", and "bid" events. .on("mirror", (mirror, pair) => console.log(mirror, pair)) .on("error", (error, pair) => console.log(error, pair)) // resubscribes if there is a checksum validation issue (emits statuses). .on("status", (status) => console.log(status) .subscribe("XBT/USD", "ETH/USD", .....); // subscribe to multiple pairs at once Most of them subscribe within a few seconds, but a few take some minutes. Any idea what could be causing this delay? Thank you
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jpcx/node-kraken-api#9
There is no content yet.