bitmex-node-api
v1.0.4
Published
*All types and methods are automatically generated from BitMEX official Swagger Specification*
Downloads
7
Readme
BitMEX-nodejs - An unofficial BitMEX API connector written with typescript
All types and methods are automatically generated from BitMEX official Swagger Specification
Installation
- CLI installation:
npm install bitmex-node-api
- Create API keys: https://www.bitmex.com/app/apiKeys
Code Example
import { BitmexAPI } from 'bitmex-node-api'
const bitmex = new BitmexAPI({
apiKeyID: 'NXTy391NCdhrrSWzsJE_xktb',
apiKeySecret: 'bPVQ51-xxI7bRcuAAOlvH0wUFpPvusfmC1dF6zyy4s3v8Mgd',
// "proxy": "https://cors-anywhere.herokuapp.com/"
})
!(async function () {
const chatMessage = await bitmex.Chat.new({ message: 'Pump incoming !!! ' })
})()