-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat: add SubscribeTickers func to providers #592
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c0d976a
feat: add SubscribeTickers to binance provider
RafilxTenfen 0040917
feat: add SubscribeTickers to huobi provider
RafilxTenfen 218b9ba
feat: add SubscribeTickers to huobi provider
RafilxTenfen c9dc660
feat: add SubscribeTickers to Okx provider
RafilxTenfen e578819
Merge branch 'main' of github.com:umee-network/umee into rafilx/provi…
RafilxTenfen 86f1107
Merge branch 'main' of github.com:umee-network/umee into rafilx/provi…
RafilxTenfen 22c8d15
Merge branch 'main' of github.com:umee-network/umee into rafilx/provi…
RafilxTenfen 517575d
add subscribe tickers func to changelog
RafilxTenfen cc48e38
removed unused method
RafilxTenfen edf861c
fix: set right amount of topics on reconnect
RafilxTenfen 22bb1a7
Merge branch 'main' into rafilx/providers-subscribe
alexanderbez 2b7bd85
Merge branch 'main' of github.com:umee-network/umee into rafilx/provi…
RafilxTenfen 6735621
chore: update godocs
RafilxTenfen cab7d5a
Merge branch 'rafilx/providers-subscribe' of github.com:umee-network/…
RafilxTenfen c132a0d
chore: update godocs
RafilxTenfen 15c57e9
chore: update godocs
RafilxTenfen 7a46a8a
chore: update godocs
RafilxTenfen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
cps
guaranteed to be an alternating list of Ticker, Candle, Ticker, Candle, etc?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the moment, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooo I didn't realize this. I'm not really a fan of that approach. It's too brittle IMO. Could we remove that assumption? Maybe just pass two args in instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After tvwap gets merged can we put these back as separate functions?
Candle & Ticker pairs should generally be considered separate, especially since candles can not always be used immediately (you can't calculate tvwap if the only candle you have is one that closed at that exact moment) - sorry I didn't realize this before. Would make this less brittle too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, these pairs are used only to subscribe to those channels. We could have 2 lists of subscribed pairs and separate them one for each type (Ticker, Candle).
The logic to subscribe in both of those channels was the same. So, in my idea made sense to only iterate through
cps ...types.CurrencyPair
once@adamewozniak @toteki @alexanderbez
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would rather iterate twice and keep the code clean and legible 🙏
These aren't big lists anyway