
This project is a trading tool based on BitMEX API (It can also be used to overcome the overload feature on the website (although sometimes API's also get suspended due to high load)). This project has a long way to go before becoming an actual usable tool. If you notice any bugs, open an issue.
Scaled orders:
Place up to 30 orders in a range at once (small order sizes will cause a spam warning);
Uniform, Normal, Positive or Negative order placing distributions; (see Distributions section);
(Optional) You can also add a stop-loss;
"Preview" displays your scaled order, average entry and possible risk if stop-loss is provided.

Shows current prices:
Based on the latest ask price;
BTC, ETH and XRP (currently)
Market Order:
Place a sell or buy market order;
Faster over using the website.
Trailing Order:
Places a trailing limit order near market price
The order is ammended automatically, so the order moves with the price if it doesn't get filled
You can use it to get your fills without doing a market order and paying fees, or you can place push markets (more advanced).

The Backend was built using Node + Express and the Frontend, React + Redux. Styled components were taken from React Bootstrap and Material UI.
(If you are new to BitMEX, consider using my affiliate link to get 10% off the fees for 6 months. If you are someone who doesn't gets his orders filled with market orders, getting the 10% discount also reduces the money you get back for limit orders. So it is not recommended)
git clone https://github.com/Effanuel/Bitmex-scaled-orders.git
cd Bitmex-scaled-orders-master/client
.env (no quotes are needed):REACT_APP___API_KEY =
REACT_APP___API_SECRET =
REACT_APP___TESTNET = false
REACT_APP___LOG_LEVEL = info
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.
npm run build
git clone https://github.com/Effanuel/Bitmex-scaled-orders.git
cd Bitmex-scaled-orders/client
.envcd ../api
npm run init:packages
npm run build
npm run prod
cd Bitmex-scaled-orders/api
npm run prod
Run tests: (not many at the moment)
cd Bitmex-scaled-orders/client
npm run unit
These are the available distributions to choose from:

This is the formula used to calculate distributions:
(Chart representations are symbolic)
Distributed under the MIT License. See LICENSE for more information.
$ claude mcp add BitMEX-scaled-orders \
-- python -m otcore.mcp_server <graph>