-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error bitget when order with percetage of the wallet #14
Comments
It's probably an error in the balance value on my side. I just changed that code as part of the other fix. I'll check and fix it now. |
Can you update and try again? I can't test this one myself. I don't have more than 10usdt in Bitget. |
I just test and I have the same error. FYI, i'm using CCXT 4.3.40
|
I don't understand. As far as I can test with 10usdt seems to be working for me I added a print to the code to check the balance conversion. Could you update and test it once more?
|
I should be cursed..... [2024/06/10][21:52:43] ALERT: 2024-06-10 21:52:43 - BGUSER-1M3ZWDAW NOTUSDT sell 10% x1 |
Wait what. The conversion is correct. I'm so confused right now. |
Me too.... |
Don't worry. I keep trying to figure it out. When you place orders in bitget with a value (not a percent) they do work, right? It only fails with the percent. |
Absolutely, my bot that I use in tradingview order in values not in percent. |
Give it another try with the latest update, please. |
I Would like to give good news, but I still have the same problem.
What is this config.json file for?
This seems to be cool :D
[
{
"ALERT_TIMEOUT":180,
"ORDER_TIMEOUT":40,
"REFRESH_POSITIONS_FREQUENCY":300,
"UPDATE_ORDERS_FREQUENCY":0.25,
"VERBOSE":false,
"SHOW_BALANCE":false,
"SHOW_ENTRYPRICE":false,
"SHOW_BREAKEVEN":true,
"TELEGRAM_BOT_TOKEN":"",
"TELEGRAM_CHAT_ID":"",
"TELEGRAM_WHOOK_URL":"",
"TELEGRAM_MODE":"ADMIN",
"USE_PROXY":true,
"PROXY_PORT":50000
}
]
Le mar. 18 juin 2024 à 23:54, germangar ***@***.***> a écrit :
… Give it another try with the latest update, please.
—
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHVUAOA5XG5ZOG6G3SRLJWDZICUALAVCNFSM6AAAAABJCK34PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZXGE2DENRTG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
To configure a bunch of things without having to modify the script :) The SHOW_* ones are to include those things when printing the positions. The telegram stuff is a new feature to get notifications in telegram when an order fails. It's explained in the read.me now. |
Hello,
I'm working on a workaround for the percentage error of bitget.
I did a script to get the value of the wallet. (thanks chatgpt which helps
a lot)
I will modify the function in the delist bot and will see.
Have a nice day
Le mer. 19 juin 2024 à 17:01, germangar ***@***.***> a écrit :
… To configure a bunch of things without having to modify the script :)
The telegram stuff is a new feature to get notifications in telegram when
an order fails. It's explained in the read.me now.
—
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHVUAOGS7VNJRM7RLSCNDGLZIGMMVAVCNFSM6AAAAABJCK34PSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYHEZDGOBQGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I worked on a solution that use a value instead of a percentage of my wallet. I worked hard on that but I still have the issue.... With the delist bot :
With TV bot :
There must be something wrong with the sell function I suppose. |
You made a mistake in this alert. It's trying to sell 26,5 NOT, which is 0,371 USDT. For selling in usdt the amount has to look like this 26,5$ |
Same :'( 14:56:17 [BGUSER-1M3ZWDAW/bitget] ALERT: 2024-06-22 14:56:17 - BGUSER-XXXXXX NOTUSDT sell 25$ x1 |
Could you update whook and try once more with the same alert? I want to see how many NOTs is trying to sell |
15:16:10 [BGUSER-1M3ZWDAW/bitget] ALERT: 2024-06-22 15:16:10 - BGUSER-XXXXX NOTUSDT sell 25$ x1 |
Ok. That helps. For some reason it's not understanding the dollar sign and it thinks the order is in NOT. I'm now thinking this may be a text encoding issue. It's weird that it's printing the $ sign correctly, tho, but I think this may be it. But you should be having the same problem in the other exchanges when you make this same order from your script. |
Here the part of the code where is the $.
|
Yeah, that's totally fine. If anything I suspect it may be something in the code that sends the webhook not setting the right text encoding. But this is a field I don't know much about, tbh. It should be set to UTF8, I guess. |
In fact it's already implemented :
|
Let's try this to see if the problem is really there. Update and try sending your alert including the command 'force_usdt'. Let see if that makes it work before anything else. |
Sorry, where I should add your command? |
Just add it to the alert at the end. It's just a replacement for the dollar sign
|
17:08:02 [BGUSER-1M3ZWDAW/bitget] ALERT: 2024-06-22 17:08:02 - BGUSER-XXXXXX NOTUSDT sell 25 x1 force_usdt |
damn You updated whook before sending it, right? I should have added a print ^_^' |
Yes I did ^_^' A friend who is working on a another bot also, have problems with values and percentages quantity also with the whook. He is using bybit and not bitget. |
I have plans to split it so you don't need to send the alerts with a webhook, but import whook into your script. I don't understand how it is failing. It is receiving the correct number. 25 is there. It's just not converting it from usdt to NOT. But I don't understand why. Could you enable 'verbose' in the config file and do it once more? Check if the print that says "CONVERTING" gives a result other than 25? |
17:30:35 [BGUSER-1M3ZWDAW/bitget] ALERT: 2024-06-22 17:30:35 - BGUSER-XXXXX NOTUSDT sell 25 x1 force_usdt |
Ok, for some reason it's thinking it's not in USDT but in NOT. We are getting somewhere. I'm going to ask you for one more test. Hold on |
Ok. Can you try one last time for today? Update and verbose on |
Well done lad !!!!
Shall I keep force_usdt or shall I put the $? |
YAY! I'm pretty sure if you issue the order with 25$ it will still fail. But at least it works now with 25 force_usdt. I'll leave dealing with the charset encoding for another day (mabye). |
You should be able to use force_percent now too |
I will try that and let you know. |
I have a bot that place short order using a percentage of the walle. I have 200$ on the future account, and I use 100% of the wallet on this test and it returns in the log :
Can you help me please?
Do you think it could be an error by my side?
Thanks a lot
The text was updated successfully, but these errors were encountered: