Use RxJava to create a non blocking pipeline to fetch open orders #410
No reviewers
Labels
No labels
blocked
breaking
bug
dependencies
duplicate
enhancement
good first issue
help wanted
question
tech debt
testing
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
scion/arbitrader!410
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "remove-thread-sleep-when-fetching-open-orders"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Removed the thread sleep when fetching for open orders.
Built a non blocking pipeline using (RxJava) Observables.
Use a flag to control the flow, if we have open orders then we skip any incoming event. Not very happy with this flag approach so any suggestion is very welcome.
It misses the logging part (calling
collectOpenOrdersand logging it), I will try to add it tomorrowStill testing
I also saw the
Trades executed successfully!message before the trades had both filled when I was testing this overnight. I'm experimenting with it a little bit and I'll keep you posted if I figure anything out. It looks good conceptually though.shor -> t <- OpenOrdersObservable:)Ready to be reviewed :)
My local tests ✔️