Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

kraken: order buy XETH-ZEUR and XXRP-ZEUR #2690

Open
carbone07 opened this issue May 26, 2021 · 1 comment
Open

kraken: order buy XETH-ZEUR and XXRP-ZEUR #2690

carbone07 opened this issue May 26, 2021 · 1 comment
Labels
bug exchange Relating to an exchange kraken

Comments

@carbone07
Copy link

System information

  • Have I written custom code (as opposed to using zenbot vanilla): no
  • OS centos server 7:
  • Zenbot version (commit ref, or version): 4.1.0
  • Zenbot branch: unstable
  • NodeJS version: v14.17.0
  • Python version (when using a python script): 2.7.5
  • Exact command to reproduce (include everything): ./zenbot.sh trade kraken.XETH-ZEUR
  • Did I make any changes to conf-sample.js?: only keys for kraken

Describe the problem

the order of but not are executed for next error 'Error: General:Invalid arguments'
i have the the same error for couple XXRP-ZEUR

Source code / Error logs

Unhandeld AddOrder error:
Error: General:Invalid arguments
at rawRequest (/opt/zenbot/node_modules/kraken-api/kraken.js:54:9)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Error:
order rejected
at /opt/zenbot/lib/engine.js:301:15
at /opt/zenbot/extensions/exchanges/kraken/exchange.js:283:20
at /opt/zenbot/node_modules/kraken-api/kraken.js:176:23
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
order: {
id: null,
status: 'rejected',
price: '2302.9700000000',
size: '0.15539231',
created_at: 1622065493915,
filled_size: '0',
post_only: true,
reject_reason: 'General:Invalid arguments'
},
desc: 'could not execute buy: error placing order'
}

@carbone07
Copy link
Author

hi guys i solved the problem on my local copy by checking the kraken documentation and doing some tests
I encountered the problem in a parameter that was passed in the addOrder function in the file "../zenbot/extensions/exchanges/exchange.js" on line 234 (trading_agreement: conf.kraken.tosagree)

I just commented out the line and now I order it to be executed.

not knowing the project in detail I leave you the correction on the sources,
hello

immagine

@DeviaVir DeviaVir added bug exchange Relating to an exchange kraken labels May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug exchange Relating to an exchange kraken
Projects
None yet
Development

No branches or pull requests

2 participants