'Kraken API AddOrder passes successfully but order is not placed on Kraken
I'm trying Kraken APIs via C# and I managed to call public APIs as well as private APIs for getting the balance and getting open orders. But when I wanted to try an AddOrder API I encountered a problem, the API is executed successfully, but there is no order on Kraken.
Below is the result I get after calling AddOrder API. It seems normal, no errors and all parameters are as I specified them (sell 0.01 btc at 8100.00 usd)
{"error":[],"result":{"descr":{"order":"sell 0.01000000 XBTUSD @ limit 8100.0"}}}
But there is no order on Kraken platform. Any idea what I did wrong?
Solution 1:[1]
As @Milos found, validate = False will place the order.
From the documentation https://www.kraken.com/features/api#add-standard-order
validate = validate inputs only. do not submit order (optional)
Solution 2:[2]
When adding an order setting validate=true is a good means of testing. If you want to execute the order, set validate=false.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hedgedandlevered |
| Solution 2 | Jack |
