JKorf/Kraken.Net

Order failed: [ServerError] EGeneral:Invalid arguments:volume

Closed this issue · 2 comments

hex commented

Describe the bug
Order failed: [ServerError] EGeneral:Invalid arguments:volume received when placing an order.

To Reproduce

var order = await client.SpotApi.Trading.PlaceOrderAsync(
       "XETHZEUR",
        OrderSide.Buy,
        OrderType.Market,
        0.0025m,
        orderFlags: new[] { OrderFlags.OrderVolumeExpressedInQuoteAsset });

Expected behavior
Order to succeed

How can I get more details about this error? The order min is 0.002 so I don't think that's the issue.

Capture 2024-04-08 at 16 38 25

Hi, you're sending the order flag OrderVolumeExpressedInQuoteAsset which means the quantity you pass in is in EUR. So you're currently trying to buy 0.0025 EUR worth of ETH which fails as the order is too small. Either remove the flag or adjust the quantity to the Euro value

hex commented

Oh, you are right! Closing this.

Thank you!