changed samples

This commit is contained in:
Taha Afzal committed 2023-03-21 12:44:43 -04:00
1 parent 317f17d7da
commit ce9880a9b1
15 files changed
+272 -39

No files matched your search

+20 -2
View File
@@ -1,7 +1,25 @@
import json
import websocket
json_payload = {'jsonrpc': 2, 'method': 'subscribe', 'params': {'subscription_id': 1, 'type': 'orders', 'filter': {'symbol': ['ETH'], 'expiration': ['2023/04/28'], 'venue': ['deribit']}}, 'id': 1}
json_string = json.dumps(json_payload)
json_string = {
"jsonrpc": 2,
"method": "subscribe",
"params": {
"subscription_id": 1,
"type": "orders",
"filter": {
"symbol": [
"ETH"
],
"expiration": [
"2023/04/28"
],
"venue": [
"deribit"
]
}
},
"id": 1
}
ws_url = "ws://localhost:8080"
message_count = [0]
# Define a callback function to handle received messages