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

Tasks Executer #8

Open
hadialaddin opened this issue Nov 13, 2021 · 7 comments
Open

Tasks Executer #8

hadialaddin opened this issue Nov 13, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hadialaddin
Copy link
Owner

Uses a First-In-First-Out (FIFO) approach to execute the Tasks:

  • Execute task
  • Add to Notifications Queue with message "Task ID executed on timestamp"

Tasks to support:

  • Market Open "%" of available_balance.
  • Market Open "QUANTITY of "SHORT/LONG" position
  • Market Close "QUANTITY/%" of "SHORT/LONG" position

NOTE: If Hedge Mode is not enabled, a "CLOSE" is an order with "Reduce-Only".

@hadialaddin hadialaddin added the enhancement New feature or request label Nov 13, 2021
@hadialaddin hadialaddin added this to the Genie (v2.0) milestone Nov 13, 2021
@hadialaddin hadialaddin self-assigned this Nov 13, 2021
@JerryVdV
Copy link

JerryVdV commented Nov 16, 2021

Maybe set the condition of "Market Open "%" of available_balance" with an function that is based on % of portfolio (and if that amount is not available to then use the available balance).

That should help with ensuring that profitable trades make up for lost trades in the win/lose ratio.

@hadialaddin
Copy link
Owner Author

@JerryVdV You mean to divide balance into portfolio as well? (Eg. always take 30% of total Balance as Solana positions with a max of $ value at any time)?

@JerryVdV
Copy link

JerryVdV commented Nov 16, 2021 via email

@hadialaddin
Copy link
Owner Author

Got it, nice idea. Will add as a separate ticket.

@amesas
Copy link

amesas commented Nov 22, 2021

Are you planning to try limit close?

@JerryVdV
Copy link

JerryVdV commented Nov 22, 2021 via email

@hadialaddin
Copy link
Owner Author

@amesas Yes on the list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants