Skip to content
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

Marge isolée en stratégie enveloppe #19

Open
grosjeje3123 opened this issue Jan 10, 2024 · 1 comment
Open

Marge isolée en stratégie enveloppe #19

grosjeje3123 opened this issue Jan 10, 2024 · 1 comment

Comments

@grosjeje3123
Copy link

Bonjour,
Merci pour cette belle stratégie d'enveloppe.
Mais j'ai remarqué que de base, on est en marge croisée. J'ai tenté de passer en marge isolée, en ajoutant "params={'marginMode':'fixed','leverage': 1}," aux "bitget.place_limit_order" mais ça renvoie une erreur. C'est le perp.bitget.py qui semble poser problème :

Place sell order (envelope 1) of 0.002 BTC/USDT:USDT at price 49406.43 $
Traceback (most recent call last):
File "/home/ubuntu/live_tools/strategies/envelope/bitget_multi_token_enveloppe.py", line 257, in
bitget.place_limit_order(
File "/home/ubuntu/./live_tools/utilities/perp_bitget.py", line 32, in wrapped
return fn(self, *args, **kwargs)
TypeError: PerpBitget.place_limit_order() got an unexpected keyword argument 'params'

Merci par avance pour l'aide

jerome

@grosjeje3123
Copy link
Author

Il faut juste que je rajoute ce paramètre dans la fonction "place_limit_order" dans perp.bitget.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant