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

feat: subscribe to all markets [issue 79] #81

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

fedemagnani
Copy link
Contributor

The issue OP suggested using a decorator wrapping MarketId. However, to avoid a "onion" approach, I thought it could beneficial for the user introducing methods to get all the market ids both for spot and perp markets. Upon these methods, I simply added the argument-free methods to start the subscriptions on all the markets

Closes #79

@jordy25519
Copy link
Collaborator

ty for the PR! the original suggestion using enum was to keep the public API surface smaller but happy to go ahead with this

@jordy25519 jordy25519 merged commit 1541de3 into drift-labs:main Dec 2, 2024
1 check failed
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.

Subscribe all markets/oracles helper
2 participants