You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
SESSION=r'42["auth",{"session":"a:4:{s:10:\"session_id\";s:32:\"c53eec05c6f8a8be2d134d4fd55266f8\";s:10:\"ip_address\";s:14:\"46.138.176.190\";s:10:\"user_agent\";s:101:\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\";s:13:\"last_activity\";i:1707850603;}9f383935faff5a86bc1658bbde8c61e7","isDemo":1,"uid":72038016,"platform":3}]'
7
+
8
+
9
+
asyncdefwebsocket_client(url, pro):
10
+
whileTrue:
11
+
try:
12
+
asyncwithwebsockets.connect(
13
+
url,
14
+
extra_headers={
15
+
"Origin": "https://pocket-link19.co",
16
+
#"Origin": "https://po.trade/"
17
+
},
18
+
) aswebsocket:
19
+
asyncformessageinwebsocket:
20
+
awaitpro(message, websocket, url)
21
+
exceptKeyboardInterrupt:
22
+
exit()
23
+
exceptExceptionase:
24
+
print(e)
25
+
print("Connection lost... reconnecting")
26
+
awaitanyio.sleep(5)
27
+
returnTrue
28
+
29
+
30
+
asyncdefpro(message, websocket, url):
31
+
# if byte data
32
+
iftype(message) ==type(b""):
33
+
# cut 100 first symbols of byte date to prevent spam
34
+
print(str(message)[:100])
35
+
return
36
+
else:
37
+
print(message)
38
+
39
+
# Code to make order
40
+
# data = r'42["openOrder",{"asset":"#AXP_otc","amount":1,"action":"call","isDemo":1,"requestId":14680035,"optionType":100,"time":20}]'
0 commit comments