zenbot icon indicating copy to clipboard operation
zenbot copied to clipboard

Kraken: price can only be specified up to 2 decimals

Open Primea1 opened this issue 9 years ago • 2 comments

When trying to place an order the below error is seen. It says that Kraken cannot accept order amounts cant be over 2 decimal places but as you can see it doesn't.

order: { id: null, status: 'rejected', price: '99.44505600', size: '0.98000000', created_at: 1512180607659, filled_size: '0', post_only: true, reject_reason: 'Kraken API returned error: Order:Invalid price:XLTCZUSD price can only be specified up to 2 decimals.' }, desc: 'could not execute sell: error placing order' }

Primea1 avatar Dec 02 '17 02:12 Primea1

You just need to update the products.json and reduce the increment of the pair (since a recent update most exchange have the same problem).

One of the main problem being, the products.json use the same increment for both side

For example on cexio : ETH to USD and USD to ETH doesn't have the same increment.

slashafk avatar Dec 02 '17 10:12 slashafk

I have fixed it and made a pull request #794 Waiting for merge Stay tuned

MT00x avatar Dec 04 '17 20:12 MT00x