Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering Tokens and QR Decisions #8

Open
sumukshashidhar opened this issue Feb 10, 2022 · 2 comments
Open

Filtering Tokens and QR Decisions #8

sumukshashidhar opened this issue Feb 10, 2022 · 2 comments

Comments

@sumukshashidhar
Copy link
Contributor

When I took a look at the result of the following API endpoint:

https://api.kite.trade/instruments

I realized that there are over a 100,000 instrument_tokens that kite offers. However, due to the large amount of binary data that our socket pulls every second, we'll need to somehow limit these to only tokens that we want to trade, or are profitable, limit streaming duplicate tokens, etc.

Some approaches that I can think of are:

  1. Removing duplicates from exchanges. Some tickers are listed on both exchanges, in this case, we can disregard streaming the data for the BSE and only focus on the NSE.
  2. F&O tickers with expiry dates way into the future.
  3. Perhaps a few illiquid stocks?

Please submit a well documented PR for your approach. You must condense these 100,000 tokens into 3000 tokens or lesser.

@Vaibhav-Sahai @abhinav-chinta.

@sumukshashidhar
Copy link
Contributor Author

The data that I can see is of the following format:

instrument_token,exchange_token,tradingsymbol,name,last_price,expiry,strike,tick_size,lot_size,instrument_type,segment,exchange
275855110,1077559,EURINR22APRFUT,"EURINR",0,2022-04-27,0,0.0025,1,FUT,BCD-FUT,BCD
278434566,1087635,EURINR22AUGFUT,"EURINR",0,2022-08-26,0,0.0025,1,FUT,BCD-FUT,BCD
256503558,1001967,EURINR22DECFUT,"EURINR",0,2022-12-28,0,0.0025,1,FUT,BCD-FUT,BCD

The URL above has a public API call.

Please do use external data sources to perhaps remove illiquid stocks if need be.

@sumukshashidhar
Copy link
Contributor Author

It may also be wise to consult the QR decision in this choice process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant