Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: buy is not defined #60

Open
marccasco opened this issue Jul 17, 2018 · 1 comment
Open

ReferenceError: buy is not defined #60

marccasco opened this issue Jul 17, 2018 · 1 comment

Comments

@marccasco
Copy link

Good morning,

I am trying to make purchases but they do not work, and they return error, why?

Code:
var buy1 = await kraken.api('OpenOrders', {
pair : 'XETHXXBT',
type : buy,
ordertype: market,
volume: 0.10
});
console.log(buy1);

Error:
UnhandledPromiseRejectionWarning: ReferenceError: buy is not defined

Thank you very much, greetings.

@kattatzu
Copy link

kattatzu commented Jul 25, 2019

You must enclose the word "buy" in quotes like "market", it is a syntax error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants