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

Devel #8

Merged
merged 119 commits into from
Apr 11, 2019
Merged

Devel #8

merged 119 commits into from
Apr 11, 2019

Conversation

thehapax
Copy link
Owner

into thehapax master

bitphage and others added 30 commits February 20, 2019 00:20
On the sell side, don't cancel furthest orders ever, instead just place
closer sell order using available (not allocated) funds.

If target spread still not reached, cancel furthest buy side order.

Closes: #443
Default expiration time of 30 seconds may be too low in some cases (slow
connection, time differences between local machine and the node). Also,
time to irreversible block is more than 30 seconds. In case of chain
microforks a node can recover transactions from shorter chain if they
are not expired yet. E.g., with bigger expiration trx inclusion in
irreversible block is more reliable.
Trx expiration must fit into limit "head block time + 1 day". If it's
not, the node is not properly synced (blockchain state) or client
machine time is too much in the future.

As a solution, try to switch node, and if it didn't help raise error to
the user.

Closes: #250
When returning an order, invert() must be called not only when
deleted order is reconstructed, but in normal case too. Don't invert by
default as it may break backward compatibility.
Uncheck reset_on_price_change when center_price_dynamic set to False.
This prevents setting of bad options combination, thus avoiding further
error.
If order was filled partially it may stay as a dust order.
Instead of waiting until it will be fully filled, just cancel it and use
obtained funds to place closer order on opposite side.

Closes: #432
* edit market offered to end user as QUOTE/BASE
 instead of vice versa

* edit default value to use / as separator

* switch pair order

* allow numerics in symbols
…to thehapax-458-refactor-cli-configure

During merge following merge conflicts were resolved:

 Conflicts:
	dexbot/cli_conf.py
	dexbot/strategies/base.py
	dexbot/ui.py
joelvai and others added 29 commits March 25, 2019 08:47
Accidentally typed git inside documentation
Added PEP8 testing to the MakeFile which does the following:

1. Installs Flake8 3.7.7 with dependencies
2. Runs flake8 test for dexbot folder
3. Uninstalls Flake8 with dependencies so that the project's build does
not grow too much in size
Runs pep-test before building
Includes the max line length of 120 and excludes some auto generated
python files
Moved all the pip install packages on one line and fixed the package
installation
- Removed unused imports
- Changed 'dexbot.helper' import to be more specific
- Fixed 'os' import, since it doesn't come from 'dexbot.helper' anymore
Added some missing new lines from end of the files and removed one extra
Added tests/ folder to lint and pep-test, since this was missing
@thehapax thehapax merged commit 4151d77 into thehapax:master Apr 11, 2019
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

Successfully merging this pull request may close these issues.

4 participants