Can anyone put a sample Python based bot code?

I wanted to know how to process the json data & display in the plot after following code:

import websocket
import json

def on_open(ws):
json_data = json.dumps({'ticks':'R_100'})

def on_message(ws, message):
print('ticks update: %s' % message)

if name == "main":
apiUrl = "wss://"
ws = websocket.WebSocketApp(apiUrl, on_message = on_message, on_open = on_open)

Can anyone provide , explain with sample code?


Sign In or Register to comment.