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

add variable to use max leverage #17

Open
adrpan opened this issue Nov 21, 2024 · 1 comment
Open

add variable to use max leverage #17

adrpan opened this issue Nov 21, 2024 · 1 comment

Comments

@adrpan
Copy link

adrpan commented Nov 21, 2024

Hey,

I’ve started testing your tool, and it’s really great! The only thing I find missing is the ability to automatically set the maximum available leverage. There are quite a few coins with varying leverage limits—12.5, 16.67, 25, 50—and setting this in an alert is tricky, not to mention trying to calculate the exact amount manually in the alert. Have you considered adding this functionality?

regards Adrian

@germangar
Copy link
Owner

germangar commented Nov 21, 2024

Hello Adrian,

Whook checks the leverage when placing an order to verify it's within the exchange limits for that symbol. Whook limits it to the maximum value allowed by the exchange when exceeded. It's made on a symbol basis, so you shouldn't need to worry about it. This functionality is only not present for Kraken because Kraken doesn't provide this information. It should be working in the rest of exchanges.

In the case of CoinEx the leverage is adjusted to a list of values provided by the exchange (CoinEx doesn't accept leverage 4, for example. It has to be either 3 or 5). Whook handles this one too by picking the value just below the one you provided (in the example that would be 3x).

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

2 participants