jugaad-py / jugaad-trader

Unofficial python client for Zerodha
https://marketsetup.in/documentation/jugaad-trader/
157 stars 112 forks source link

[Feature] How can I add the kite.order_margins function? #50

Closed BruceWayne1219 closed 1 year ago

BruceWayne1219 commented 1 year ago

I can see the api endpoint being discussed in the official forums, however I can't seem to figure out how I can add another function.

For that matter, where are the other functions saved in the scripts? Or are they not explicitly defined? Because, if I could see them, I could contribute more similar to them.

ssheikh098 commented 1 year ago

@BruceWayne1219 whoever wrote this package has utilized all the standard package for end point call. can you not just call below function as kite.margin() or kite.order_margins()...

image

image

image

BruceWayne1219 commented 1 year ago

The order_margins function doesn't exist. Maybe I need to update?

Also, where are your screenshot from? They seem to be from the script I am looking for.

On Thu, Jan 19, 2023, 5:09 AM noname @.***> wrote:

@BruceWayne1219 https://github.com/BruceWayne1219 whoever wrote this package has utilized all the standard package for end point call. can you not just call below function as kite.margin() or kite.order_margins()...

[image: image] https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png

[image: image] https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png

[image: image] https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png

— Reply to this email directly, view it on GitHub https://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396235300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.***>

ssheikh098 commented 1 year ago

It should be part of standard Kite package. I hope you have latest Kite package. As i said earlier, the developer of this package is calling functions from standard kite package. It should be same way if you standard zerodha package.

standard zerodha package here .. https://github.com/zerodha/pykiteconnect

I copied those functions screenshots from here.

The order_margins function doesn't exist. Maybe I need to update? Also, where are your screenshot from? They seem to be from the script I am looking for. On Thu, Jan 19, 2023, 5:09 AM noname @.> wrote: @BruceWayne1219 https://github.com/BruceWayne1219 whoever wrote this package has utilized all the standard package for end point call. can you not just call below function as kite.margin() or kite.order_margins()... [image: image] https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png [image: image] https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png [image: image] https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png — Reply to this email directly, view it on GitHub <#50 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.>

BruceWayne1219 commented 1 year ago

Interesting! I only have jugaad-trader installed. I don't have the official kite at all, I am still able to use various other functions such as "margins", "place_gtt", etc.

The only function I am unable to call is "order_margins".

Also, just like the official kiteconnect users can use the api_key and create custom functions using the api document ( https://kite.trade/docs/connect/v3/margins/)

Can jugaad-trader users do the same?

On Thu, Jan 19, 2023, 10:40 AM noname @.***> wrote:

It should be part of standard Kite package. I hope you have latest Kite package. As i said earlier, the developer of this package is calling functions from standard kite package. It should be same way if you standard zerodha package.

The ordermargins function doesn't exist. Maybe I need to update? Also, where are your screenshot from? They seem to be from the script I am looking for. … <#m-7759911262616845130_> On Thu, Jan 19, 2023, 5:09 AM noname @.> wrote: @BruceWayne1219 https://github.com/BruceWayne1219 https://github.com/BruceWayne1219 https://github.com/BruceWayne1219 whoever wrote this package has utilized all the standard package for end point call. can you not just call below function as kite.margin() or kite.order_margins()... [image: image] https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png [image: image] https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png [image: image] https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png — Reply to this email directly, view it on GitHub <#50 (comment) https://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396235300>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.>

— Reply to this email directly, view it on GitHub https://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396448123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZL2NMTVMIQBJGWSX6LWTDEDBANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.***>

ssheikh098 commented 1 year ago

Without standard how can you call Jugaad trader? When you install jugaad trader the standard package installs automatically.

@.***

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Wednesday, January 18, 2023 10:16 PM To: @.> Cc: @.>; @.> Subject: Re: [jugaad-py/jugaad-trader] [Feature] How can I add the kite.order_margins function? (Issue #50)

Interesting! I only have jugaad-trader installed. I don't have the official kite at all, I am still able to use various other functions such as "margins", "place_gtt", etc.

The only function I am unable to call is "order_margins".

Also, just like the official kiteconnect users can use the api_key and create custom functions using the api document ( https://kite.trade/docs/connect/v3/margins/)

Can jugaad-trader users do the same?

On Thu, Jan 19, 2023, 10:40 AM noname @.***> wrote:

It should be part of standard Kite package. I hope you have latest Kite package. As i said earlier, the developer of this package is calling functions from standard kite package. It should be same way if you standard zerodha package.

The ordermargins function doesn't exist. Maybe I need to update? Also, where are your screenshot from? They seem to be from the script I am looking for. … <#m-7759911262616845130_> On Thu, Jan 19, 2023, 5:09 AM noname @.> wrote: @BruceWayne1219 https://github.com/BruceWayne1219 https://github.com/BruceWayne1219 https://github.com/BruceWayne1219 whoever wrote this package has utilized all the standard package for end point call. can you not just call below function as kite.margin() or kite.order_margins()... [image: image] https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png https://user-images.githubusercontent.com/14261211/213318815-25511b9d-fc15-4626-80c9-fe3aee5a3649.png [image: image] https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png https://user-images.githubusercontent.com/14261211/213318468-46593d8b-392b-4093-aa19-4c0f11ee92be.png [image: image] https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png https://user-images.githubusercontent.com/14261211/213318301-4623a9c3-83c6-4af8-8524-ea0688b48026.png — Reply to this email directly, view it on GitHub <#50 (comment) https://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396235300>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI https://github.com/notifications/unsubscribe-auth/AHQXGZN4B6RSSMS5Z6NVBB3WTB5JZANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.>

— Reply to this email directly, view it on GitHub https://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396448123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHQXGZL2NMTVMIQBJGWSX6LWTDEDBANCNFSM6AAAAAAT7R23UI . You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/jugaad-py/jugaad-trader/issues/50#issuecomment-1396451439, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMZXW5TRCTGWEZZEENGLNTWTDEZ7ANCNFSM6AAAAAAT7R23UI. You are receiving this because you commented.Message ID: @.***>

sevakram commented 1 year ago

@BruceWayne1219 , Please re-install jugaad-trader and report the issue if issue still persists