gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

Your order size 1 is too small. The minimum is 1 USDT #33

Closed negocio-azul closed 2 years ago

negocio-azul commented 2 years ago

Hello guys,

I'm trying send GOLD_USDT orders through de API V.4, but some errors have been happening.

If I send a order with amount=2 and price=0.009321, I receive the error message: 'Your order size 2 is too small. The minimum is 1 USDT' The message don't make sense. Is 2 less than 1?

The data/body is: { "text":"", "currency_pair":"GOLD_USDT", "type":"limit", "account":"spot", "side":"buy", "amount":"2", "price":"0.0093210", "time_in_force":"gtc" }

But, if I send an order with amount=2 and price 1.009321, this works fine. (Price > 1). This was only to test, because the price 1.009321 is very expensive.

So, I don't understand what's happening. Probably, the validation is inverted in the API.

Could someone help me?

Thanks.

revilwang commented 2 years ago

The value of your order amount must be more than 1U. Note the currency unit in error message

negocio-azul commented 2 years ago

Hi @revilwang, thanks for your response.

But I don't understood, when you say that "The value of your order amount must be more than 1U" What is exactly "1UN"? pair amount? I'm sending amount=2.

In this case: amount=2 and price=0.009321 => ERROR amount=2 and price=1.009321 => OK (note, the amount is the same, but the price is > 1)

Thanks.

revilwang commented 2 years ago

amount*price > 1U. The VALUE of your amount must be more than 1U

negocio-azul commented 2 years ago

Hi @revilwang ,

Now I understood and the process works fine. Thank you for your time.

Great!

revilwang commented 2 years ago

Glad to hear that. I'll close the issue then