Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Comments

[WIP] Add simple Python websocket client for blockchain API#8

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/add-simple-websocket-client
Draft

[WIP] Add simple Python websocket client for blockchain API#8
Copilot wants to merge 1 commit intomainfrom
copilot/add-simple-websocket-client

Conversation

Copy link

Copilot AI commented Feb 10, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Simple python websocket client

https://github.com/websocket-client/websocket-client

from websocket import create_connection
options = {}
options['origin'] = 'https://exchange.blockchain.com'
url = "wss://ws.blockchain.info/mercury-gateway/v1/ws"
ws = create_connection(url, **options)
msg = '{"token": "{API_SECRET}", "action": "subscribe", "channel": "auth"}'
ws.send(msg)
result = ws.recv()
print(result)

{ "seqnum":0,

"event":"subscribed",

"channel":"auth",

"readOnly":false }

ws.close()


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Owner

@Kushmanmb Kushmanmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kushmanmb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants