changed samples
This commit is contained in:
1 parent
317f17d7da
commit
ce9880a9b1
15 files changed
+272
-39
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user