Closed dkuo123 closed 2 years ago
Hi @dkuo123 welcome to the wonderful world of node.js!
npm install -save orderbooks
this is only needed if you want to import my orderbooks
npm package into your own project. This cmd adds the module as a dependency to your package.json
and it installs it (in your node_modules
folder) so it's ready for use.
In the case of the samples, you'll see there's a package.json
inside that folder. That means you can cd
into that samples
folder and run npm install
. Running npm install
like that will look for a package.json in the current folder and install any dependencies listed in the json file.
Full steps:
samples
foldernpm install
in the samples foldernode bybit.js
to run the bybit example. Notes:
@pxtrn/bybit-api
is an older version of the bybit connector. If you wanted to work with bybit, I'd recommend using bybit-api
: https://www.npmjs.com/package/bybit-apirequire('orderbooks')
in your own project, just like the samples do, without having a copy of the repo on your machine.New example here that's ready to run: https://github.com/tiagosiebler/awesome-crypto-examples/tree/master/src/exchanges/bybit/orderbooks
Closing this old thread
Hi, I'm new to node js & follow your steps:
Error: Cannot find module '@pxtrn/bybit-api' Require stack: