BitMEX / sample-market-maker

Sample BitMEX Market Making Bot
Apache License 2.0
1.7k stars 757 forks source link

When sever is overloaded, this program always stop #88

Closed codingkoo closed 6 years ago

codingkoo commented 6 years ago

AS title say, always server is overloaded this program immediately stop and destory my strategy.

How can i improve my code?

ryanfox commented 6 years ago

This is a library for programmers. Familiarity with programming concepts, python, error handling, etc. is a prerequisite for using the library.

Also keep this disclaimer from the README in mind:

BitMEX is not responsible for any losses incurred when using this code. This code is intended for sample purposes ONLY - do not use this code for real trades unless you fully understand what it does and what its caveats are. This is not a sophisticated market making program. It is intended to show the basics of market making while abstracting some of the rote work of interacting with the BitMEX API. It does not make smart decisions and will likely lose money.

AlexADittrich commented 6 years ago

Handling outages should be part of your overall strategy. Look into hedging your position with related contracts and monitoring closely.