-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api error code -4164 #77
Comments
You seem to be placing an order with notional value less than 100 USDT.
Please check the size and value in USDT of the order you are sending. |
Hi @praveenbm5 thanks for your answer, where exactly should change the size and value in USDT? |
look into Rci->strategy function
this call places an order for maximum quantity allowed at the set leverage for your account on exchange for the balance in your account. Ex. if the leverage is set to 20 (default on Binance Futures) and you have 50 USDT balance on your futures account, then this call will place an order for 20*50 = 1000 USDT worth of BTC. |
Okay, so, this error: was telling me that my balance which was 65 USDT and the leverage (I assume this was 1x because I didn't specify it) was less than 100 USDT, right? Now I could find the leverage is an option that can be provided to the main.py script but I don't see where I can limit the amount of invest. For just an example, of my 65 USDT I would like to invest only 40 USDT with a leverage of 20x. How can I do it? really appreciated your help :) |
Leverage is an account wide setting which can be set using command line
arguments.
Whereas order size is set on a per order basis.
You can specify order size when posting order related calls like entry,
order, etc. In your strategy.
Natively most exchanges support order sizes specified in asset quatity ex.
0.1 (btc) but we also support setting order size in USDT which will be
internally converted to assert quantity.
Better to go with quantity in asset units.
Please read the source code for granular details.. it's simple and self
explanatory.
…On Thu, 1 Aug, 2024, 03:10 brtechcrypto, ***@***.***> wrote:
Okay, so, this error:
APIError(code=-4164): Order's notional must be no smaller than 100 (unless
you choose reduce only).
was telling me that my balance which was 65 USDT and the leverage (I
assume this was 1x because I didn't specify it) was less than 100 USDT,
right?
Now I could find the leverage is an option that can be provided to the
main.py script but I don't see where I can limit the amount of invest. For
just an example, of my 65 USDT I would like to invest only 40 USDT with a
leverage of 20x. How can I do it?
really appreciated your help :)
—
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD32QYNPRGNWCODDYJKH7DZPFKUZAVCNFSM6AAAAABLXPVOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRGUYDQMBXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am running the bot for futures in binance and after some time I get the next error:
what can it be wrong?
I am testing in this moment.
Thanks in advance for any explanation and help.
The text was updated successfully, but these errors were encountered: