@ccxt-flux/sidecar-client
v0.1.0-alpha.2
Published
Thin TypeScript client for the ccxt-flux sidecar.
Maintainers
Readme
TypeScript Client
Thin TypeScript client for the versioned ccxt-flux-sidecar HTTP/SSE surface.
For the full Bybit integration flow, see docs/exchanges/BYBIT.md.
This package metadata is prepared for future npm publication, but it is not published yet.
Example:
import { SidecarClient } from "@ccxt-flux/sidecar-client";
const client = new SidecarClient("http://127.0.0.1:9001");
const streams = await client.listStreams();
const streamId = streams.streams[0].id;
console.log(await client.streamHealth(streamId));
const stream = client.streamOrderbooks(streamId, (event) => {
console.log(event.book.symbol, event.book.sequence);
});
setTimeout(() => stream.close(), 30_000);