Bitmex Course Videos and connecting to Bitmex nodeJS

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 !

1 Like

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

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

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

1 Like

Hi Ivan,
I totaly agree that a short video on how to upgrade the Genimi bot to be able to connect to Bitmex, bitfinex, or Binance would make the course perfect.
we are really expecting for that.

Hey @ivan. You are using buy function in sell condition. Dont you want to fix it in the video?