☰
Login
Signup
Home
›
.Net API client
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
12.5K
All Categories
100
Node JS client
35
Go client
741
.Net API client
345
Kite Publisher
528
.Net / VBA / Excel (3rd party)
412
Algorithms and Strategies
920
Java client
958
API clients
389
PHP client
3.5K
Python client
318
Mobile and Desktop apps
1.2K
Market data (WebSockets)
3K
General
In this Discussion
August 2018
arjunender
August 2018
sujith
Error while placing cover order
arjunender
August 2018
in
.Net API client
Hi,
Receiving Invalid `api_key` or `access_token if placing order with variety : CO or BO
Dictionary response = kite.PlaceOrder(
Exchange: "NSE",
TradingSymbol: "ACC",
TransactionType: "BUY",
Quantity: 1,
Price: 1520.0m,
Product: "MIS",
OrderType: "LIMIT",
TriggerPrice: 1580.5m,
Variety: "CO"
);
If i remove variety then order is placed successfully.
Thanks
sujith
August 2018
The variety is lowercase co for cover order and lowercase bo for bracket order.
Can you try and paste the complete stacktrace here?
sujith
August 2018
Make sure you enable debug logs.
arjunender
August 2018
thanks sujith, working
This discussion has been closed.
Can you try and paste the complete stacktrace here?