alice_blue
alice_blue copied to clipboard
Order updates is not websocket based.
All other brokers like zerodha & upstox has their order updates as websocket based.
Meaning you don't need to poll for getting an order update using get_order_history()
If you subscribe for order update, the subscribed function will be called whenever there is an order update.
This feature is not yet implemented in alice-blue server.
Hi is there any deadline for this ??
This should be implemented from alice blue side first. Then the support for the same can be addd in library. Currently there is no deadline available.
Hi Krishna, I understand. So as per current situation we need to poll order history continuously. What is rate limit to fetch order history ??
Currently there is no rate limit implemented. But that doesn’t mean you can poll every millisecond. By doing so you’ll force alice blue to implement rate limit. Same thing happened in upstox.
Poll few seconds, not milliseconds.
Here is got an error while WebSocket is running mode check below
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): ant.aliceblueonline.com:443
DEBUG:urllib3.connectionpool:https://ant.aliceblueonline.com:443 "GET /api/v2/order HTTP/1.1" 200 None
ERROR:websocket:error from callback <bound method AliceBlue.__on_error_callback of <alice_blue.alice_blue.AliceBlue object at 0x7f2e7a82f7b8>>: error_callback() missing 1 required positional argument: 'error'
@developersb Why are you posting here? Your problem is nowhere related to ‘order update based on websocket.
This error is due to a missing positional argument ‘error’ while calling a function. I guess you missed error argument in error callback function.
does alice blue provides stream for transactions (from time of request) through heartbeat, if not, is this in the list of enhancement ?
What do you mean by stream of transactions?
What do you mean by stream of transactions?
see this example https://developer.oanda.com/rest-live-v20/transaction-ep/#collapse_6_example_curl_1
this kind of streaming I am talking about.
You mean order status using websocket? That’s what this issue is about. Its still not available from server side. If its available we can implement in the library.
Hi Krishna, How many Token we can generate from single account for respective day. As we know token is valid for a day only.
Token generated is valid for a day.
Token generated is valid for a day.
Right token is valid for the day but how many token i can create in single day. For example if i ran 10 script then 10 token will be generated. then any limitation for token generation. Is any disadvantage of multiple token generation.
why you need 10 tokens? Use the same token for the all scripts. You can generate only one token per account. Once you generate 2nd token the first will be invalidated.
why you need 10 tokens? Use the same token for the all scripts. You can generate only one token per account. Once you generate 2nd token the first will be invalidated.
Thanks for clarification.
Hi Krishna, how to place single order in multiple account is there anyway. Please guide me. Thanks in advance. Thanks for your quick response.
This library is for single user usage. Not for multiple.
@krishnavelu Any update in this ticket? Can we get order updates via socket?
I have no updates. Also I’m not following up. You can contact alice directly.
Hi Krishnavelu, Any update here? I mean is there websocket support for order update now?
Regards, Viswanath
No updates.
Thanks for the update.
On Wed, 25 Aug 2021, 17:31 Krishna Velu, @.***> wrote:
No updates.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/krishnavelu/alice_blue/issues/2#issuecomment-905438097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIALHU5QDF4S4I6YKJKW2WTT6TLTPANCNFSM4HEBKEPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Any update on this? Is there a new version coming?
I need to work on the V2, Its ready from Alice side.
Is there any update Krishnavelu?
I was working. Left 1/2 way due to some problem. May be in april/may
Do you have document about this? I am not able to find that in aliceblue's site. If yes could you please share?
https://github.com/krishnavelu/alice_blue/issues/373
I went through the documents from #373 but did not find anything about websocket for order_update json structure.
Yes, still documentation is not clear about websocket. I’m interacting with alice about that.