@aakashsri013 Could you please post the final resulting JSON that is being sent to post the order?
Posts made by godboleamit
-
RE: Unable to place order,please check params
-
RE: Changes in API Rate Limit
@Moderator_1 said in Changes in API Rate Limit:
500
Thanks for clarifying the rate limit!
But how the rate limits per second and per minute are related to each other?
For example:
Rate limit for - /rest/secure/angelbroking/historical/v1/getCandleData
- 3 per second and
- 500 per minute
So if we consider per second limit rate as a primary rate limit, then max rate limit per minute is 180 per minute.
Hence how to use the rate limit per minute?
Any use case as an example will be useful.
-
RE: Python function for Option Greeks
Hey @hardip, getOptionGreeks() function is not defined. You will need to add this function yourself.
-
RE: Python function for Option Greeks
For those who need this function to get Option Greeks.
- Please go to the file - smartConnect.py.
- Add the following function to the file -
def getOptionGreeks(self, name, expirydate): optiongreeks = self._postRequest("api.market.optiongreeks", {"name": name,"expirydate": expirydate}) return optiongreeks
- Add one more line to the routes variable - (Look at the second line)
"api.allholding": "/rest/secure/angelbroking/portfolio/v1/getAllHolding", "api.market.optiongreeks": "/rest/secure/angelbroking/marketData/v1/optionGreek", "api.individual.order.details": "/rest/secure/angelbroking/order/v1/details/",
- Call a function as follows -
optionGreeks = smartApi.getOptionGreeks('TCS', '29FEB2024') print(optionGreeks)
You will get the required response.
-
Python function for Option Greeks
Hi,
Thanks for providing the feature of option greeks!
But do you have any dedicated function in python to retrieve these option greeks values?
E.g. any dedicated function like - individual_order_details(self, qParam) will be helpful.
If you already dedicated python function, please let us know.
Thanks!
-
RE: Historical data - 2, 3 and 4 Hours data can't be fetched
@softice Agreed. I am doing the same thing right now.
-
Historical data - 2, 3 and 4 Hours data can't be fetched
Hello,
Historical data for any instrument can't be fetched for the duration of 2, 3 or 4 hours. But these options are available for UI.
It would be great if you can allow users to fetch the data for 2,3 or 4 hours of duration.
Thanks!
-
RE: api.candle.data call is failing
Thanks for the response! I figured out that symboltoken which I was passing on was wrong. And due to which no data was returned.
But as problem was overlooked, it took a lot of time to determine whether the problem was at my end or technical glitch at your end.
Probable modifications which I can think of:
- Validate the data before further processing - and if something is wrong, return a graceful message to the calling user.
- If there is a technical glitch, also inform users accordingly.
Clarity in the responses will save a lot of time for end users.
-
api.candle.data call is failing
api.candle.data call is failing with no data returned. Could you please investigate?
-
placeOrder is still returning orderid
Hi All,
I am using smartapi-python version 1.3.9. But with this code, placeOrder is still returning the orderid.
But as per your announcement dated 11-Oct-2023 [https://smartapi.angelbroking.com/topic/4013/important-update-individual-order-status-api-using-unique-order-id-10-requests-second], it should return an response object.
Could you please check?
Thanks and Regards
Amit -
RE: Did stop loss and shorting stopped working?
hey @Vignesha, if you are shorting, then stop loss order has to be with transactiontype as 'BUY'.
-
RE: Important Update: Individual Order Status API using Unique Order ID (10 Requests/Second)
@trader_noob said in Important Update: Individual Order Status API using Unique Order ID (10 Requests/Second):
uniqueorderid
I agree to the question by @trader_noob. What's the difference between orderid and uniqueorderid. And when should we use uniqueorderid?