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

Doesn't work on bitfinex: trading rules, step_size restriction not applicable, check #28

Closed
DanyaSWorlD opened this issue Sep 8, 2022 · 1 comment

Comments

@DanyaSWorlD
Copy link
Contributor

Hi!

It's normal. Amount first grid order depend from step_size (trade rules for exchange/account/pair and may be different for test and real place - compare it) and some another parameters:

        if not additional_grid and not grid_update and not GRID_ONLY and PROFIT_MAX < 100:
            k_m = 1 - PROFIT_MAX / 100
            amount_first_grid = max(amount_min, (step_size * base_price / ((1 / k_m) - 1)) / base_price)

For what? It is important for the TP order to meet the specified maximum price step, no more PROFIT_MAX, the smaller the volume of the first order, the greater the price spread for the TP sale. Trading rules for the pair are requested from the exchange when the strategy is initiated.

Originally posted by @DogsTailFarmer in #15 (comment)

@DogsTailFarmer DogsTailFarmer changed the title Doesn't work on bitfinex Doesn't work on bitfinex: trading rules, order step restriction not applicable, check Sep 9, 2022
@DogsTailFarmer DogsTailFarmer changed the title Doesn't work on bitfinex: trading rules, order step restriction not applicable, check Doesn't work on bitfinex: trading rules, step_size restriction not applicable, check Sep 9, 2022
@DogsTailFarmer
Copy link
Owner

Hi!

For Bitfinex step_zise limit not applicable.

Fixed for Bitfinex in exchanges-wrapper 1.2.5

Was - step_size = min_qty
Became - step_zise = 0.00001

DogsTailFarmer added a commit that referenced this issue Sep 18, 2022
fixed #28
changed initial checks to work with a small depo
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