You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I develop auto trading for bitcoin.
A few month ago, my code was correctly ran but, today error is happening below.
I set the "one-way mode" and position mode "False".
This error is also happening trade type : "market".
How should it fixed?
Error message
Traceback (mostrecentcalllast):
File".\test2.py", line26, in<module>amount=0.01,
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\bitget.py", line2345, increate_orderresponse=getattr(self, method)(self.extend(request, omitted))
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\base\exchange.py", line505, ininnerreturnentry(_self, **inner_kwargs)
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\base\exchange.py", line2850, inrequestreturnself.fetch2(path, api, method, params, headers, body, config, context)
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\base\exchange.py", line2847, infetch2returnself.fetch(request['url'], request['method'], request['headers'], request['body'])
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\base\exchange.py", line641, infetchskip_further_error_handling=self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File"C:\ProgramData\Anaconda3\lib\site-packages\ccxt\bitget.py", line4029, inhandle_errorsraiseExchangeError(feedback) # unknown messageccxt.base.errors.ExchangeError: bitget {"code":"40774","msg":"The order type for unilateral position must also be the unilateral position type.","requestTime":1716038326382,"data":null}
@bgparkloop after the linked PR is merged, the issue should be gone. however, in future, you will be able to control hedged position mode by passing params = {'hedged': True/False} into create_order?
Operating System
Windows
Programming Languages
Python
CCXT Version
4.3.27
Description
I develop auto trading for bitcoin.
A few month ago, my code was correctly ran but, today error is happening below.
I set the "one-way mode" and position mode "False".
This error is also happening trade type : "market".
How should it fixed?
Error message
Code
The text was updated successfully, but these errors were encountered: