ellen
September 30, 2024, 12:45pm
1
Bug info:
This is the webhook code from Gainium:
{ “action”: “reduceFunds”, “uuid”: “xxx”, “asset”: “quote”, “qty”: “X”, “type”: “perc | fixed” }
I changed it too:
{ “action”: “reduceFunds”, “uuid”: “xxx”, “asset”: “quote”, “qty”: “25”, “type”: “perc” }
Only the code still does not take a % off (reduce funds) but still a qty
Really waiting for a webhook that works… `so I can have my multiple TP1-2-3 in % reduce of my funds…
Also when I click on webhook events the webhook code does not look the same as I copies from gainium and pasted in TV> See encloses pictures
Bot URL → Gainium app
[Optional] Steps to reproduce →
Expected result →
1 Like
ellen
October 1, 2024, 7:09am
3
Dear Maksym, thank you very much.
It seems working the % thank you so much…
But… I need help with the following:
I have 4 TP:
tp1 reduce funds
tp2 reduce funds
tp3 reduce funds
TP4 is actually a SL
I enclosed TV print screens
This is the bot:
https://app.gainium.io/bot/66f5cc1bbd688a590db7c6b4?a=3637&aid=share-bot&share=36db7575-3ebb-44f8-a199-dc21297f5529
and lets check this deal of this bot at 7.08 start time UTC+2
66fb83b141f24f155f381e63
here are the orders in the deals:
as you can see a
START deal (perfect
reduce deal (perfect
Then a TP deal a normal TP deal??? that was not fired
reduce deal (perfect
and another reduced deal? as last that must be a SL deal
This is fired from my TV alerts:
Please advice me what I did wrong or maybe there is somewhere a little bug still?
Please sort orders by time, not price.
TP order is what have been created by closeDealBySl. Its only wrong naming. I will check
1 Like
d_yo_r
October 1, 2024, 7:54am
5
What do you think is wrong?
25% of 30 = 7.5 ~ 8
25% of 22.5 = 5.625 ~ 6
25% of 16.875 = 4.21875 ~ 4
SL = 12.65625 ~ 13
For the last you could use a take profit 100%.
1 Like
ellen
October 1, 2024, 8:34am
6
Damn your totally right Maksym
I did not see it it’s indeed on price …
And my mind is always in time …
Ok then it’s only maybe a minor detail indeed of the last webhoon word SL that’s now in TP
He but what the hack you fixed this again for me / for us so we can reduce by %
ellen
October 1, 2024, 8:35am
7
No indeed the % are correct
And I was mistaken it was selected on price not time
So the SL is now only in word TP
Minor thing
And this last one / comment was my mistake indeed
Thank you btw for the calculation
1 Like
Wording fixed in today’s update
2 Likes