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

Develop #76

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Develop #76

wants to merge 23 commits into from

Conversation

arrabyte
Copy link
Contributor

  • Some fixes
  • Classical DCA orders features with limit orders placed in advance with base order
  • Cache rest calls during same loop iteration
  • Introduce testnet for bybit orders (should work with real net for WS api), useful to test new feature

arrabyte added 23 commits August 9, 2023 23:50
dca feature must be enabled with "DCA_TYPE=DCA_AVERAGE_ENTRIES" and allows to place additional DCA_SAFETY_ORDERS,
as limits orders. The position size fro any additional order is scaled by DCA_VOLUME_SCALE and the price deviation for
any orders is DCA_PRICE_DEVIATION_PRC.
Unfilled limit orders ore handles when the trade will be closed and also after in the main loop a routine perform a consistency check and remove orphan orders.
WARNING: This an experimental feature, play with it at your own risk.
set PAUSED_LIST in config when you want to set a custom take profit manually,
for example directy from the exchange ui.
PAUSED token will be normally tracked but tp ad sl won't be recalculated.
Now liquidity_trigger store only liquidation value that happen on a specific dca order without considering past liquidation value.
Past liquidation value are tracked anyway by previous log occurring on previous DCA order.
Settings was not synched with minOrderSize update
avoid to perform the same rest api call many times in the same main loop
require the api for testnet account
require a real api key to receive liquidation info
Remove orphan order handling from main loop as sometimes happens that new order is placed but not
available by bybit api and new order are prematurely cancelled.
Orphan order are handled only at start and when the order is closed.
Settings files are created during execution and should be removed from repo
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.

1 participant