400: {"code":-2019,"msg":"Margin is insufficient."}

Author: thirty-six, Created: 2022-03-08 19:09:04, Updated:

First of all, the collateral is definitely enough, and the problem now is that in the case of multiple coins, only the first one can be opened, the next one can't be opened, and that shows the error.

400: {“code”:-2019,“msg”:“Margin is insufficient.”}

And then you adjust the two coins and the third picture comes up again.

img

img

img

If you are in trouble, please check the situation. Thank you.


More

The Little DreamAs the tip indicates, the amount of the guarantee is not enough, print the account information and see it.

The Little DreamThe error was reported by the exchange, which means that the accuracy and the current variety do not match.

thirty-sixBut I can't do it in second place.

thirty-sixI'm just going to put the second currency in the first place, and I'm going to open it directly, and the precision is 3 /upload/asset/23478726905e19f931a7a.

The Little DreamThe precision of each trading pair is different. You go to the trading table and see how many digits are in their lower order, and then see the lower order accuracy when you report the error.

thirty-six/upload/asset/233b01ac12c61259ecb0a.png /upload/asset/23476ce35bed58a77a81c.png /upload/asset/233b01ac12c61259ecb0a.png This page is not intended to be used for commercial purposes. I'm going to call the function to get the precision of the quantity, print it out, and it's fine, and then I'm going to list it at the market price, and it's going to look something like this, and the problem now is that I'm going to use for (i = 0; i < exchanges.length; i++) to query multiple currencies, and the first one is fine, and the next one is fine, and the next one is fine.

The Little DreamThis error has nothing to do with the collateral amount, this error is your order price, order quantity precision exceeds the exchange limit, control the order quantity, order price precision, within the precision displayed on the exchange's board ((precision is the number of digits after the decimal point)).

thirty-sixThe collateral is definitely enough I am now running two currencies the first currency is open and the second currency has been showing this Buy ((-1, 0.038): 400: { "code":-1111, "msg":"Precision is over the maximum defined for this asset"}