@DIYD2322 Sometime this External API gets in to trouble. Better to hardcode the IP in the code. This is for analytical purpose, but querying every time is overkill. So better to hardcode.

Posts made by Ashok
-
RE: Exception while retriving IP Address
-
RE: Position API returning AB2001
@admin Yes. thanks for the quick resolution. Thanks.
Regards
Ashok -
Position API returning AB2001
Hi Admin,
I am getting the below error in random for many accounts. Without the response of the position() API, it is very difficult to manage the postions throught API.
Seems the accounts with many open and closed positions are impacting, but this is just a estimate.
API: positions()
Sample accounts: REHR1061, P185844, M79046
Error:
{'data': None,
'errorcode': 'AB2001',
'message': 'Internal Error',
'status': False}I am aware of the rate limit and the api is executed only every 2 mins once.
Regards,
Ashok -
RE: How to get current portfolio using api
@vijayyande Indeed getHoldings API should give the portfolio. Is it missing something ? I get that it wont show EFT / Bonds
-
RE: Order Rejection while placing order in GOLDM
@PareshBhatiya I afraid GOLM Lot size is 100.
-
RE: New Feature Announcement: Enhanced Real-Time Market Data with our Market Data API!
@admin Will it support all exchange segments? NFO, MCX ?
-
RE: WebSocket 2.0 Streaming is not Receiving the Live Price Feed
@anil_patel @Vignesha PM me. WS 2.0 is indeed working fine. Let me know any help is required.
-
RE: Given API rate limits are - Per User or Per API ?
@shivdasb1996 I believe that the rate limit is per API key. But haven't tested it directly.
I am surprised where you will need 10 orders / second -
RE: order not open status meaning.
@PandaTrade Is the quantity 325 intended ?
-
RE: Getting "Something Went Wrong, Please Try After Sometime"
@skulkarni , Did you changed your mpin for APP/Web application ?
-
RE: Need 'Best Five Data' example in WS v2
Hi @GannuRamya You need to use
mode = 3
in your websocket connection to get the best 5 quote. -
RE: Getting [{"msg":"cn","task":"cn","ak":"nk"}] from websocket
@tkrevathi Looks like your are using old websocket? Did you migrate to the new one ?
-
RE: challenges using Smartapi
Hope you are doing good. From your handle I can understand that you are a full time trader, but still you are complaining about the nuances in the market.
Patience is the key. big or small, one can easily carve out a space in any challenging environment. I am not saying i do not have the hurdles, i am exactly in same boat, but need to adopt. In my opinion, if we could manage the risks, we can still make 1.5 - 2% ROI every month.
Trending or not, one trick Algo will always land you in red. a good cocktail of algo is the way to go.
BR,
Ashok. -
RE: WebSocket is not returning script values
@GannuRamya, looks like you are using websocket V1. AB have migrated to websocketV2. Below is are the details.
-
RE: Websocket Call in Java
@laskshmi I am not familiar with Java, but you need to parse the binary data. below is the reference function implemented by Zerodha. Should be similar.
Probably try base64 encoding ?
-
RE: "Exception while retriving IP Address,using local host IP address" causing performance issues.
@ravitandur You can comment the api call for the public IP. I have done it and have no impact on the functionality.
DM me if you have any more questions.