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

How to use the whole account on every restart #34

Closed
Daedalus-code opened this issue Jan 31, 2021 · 9 comments
Closed

How to use the whole account on every restart #34

Daedalus-code opened this issue Jan 31, 2021 · 9 comments

Comments

@Daedalus-code
Copy link

Daedalus-code commented Jan 31, 2021

How to use the whole account every time bot restarts? (The PAIRS you are using.)
Like not only use the reserves and end up splitting it up so bad it's just fractions left for trading. 👀

This is the config I use:

export DEPOSIT_LIMIT=70%
export EXCHANGE=Poloniex
export NAME_COIN=btc
export NAME_COIN_TWO=usdt
export COUNT_ORDERS=20
export OFFSET_FIRST_ORDERS_PERCENT=0.01
export ONE_ORDERS_OFFSET=0.4
export ONE_ORDERS_PROFIT_PERCENT=0.3
export ONE_ORDERS_SELL=true
export QUANTITY_ORDERS_IN_BLOCKS=5
export RANGE_OFFSET=15
export SIZE_ORDERS_MARTINGALE=20

That ends up with 30% Reserved and that's fine, but BTC is at 100% and it's kept away if I restart the bot.. Im not really understanding the configuration.

Im trying to run the bot and then stop it after a certain limit is met and then restart it and let the bot use the whole account on USDT and BTC that are there and create new 30% reserve each time.

Now it's just eating up the reserves into tiny satoshis 🤔 And then I have to stop the bot, login to Poloniex and sell all into USDT again, restart bot so the bot can use the "whole account" on those two PAIRS I use.

@steeply
Copy link
Owner

steeply commented Feb 1, 2021

Try
export PERMANENT_DEPOSIT=true

@Daedalus-code
Copy link
Author

Thank you for answer! Was looking at that on README

it still says Closing of all orders now two times restarting the bot with export PERMANENT_DEPOSIT=true

export PERMANENT_DEPOSIT=true
export DEPOSIT_LIMIT=70%
export EXCHANGE=Poloniex
export NAME_COIN=btc
export NAME_COIN_TWO=usdt
export COUNT_ORDERS=20
export OFFSET_FIRST_ORDERS_PERCENT=0.01
export ONE_ORDERS_OFFSET=0.4
export ONE_ORDERS_PROFIT_PERCENT=0.3
export ONE_ORDERS_SELL=true
export QUANTITY_ORDERS_IN_BLOCKS=5
export RANGE_OFFSET=15
export SIZE_ORDERS_MARTINGALE=20

@steeply
Copy link
Owner

steeply commented Feb 1, 2021

When launched, the bot closes all orders. This is how it calculates the total balance and makes deposit reserves. Then it re-places orders based on the specified configuration.

You can prohibit closing orders at the start. But then all orders that were on the market at the start will be ignored and will not be taken into account during operation. The orders that were opened during the current bot session will be taken into account

export IGNORE_ORDERS_AT_START=true

Although I may have misunderstood your problem

@Daedalus-code
Copy link
Author

export IGNORE_ORDERS_AT_START=true Interesting, I just want it all in play, don't leave it out.
It can close orders thats fine, really, I just want it to know the total balance on those two pairs and use it, every time.

Thank you for answering.

@Daedalus-code
Copy link
Author

A rule that would move everything into one pair (USDT) when it starts, from those two pair you setup of course, then it can start over with it's calculations with everything in USDT.
I don't want to sound rude 🙈 kinda need a option like this cause I love the idea to build up reserves.
Amazing bot btw, Thank you for the trial version, learned a lot and had a lot of fun.

@steeply
Copy link
Owner

steeply commented Feb 1, 2021

The transfer of the deposit at the start of the bot to one trading currency is specifically left to the discretion of the user.
Since it is not known at what price and how the user wants to make the conversion

@Daedalus-code
Copy link
Author

I know it's the bot that will make that sell order and turn it into USDT for example, If the user wants that option it's our own risk right? Cause I kinda do it every time now for two years.

@Daedalus-code
Copy link
Author

Well it can be a bigger problem the bigger the order is and longer the bot has to wait to fulfil it enough to start..
Im not really sure other ways I can do it, but you are right.

Im restarting the bot when the market is idling for a certain time and the bot are above the "buy order" and earned enough and then I stop the bot, canceling orders, selling everything into USDT and then restart the bot and then it builds a bigger reserve and have some extra to trade with.

@Daedalus-code
Copy link
Author

When the bot does it's last big sell at top and then has the USDT in total for a moment, can the bot do the "recalculations" again? and then create a new set Reserved Amount from that total amount in USDT?

So like do that "process" in-between before it continues again? 🙈

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