Skip to main content

websocket_test

Project description

pip install zerocap-websocket-test -i https://www.pypi.org/simple/

demo:

from zerocap_websocket_test import ZerocapWebsocketTest

API key and secret required

apiKey = “”

apiSecret = “”

websocket = ZerocapWebsocketTest(apiKey, apiSecret)

Subscribe to Market data

market_connect = websocket.get_market()

Subscription order updates and transaction records

orders_connect = websocket.get_orders()

while True:

# Get subscription messages

message = websocket.get_message(market_connect)

print(f"Receiving message from server: \n{message}")

if not message:

    print("Connection close")

    break

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zerocap_websocket_test-1.0.9.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file zerocap_websocket_test-1.0.9.tar.gz.

File metadata

File hashes

Hashes for zerocap_websocket_test-1.0.9.tar.gz
Algorithm Hash digest
SHA256 55662df4977a70a52fe41b05fb9dd07350cc668f8e55e8d7ab0df488fa556e5c
MD5 f85d37fe2a637731adecca9a303c6804
BLAKE2b-256 878c067f8429715f1831be7e6f429e09fc1099cb16132707a1c0ad32eb2b9e61

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page