alice_blue icon indicating copy to clipboard operation
alice_blue copied to clipboard

Order updates is not websocket based.

Open krishnavelu opened this issue 5 years ago • 36 comments

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.

krishnavelu avatar Apr 06 '19 17:04 krishnavelu

Hi is there any deadline for this ??

priyakumariengineer avatar Oct 28 '19 08:10 priyakumariengineer

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.

krishnavelu avatar Oct 28 '19 11:10 krishnavelu

Hi Krishna, I understand. So as per current situation we need to poll order history continuously. What is rate limit to fetch order history ??

priyakumariengineer avatar Oct 28 '19 11:10 priyakumariengineer

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.

krishnavelu avatar Oct 28 '19 13:10 krishnavelu

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 avatar Apr 24 '20 05:04 developersb

@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.

krishnavelu avatar Apr 29 '20 03:04 krishnavelu

does alice blue provides stream for transactions (from time of request) through heartbeat, if not, is this in the list of enhancement ?

shivendrarajawat avatar Jul 19 '20 05:07 shivendrarajawat

What do you mean by stream of transactions?

krishnavelu avatar Jul 20 '20 03:07 krishnavelu

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.

shivendrarajawat avatar Jul 20 '20 15:07 shivendrarajawat

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.

krishnavelu avatar Jul 21 '20 02:07 krishnavelu

Hi Krishna, How many Token we can generate from single account for respective day. As we know token is valid for a day only.

aatishgupta avatar Oct 26 '20 16:10 aatishgupta

Token generated is valid for a day.

krishnavelu avatar Oct 27 '20 02:10 krishnavelu

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.

aatishgupta avatar Oct 27 '20 15:10 aatishgupta

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.

krishnavelu avatar Oct 28 '20 02:10 krishnavelu

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.

aatishgupta avatar Oct 28 '20 03:10 aatishgupta

Hi Krishna, how to place single order in multiple account is there anyway. Please guide me. Thanks in advance. Thanks for your quick response.

aatishgupta avatar Oct 29 '20 15:10 aatishgupta

This library is for single user usage. Not for multiple.

krishnavelu avatar Oct 30 '20 02:10 krishnavelu

@krishnavelu Any update in this ticket? Can we get order updates via socket?

bhaveshagrawal1014 avatar Dec 11 '20 11:12 bhaveshagrawal1014

I have no updates. Also I’m not following up. You can contact alice directly.

krishnavelu avatar Dec 12 '20 01:12 krishnavelu

Hi Krishnavelu, Any update here? I mean is there websocket support for order update now?

Regards, Viswanath

viswanath514 avatar Aug 24 '21 17:08 viswanath514

No updates.

krishnavelu avatar Aug 25 '21 12:08 krishnavelu

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 .

viswanath514 avatar Aug 25 '21 13:08 viswanath514

Any update on this? Is there a new version coming?

ashish1497 avatar Dec 23 '21 10:12 ashish1497

I need to work on the V2, Its ready from Alice side.

krishnavelu avatar Jan 09 '22 16:01 krishnavelu

Is there any update Krishnavelu?

jaydave1988 avatar Mar 16 '22 18:03 jaydave1988

I was working. Left 1/2 way due to some problem. May be in april/may

krishnavelu avatar Mar 16 '22 19:03 krishnavelu

Do you have document about this? I am not able to find that in aliceblue's site. If yes could you please share?

jaydave1988 avatar Mar 17 '22 02:03 jaydave1988

https://github.com/krishnavelu/alice_blue/issues/373

krishnavelu avatar Mar 17 '22 05:03 krishnavelu

I went through the documents from #373 but did not find anything about websocket for order_update json structure.

jaydave1988 avatar Mar 17 '22 19:03 jaydave1988

Yes, still documentation is not clear about websocket. I’m interacting with alice about that.

krishnavelu avatar Mar 18 '22 02:03 krishnavelu