Effanuel / BitMEX-scaled-orders

Bitmex trading tool using REST API and Websocket
MIT License
33 stars 15 forks source link
bitmex-api distributions express reactjs rest-api websocket

Currently not being maintained

BitMEX trading tool

This project is a trading tool based on BitMEX API (Binance coming next). This project has a long way to go before becoming an actual usable tool. If you notice any bugs, open an issue.

Table of Contents

Current Features

Built With

The Backend was built using Node + Express and the Frontend, React + Redux. Styled components were taken from Chakra UI

Getting Started

Prerequisites

Installation

  1. Clone the repo:
git clone https://github.com/Effanuel/Bitmex-scaled-orders.git
cd Bitmex-scaled-orders-master/
  1. Enter your API keys in .env (no quotes are needed):
REACT_APP___API_KEY =
REACT_APP___API_SECRET =
REACT_APP___TESTNET = false
REACT_APP___LOG_LEVEL = info
  1. Install NPM packages for client and server:
cd api/
npm run init:packages

Disclaimer: You need to set API keys before building the application. If you make a typo and only notice after a build, do
npm run clean and npm build

Disclaimer: If you set TESTNET to true, you need to create a Testnet account and set the API keys appropriately. Your main BitMEX account API won't work with TESTNET option set to true.

  1. Build the application:
npm run build

TLDR setup:

git clone https://github.com/Effanuel/Bitmex-scaled-orders.git
cd Bitmex-scaled-orders/
cd api/
npm run init:packages
npm run build
npm run prod

Usage

After building you just need to run the application:
cd Bitmex-scaled-orders/api
npm run prod

Distributions

These are the available distributions to choose from:

Probability density function is used to calculate distributions:


Roadmap

License

Distributed under the MIT License. See LICENSE for more information.

Useful Material