HI AS A EXAMPLE I WANT TO LAST 10 DAY DAY ITS MEANS LAST 10 MARKET DAY DATA HOW CAN I GET AND NEXT TIME I WANT TO GET 25 MARKET DAY DATA HOW CAN I GET AND SKIP HOLIDAY AND SATURDAY SUNDAY.
hii my questions was that if i try to fetch data of last 5 day and there is one holiday between those 5 days then api is giving me data of only 4 days. It is not adding an extra day for that it cut of the holiday.
How can i get those data ? hope you understand the question.
https://kite.trade/docs/connect/v3/orders/ Here in your KiteConnect Documentation you have written: order_type MARKET Market order LIMIT Limit order SL Stoploss order ? SL-M Stoploss-market order ?
It is not adding an extra day for that it cut of the holiday.
You need to compute the required from and to input date for your historical data fetching at your end considering all the declared exchange holiday and weekend's. You need to write a helper method that calculates trading days between the given period or calculate dates for last n trading days. Eg: If you are fetching data for the last 5 days and there was an exchange holiday in between, then you need to go back one more day for from data input.
We will update the documentation. NRML is a product type and not an order type. The params in the place order include multiple order params like price, product, tradingsymbol, exchange, trigger price, validity, order type, variety, and so on based on the type of order you place.
In your case, if you want to place a LIMIT order then you need to pass params with tradingsymbol, exchange, price, validity, product(CNC/NRML/MIS), variety.
@jay_joshi, Please create a new thread for new queries, it might help others. This answer gets hidden since the heading is about something else and won't be visible to someone else who is looking for the same.
hii my questions was that if i try to fetch data of last 5 day and there is one holiday between those 5 days
then api is giving me data of only 4 days. It is not adding an extra day for that it cut of the holiday.
How can i get those data ? hope you understand the question.
Thanks.
https://kite.trade/docs/connect/v3/orders/ Here in your KiteConnect Documentation you have written:
order_type
MARKET Market order
LIMIT Limit order
SL Stoploss order ?
SL-M Stoploss-market order ?
but in the JavaScript documentation you have written
https://kite.trade/docs/kiteconnectjs/v3/KiteConnect.html#placeOrder
order_type string
Order type (NRML, SL, SL-M, MARKET).
What I have to pass in the parameter for limit order in JavaScript ?
NRML or LIMIT ?
Thanks
from
andto
input date for your historical data fetching at your end considering all the declared exchange holiday and weekend's. You need to write a helper method that calculates trading days between the given period or calculate dates for last n trading days. Eg: If you are fetching data for the last 5 days and there was an exchange holiday in between, then you need to go back one more day forfrom
data input.variety
andorder_type
.I am not asking for variety.
https://kite.trade/docs/connect/v3/orders/#glossary-of-constants
order_type
MARKET
LIMIT
SL
SL-M
These are parameters supported for
order_type
in the above link.https://kite.trade/docs/kiteconnectjs/v3/KiteConnect.html#placeOrder
placeOrder(variety, params)
here check the
params
it is supporting following parameters in
order_type
NRML
MARKET
SL
SL-M
let me know if you still can't understand the question.
What I have to pass in the parameter for limit order in JavaScript ?
NRML or LIMIT ?
Thanks
The params in the place order include multiple order params like price, product, tradingsymbol, exchange, trigger price, validity, order type, variety, and so on based on the type of order you place.
In your case, if you want to place a LIMIT order then you need to pass params with tradingsymbol, exchange, price, validity, product(CNC/NRML/MIS), variety.