bmino / binance-triangle-arbitrage

Detect in-market cryptocurrency arbitrage
MIT License
1.07k stars 336 forks source link

Work on my notebook bot not on my raspberry pi #93

Closed neiluj46 closed 4 years ago

neiluj46 commented 4 years ago

Hello,

first of all I wanted to thank you for this wonderful code!

unfortunately i have a problem,

the bot works well on my laptop but only works very quickly on the raspberry pi 3b +

it shows me websocket error

below my config:

"INVESTMENT": { "BASE": "USDT", "MIN": 11, "MAX": 44, "STEP": 11 },

"TRADING": {
    "ENABLED": true,
    "EXECUTION_STRATEGY": "linear",
    "EXECUTION_TEMPLATE": ["BUY", "SELL", "SELL"],
    "EXECUTION_CAP": 0,
    "TAKER_FEE": 0.075,
    "PROFIT_THRESHOLD": 0.3,
    "AGE_THRESHOLD": 300,
    "WHITELIST": []
},

"HUD": {
    "ENABLED": false,
    "ARB_COUNT": 3
},

"LOG": {
    "LEVEL": "debug",
    "PRETTY_PRINT": true
},

"DEPTH": {
    "SIZE": 50,
    "PRUNE": false,
    "INITIALIZATION_INTERVAL": 100
},

"CALCULATION_COOLDOWN": 250

Do you think the raspberry is too limited in terms of ram / cpu? (it is also connected by ethernet)

below the error message

[ 'WebSocket closed: stratbtc@depth (1006)' ] [ 'WebSocket reconnecting: stratbtc@depth...' ] c[ 'WebSocket closed: stxbnb@depth (1006)' ] [ 'WebSocket reconnecting: stxbnb@depth...' ] a[ 'WebSocket closed: stxusdt@depth (1006)' ] [ 'WebSocket reconnecting: stxusdt@depth...' ] [ 'WebSocket closed: steembnb@depth (1006)' ] [ 'WebSocket reconnecting: steembnb@depth...' ] [ 'WebSocket closed: viteusdt@depth (1006)' ] [ 'WebSocket reconnecting: viteusdt@depth...' ] [ 'WebSocket closed: skybtc@depth (1006)' ] [ 'WebSocket reconnecting: skybtc@depth...' ] [ 'WebSocket closed: vibeth@depth (1006)' ] [ 'WebSocket reconnecting: vibeth@depth...' ] [ 'WebSocket closed: celrusdt@depth (1006)' ] [ 'WebSocket reconnecting: celrusdt@depth...' ]

cordially

bmino commented 4 years ago

There is a LOT of async processing going on. If you take a look at your laptop's usage statistics it's likely heavily utilizing multiple cores. A raspberry pi just isn't designed to handle intensive processing such as this bot requires.

Your configuration is not the bottleneck, if that is what you are thinking

neiluj46 commented 4 years ago

Hello

ok I see,

what minimum configuration do you recommend to run the bot without problems?

in any case superb work to code this one!

cordially

bmino commented 4 years ago

Setting a whitelist would greatly reduce the hardware requirements to run on a rasberry pi

bmino commented 4 years ago

Closing due to inactivity