how to make a bitcoin buy with euros on Kraken API

2

1

I am trying to use the kraken api to make bitcoin buys with euros, I am looking at the API here https://www.kraken.com/help/api

But I am here with some doubts

("pair => "XXBTZEUR",
"type" => "buy",
"ordertype" => "market",
"voulme" => ?
)

Witch volume should I put there ? volume in BTC or Euro ? I wish I could put euros there, but I am not sure, theres no specification on the api about this

Pedro Gaspar

Posted 2017-04-01T14:55:16.350

Reputation: 141

Answers

2

Found how to do it, we shoud use the oflags

oflags = comma delimited list of order flags (optional):
    viqc = volume in quote currency (not available for leveraged orders)
    fcib = prefer fee in base currency
    fciq = prefer fee in quote currency
    nompp = no market price protection
    post = post only order (available when ordertype = limit)

In this case:

("pair => "XXBTZEUR",
"type" => "buy",
"ordertype" => "market",
"voulme" => '10',
"oflags" => "viqc"
)

Pedro Gaspar

Posted 2017-04-01T14:55:16.350

Reputation: 141