Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Support running in browser #17

Open
@sakhnyuk

Description

@sakhnyuk

When I try to get data by your lib, I geting warnings like this:

image

And catch this error:
image

This is how I try to fetch data:

const ccxws = require("ccxws");

export default function wsUpdate() {
  const binance = new ccxws.Binance();
  const market = {
    id: "USDT-BTC", // remote_id used by the exchange
    base: "BTC", // standardized base symbol for Cardano
    quote: "USDT" // standardized quote symbol for Bitcoin
  };

  binance.subscribeTrades(market);
  binance.on("trades", trade => console.log(trade));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions