DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Bitfinex issue. Margin trading support. #1861

Open stepandra opened 5 years ago

stepandra commented 5 years ago

System information

Describe the problem

1) My strategy is short oriented, based on bollinger bands, so my paper trading sim balance is 2 BTC and 0 USD. Bot should work with margin trading, so i choose Bitfinex as exchange, but it doesn't work properly, for comparison I run same strategy with Poloniex, and console output seems good, but not with Bitfinex.

2) Does anybody use zenbot for margin trading? What exchange do you use? Does zenbot support Kraken margin trading?

Source code / Error logs

conf.js https://gist.github.com/stepandra/bf4632518025651e682dc2d1c0fed156 conf-sample.js https://gist.github.com/stepandra/a7d91eb8552081264612f86a906a50c0 Poloniex console output https://i.imgur.com/IK9NF0v.png Bitfinex console output https://i.imgur.com/FONVfJy.png As we can see, Bitfinex tickers( period is 5m in my strategy ) wasn't updated, also no balance, and no trades.

leozzo commented 5 years ago

I can confirm. Margin trading doesn’t work. Margin is the best way to setup a bot, if stoploss and takeprofit would work IN REALTIME (not now).

M.

System information

zenbot default MacOS 10.14.3 v4.1.0 (commit ref, or version) unstable v10.13.0 Python 2.7.15 zenbot trade --paper pasted API keys, and changed trading settings Describe the problem

My strategy is short oriented, based on bollinger bands, so my paper trading sim balance is 2 BTC and 0 USD. Bot should work with margin trading, so i choose Bitfinex as exchange, but it doesn't work properly, for comparison I run same strategy with Poloniex, and console output seems good, but not with Bitfinex.

Does anybody use zenbot for margin trading? What exchange do you use? Does zenbot support Kraken margin trading?

Source code / Error logs

conf.js https://gist.github.com/stepandra/bf4632518025651e682dc2d1c0fed156 conf-sample.js https://gist.github.com/stepandra/a7d91eb8552081264612f86a906a50c0 Poloniex console output https://i.imgur.com/IK9NF0v.png Bitfinex console output https://i.imgur.com/FONVfJy.png As we can see, Bitfinex tickers( period is 5m in my strategy ) wasn't updated, also no balance, and no trades.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

stepandra commented 5 years ago

I can confirm. Margin trading doesn’t work. Margin is the best way to setup a bot, if stoploss and takeprofit would work IN REALTIME (not now). M.

I thought, that zenbot work properly with realtime SL, isn't it? Did you find some bot solution for margin trading? I found this bot https://github.com/Haehnchen/crypto-trading-bot, but I didn't test it yet.