Bitmex Course Videos and connecting to Bitmex nodeJS


#1

Hi @ivan!
can you maybe upload the videos you recorded for bitmex somewhere? I would be very interested in building a trading bot on bitmex and I think your videos would be very helpful! Maybe you can add a extra section or give us an unofficial link :wink: Thx !


#2

Or maybe someone can share some experience on how to connect to Bitmex with nodeJS. Unfortunately, I cannot use Gemini as I am from Germany. :frowning:

image


#3

I am using this code as stated on https://github.com/BitMEX/api-connectors/tree/master/official-ws/nodejs:

const BitMEXClient = require(‘bitmex-realtime-api’);
// See ‘options’ reference below
const client = new BitMEXClient({
testnet: false, // set true to connect to the testnet site (testnet.bitmex.com)
// Set API Key ID and Secret to subscribe to private streams.
// See Available Private Streams below.
apiKeyID: ‘my key’,
apiKeySecret: ‘my secret’,
maxTableLen: 10000 // the maximum number of table elements to keep in memory (FIFO queue)
});

it throws the following error:

internal/modules/cjs/loader.js:584
throw err;
^

Error: Cannot find module ‘bitmex-realtime-api’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (D:\Dropbox\Wichtige Unterlagen\Crypto\Ivan on Tech\JavaScript\index.js:5:22)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
PS D:\Dropbox\Wichtige Unterlagen\Crypto\Ivan on Tech\JavaScript>

I added bitmex with: add bitmex

image


#4

We don’t have videos for BitMex to release as we only started before realizing they dont accept US customers unfortunately.

Maybe we will add Bitmex in the future.

You need to install bitmex-realtime-api in your node_modules not bitmex.

Read more here: https://www.npmjs.com/package/bitmex-realtime-api