Description
When you trigger this action, no matter which trigger provided, you can't give any paramets, since this action doesn't request one.
Yet when you fire the action, no positions at BingX are closed and the return message just says:
Invalid parameters, err:Key: 'APIOneClickClosePositionRequest.Symbol' Error:Field validation for 'Symbol' failed on the 'endswith' tag
Key: 'APIOneClickClosePositionRequest.PositionID' Error:Field validation for 'PositionID' failed on the 'gt' tag
To Reproduce
Steps to reproduce the behavior:
Create a new Workflow
Select any trigger. eg a Webhook
select "BingX" as action and chose trade_oneclick_close_all_positions
Apply your BingX Account to it
Make sure you have at least one open position in BingX Perpetual Futures Trading Account to be closed
Fire the Webhook and see the error message
Positions stay open
Workaround
I found out, if you just use the "Generic API Call" Function and place the API Path "/api/v1/user/oneClickCloseAllPositions" in it, this will work perfectly.
So whatever your "trace_oneclick_close_all_positions" does, it certainly doesn't, what the BingX API expects: To simpley call "/api/v1/user/oneClickCloseAllPositions" as HTTP-POST.
Expected behavior
The Workflow should work as designed and close all open positions at Market Price and don't return weird error messages reffering to PosionIDs you can't even provide as input parameter of the action. Like described above, my simple self-made-workaround does the job as expected.
Additional context
This is a very urgent thing for me since my whole autotrading strategy depends on this action to work properly. Otherwise I only could open positions automatically but never close them when they reach TP or SL Level.
Description When you trigger this action, no matter which trigger provided, you can't give any paramets, since this action doesn't request one. Yet when you fire the action, no positions at BingX are closed and the return message just says:
Invalid parameters, err:Key: 'APIOneClickClosePositionRequest.Symbol' Error:Field validation for 'Symbol' failed on the 'endswith' tag Key: 'APIOneClickClosePositionRequest.PositionID' Error:Field validation for 'PositionID' failed on the 'gt' tag
To Reproduce Steps to reproduce the behavior:
Workaround I found out, if you just use the "Generic API Call" Function and place the API Path "/api/v1/user/oneClickCloseAllPositions" in it, this will work perfectly. So whatever your "trace_oneclick_close_all_positions" does, it certainly doesn't, what the BingX API expects: To simpley call "/api/v1/user/oneClickCloseAllPositions" as HTTP-POST.
Expected behavior The Workflow should work as designed and close all open positions at Market Price and don't return weird error messages reffering to PosionIDs you can't even provide as input parameter of the action. Like described above, my simple self-made-workaround does the job as expected.
Additional context This is a very urgent thing for me since my whole autotrading strategy depends on this action to work properly. Otherwise I only could open positions automatically but never close them when they reach TP or SL Level.
Thanks in Advance.