@Dinesh We are releasing a TradeButton API to make placing orders easier. If you don't want to program the complexity of handling orders, you can use the WebView to place and view their status. Coming soon.
Posts made by shrini.viswanath
RE: Hey, any ETA... when the first version of Core .Net API will be available ?
@Shashank done! please visit https://upstox.com/forum/topic/92/authorized-net-api for more details
Authorized .NET API
@HowUTrade has released a .NET Library for Upstox API.
You can access the API docs at https://howutrade.in/docs/upstoxnet
And download the library at https://howutrade.in/docs/upstoxnet/html/upstoxnet.zip
This library is just a wrapper built around the Upstox API.
It supports all methods of Upstox API and wraps all the raw HTTP calls as simple functions. All JSON responses are parsed in the background and user is provided with data that's ready to use for analysis.
Getting streaming quotes is made easy with this library and all heavy load WebSocket processing are done in the background. The user is provided with just live quotes.
This library is COM enabled, so you can directly call this library from external applications like Excel etc.
- Inbuilt Webbrowser Control for login flow
- Supports RTD Server to get live quotes in Excel
- Separate Methods to Place Orders in Simple, OCO & CO
- Automatic reconnection of WebSocket in case of network failure
- Update Events to get notified on Live Quotes, Orders, Positions and Trades
Users have the option to choose either the inbuilt web browser control or can login in their own browser.
Loginmethod to get access code
GetAccessTokenmethod to get access token
GetMasterContractmethod to download symbols.
Once the symbol is downloaded, you can all other methods.
Note: Symbol download is mandatory
You can check the symbol download status from the
The first login of the day will take little bit time as the symbols are downloaded from the Upstox server.
Every subsequent login will be fast since the symbols have already loaded.
The symbol download is mandatory, because this library validates your request (like place order etc) for invalid details and throws exceptions if any. You can catch the exception and will be useful to debug your code quickly. So only valid requests are processed and sent to the server.
How to install
To use with Excel
Just download the Zip file from above and extract it to any folder.
Follow the install instructions included.
To use with Visual Studio
Just download the Zip file from the link above and extract it to
debugfolder of your project.
Add reference to
Sample Excel Sheet
A sample Excel sheet in the ZIP file which uses the
UpstoxNet.dllis included in the ZIP file.
The entire trading platform functionality has been brought inside Excel. All method/functions have been wrapped in as User Defined Functions. The user can call this function directly from within the cell. The user can use this excel sheet as a base to make her/his own strategies.
RTD Server Details
The Syntax for Excel RTD Function is
RTD (ProgID, ServerName, Topic1, [Topic2])
Topic1- Ticker in the following format:
Topic2- A supported price field (listed below)
Supported Price Fields
Do feel free to reach out to @HowUTrade for any support or questions!
RE: Getting orderid of pending stoploss order of a market cover order
Yes you should get it on
If you have the WebSocket running, you'll get the new order created event arrive at real-time.
It cannot come as a response to the main
place_orderevent because waiting for execution at exchange can take some time.
RE: Rather than exception, a graceful response needed while canceling order failures
@ganesh can you post sample code and response? Will put it in our list of issues