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

Streaming API: subscribe to account tx with operations #248

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

aleksej-paschenko
Copy link
Collaborator

@aleksej-paschenko aleksej-paschenko commented Nov 16, 2023

This commit introduce a new feature: ability to subscribe to specific
set of operations on account.

SSE method is extended to accept optional "operations" query parameter:
/v2/sse/accounts/transactions?accounts=<accounts>&operations=<comma-separated list of ops>

Websocket:
subscribe_account takes in params with the following format:
<accountID>;operations=<comma-separated list of ops>

";operations=<comma-separated list of ops>" is optional, if not
configured, you'll be subscribed to all operations on account.

  This commit introduce a new feature: ability to subscribe to specific
set of operations on account.

 SSE method is extended to accept optional "operations" query parameter:
  /v2/sse/accounts/transactions?accounts=<accounts>&operations=<comma-separated list of ops>

 Websocket:
  subscribe_account takes in params with the following format:
     <accountID>;operations=<comma-separated list of ops>

  ";operations=<comma-separated list of ops>" is optional, if not
configured, you'll be subscribed to all operations on account.
@aleksej-paschenko aleksej-paschenko merged commit 75802be into master Nov 17, 2023
1 check passed
@aleksej-paschenko aleksej-paschenko deleted the filter-by-operation branch November 17, 2023 08:05
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