I'm not sure if this is the good place to ask this question, but lets give it a try. To try to learn how Stellar works I tried to use the Kelp trading bot. I've made a trustline with WSD
and try to trade WSD/XLM
on StellarX. My config is quite simple (not much changed compared to the example files), but I keep getting an error. My first orders XLM
-> WSD
are placed and filled immediately. But selling WSD
-> XLM
is never working. These are the errors I keep getting.
:~/Documents/kelp-v1.0.0-rc3 $ cat /home/pi/Documents/kelp-v1.0.0-rc3/TradingResult.txt | grep -E "programm|error"
2018/10/15 19:47:17 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=11.3398371, newSellingAmount=3.6671172, oldBuyingAmount=49.9999998, newBuyingAmount=16.1691793
2018/10/15 19:47:17 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:49:19 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=11.3401784, newSellingAmount=3.6671172, oldBuyingAmount=49.9999999, newBuyingAmount=16.1686927
2018/10/15 19:49:19 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:51:22 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=11.3284197, newSellingAmount=3.6671172, oldBuyingAmount=50.0000002, newBuyingAmount=16.1854756
2018/10/15 19:51:22 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:53:16 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=48.6799925, newSellingAmount=3.6671172, oldBuyingAmount=214.7483647, newBuyingAmount=16.1772297
2018/10/15 19:53:16 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:55:24 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=48.6799925, newSellingAmount=3.6671172, oldBuyingAmount=214.7483647, newBuyingAmount=16.1772297
2018/10/15 19:55:24 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:57:27 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=48.6847281, newSellingAmount=3.6671172, oldBuyingAmount=214.7483649, newBuyingAmount=16.1756562
2018/10/15 19:57:27 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 19:59:35 error in buying sub-strategy: error: (programmer?) unable to place offer with the new (reduced) selling and buying amounts, oldSellingAmount=48.6768367, newSellingAmount=3.6671172, oldBuyingAmount=214.7483647, newBuyingAmount=16.1782785
2018/10/15 19:59:35 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 20:00:30 error in buying sub-strategy: error: (programmer?) unable to create offer but available capacities were more than the attempted offer amounts, sellingCapacity=3.6671172, incrementalSellAmount=2.2660619, buyingCapacity=179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000000, incrementalBuyAmount=10.0000000
2018/10/15 20:00:30 liabilities (force recomputed) after encountering an error after a call to UpdateWithOps
2018/10/15 20:02:33 error in buying sub-strategy: error: (programmer?) unable to create offer but available capacities were more than the attempted offer amounts, sellingCapacity=3.6671172, incrementalSellAmount=2.2659831, buyingCapacity=179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0000000, incrementalBuyAmount=9.9999998
UPDATE:
./kelp version
version: v1.0.0-rc3
git hash: c8363e74c80cc3854dfbf19110f10b8ad21fe3d4
build date: 20180929T155837Z
GOOS: Linux
GOARCH: arm
Command to trade:
./kelp trade --botConf ./trader.cfg --strategy buysell --stratConf ./buysell.cfg &>> TradingResult.txt
Summary of trader.cfg:
TRADING_SECRET_SEED="SECRET"
ASSET_CODE_A="XLM"
ASSET_CODE_B="WSD"
ISSUER_B="WSD-ISSUER-ADDRESS"
TICK_INTERVAL_SECONDS=120
HORIZON_URL="https://horizon.stellar.org"
buysell.cfg
is the same as the example file. Have tried some variations in amount, but no difference.
Balance of stellar account: 20.2597866 XLM
. Just started really low, since I want to learn Stellar and the trading bot.