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

+8 -2
View File
@@ -1,7 +1,13 @@
import json
import websocket
json_payload = {'jsonrpc': 2, 'method': 'delete_order', 'params': {'order_id': 541002}, 'id': 1}
json_string = json.dumps(json_payload)
json_string = {
"jsonrpc": 2,
"method": "delete_order",
"params": {
"order_id": 541002
},
"id": 1
}
ws_url = "ws://localhost:8080"
# Define a callback function to handle received messages
def on_message(ws, message):