Comments (7)
Scrip codes doesn't seem to work with NSE as the exchange type.
from py5paisa.
Could I try this?
from py5paisa.
Sure @uberdeveloper
from py5paisa.
Any pointers?
I think we need to convert the existing master and map them to the keyword arguments for the place_order
function or should we go for a new order_place
function similar to Zerodha?
from py5paisa.
Hey @uberdeveloper
So I have been working on a GET endpoint which will return the scrip code for matching trading symbol.
I have written it for NSE cash and will soon be completing it for NSE Futures and Options also.
Does this help?
from py5paisa.
@invinciblycool
Thanks definitely.
So would this be a part of the existing place_order
function or a new order_by_symbol
function?
I prefer a function in the form
client.order_place(symbol='SBIN', exchange='NSE',qty=1,**kwargs)
where the exchange and symbol would be converted to the scrip_code and order would be placed.
The entire instruments file could be preloaded on a request so that the (symbol, exchange) tuple could be looked up for scrip code and vice-versa (scrip codes can be duplicates since they are used across exchanges)
Could I give a try in implementing this?
from py5paisa.
@invinciblycool any update on this feature for NSE Futures and Options... would be a great help if this can be released on priority.
from py5paisa.
Related Issues (20)
- Unable to establish web socket connection for market feed HOT 2
- Automatic authentication HOT 5
- Couldn't read data anymore from the API's
- not able to install liberary on google collab
- not able to install the py5paisa on google collab and AWS sagemaker
- Error while installing latest version using pip HOT 1
- Invalid syntax and deprecated readme
- RemoteOrderID is not being used while placing order on MCX
- Inconsistent behaviour between Tradestation website and API - Cash Orders on NSE generate errors like 'Scrip Not Available for Trading" - but can place order for same scrip on Tradestation website
- Incorrect response for Futures data
- Major Bug: self.payload not being reset
- Lack of Clear API Responses for User Actions
- get_expiry api not working for BANKNIFTY HOT 1
- Websocket shortcomings
- VTT Order placed successfully but not executed at condition.
- 'FivePaisaClient' object has no attribute 'WEBSOCKET_URL' HOT 2
- Server Response Time Issue with Scrip Master Contract Download HOT 1
- live streamming is not working HOT 1
- client.get_totp_session returns error `Expecting value: line 1 column 1 (char 0)`
- Unable to modify Bracket Order Legs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py5paisa.