Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order updated through websocket #268

Open
blackswanme7 opened this issue Dec 18, 2023 · 1 comment
Open

order updated through websocket #268

blackswanme7 opened this issue Dec 18, 2023 · 1 comment

Comments

@blackswanme7
Copy link

  • 5paisa Python SDK version:latest
  • Python version:3.11
  • Operating System:macos

Description

i need to get the real time order update from websocket. when i place an order through broker i need to get that update
PLEASE PROVIDE A CODE SNIPPET

What I Did

def on_message(ws, message):
    print("Message received:", message)

# First, establish the WebSocket connection
client.connect(wspayload={})  # Assuming no specific payload is required

# Then, set up the message handler
client.receive_data(on_message)

@bluebenzene
Copy link

@5paisa major issue .provided snippet won't work for order updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants