☰
Login
Signup
Home
›
Kite Publisher
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.9K
All Categories
0
Incidents
176
Node JS client
51
Go client
840
.Net API client
397
Kite Publisher
554
.Net / VBA / Excel (3rd party)
490
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
409
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
General
In this Discussion
January 9
salim_chisty
Basket Order
subha
January 9
in
Kite Publisher
I am trying to create a basket order programatically to check the margin requirements. But it is always giving zero values though the parameters are correct
url = "
https://api.kite.trade/margins/basket
"
headers = {
"Authorization": f"token {API_KEY}:{ACCESS_TOKEN}",
"Content-Type": "application/json"
}
basket = [
{
"exchange": "NSE",
"tradingsymbol": "NIFTY2611327000CE",
"transaction_type": "BUY",
"quantity": 65,
"product": "NRML",
"order_type": "LIMIT",
"price":1
}
,
{
"exchange": "NSE",
"tradingsymbol": "NIFTY2611326500CE",
"transaction_type": "SELL",
"quantity": 65,
"product": "NRML",
"order_type": "LIMIT",
"price":2
}
]
response = requests.post(url, json=basket, headers=headers)
print(response.json())
Can you please suggest where it is failing?
salim_chisty
January 9
Kindly ensure that the exchange for F&O contracts is set to
NFO
and check.
Sign In
or
Register
to comment.
NFOand check.