Open brtechcrypto opened 1 month ago
You seem to be placing an order with notional value less than 100 USDT.
APIError(code=-4164): Order's notional must be no smaller than 100 (unless you choose reduce only).
Please check the size and value in USDT of the order you are sending.
You seem to be placing an order with notional value less than 100 USDT.
APIError(code=-4164): Order's notional must be no smaller than 100 (unless you choose reduce only).
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
self.exchange.entry("Long", True, lot)
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:
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 :)
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 https://github.com/TheFourGreatErrors/alpha-rptr/issues/77#issuecomment-2261508072, 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.