DeviaVir / zenbot

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

Kraken Exchange ZEUR price can only be specified up to 1 decimals. #2645

Open hliebscher opened 3 years ago

hliebscher commented 3 years ago

System information

Describe the problem

Kraken Exchange ZEUR price can only be specified up to 1 decimals.

Source code / Error logs

order rejected at /Users/hliebscher/opt/zenbot/lib/engine.js:301:15 at /Users/hliebscher/opt/zenbot/extensions/exchanges/kraken/exchange.js:283:20 at response.then.catch (/Users/hliebscher/opt/zenbot/node_modules/kraken-api/kraken.js:176:23) at process._tickCallback (internal/process/next_tick.js:68:7) order: { id: null, status: 'rejected', price: '39995.8020000000', size: '0.00187609', created_at: 1613340911210, filled_size: '0', post_only: true, reject_reason: 'Order:Invalid price:XXBTZEUR price can only be specified up to 1 decimals.' }, desc: 'could not execute buy: error placing order' }

hliebscher commented 3 years ago

Hi i find out this is only when i use option --markup_sell_pct or --markup_buy_pct
without it works !