studiogangster / sensibull-realtime-options-api-ingestor

Sensibull Realtime Option-chain Data: To empower your trading strategies with real-time options data for Algo-Trading and Scalping 🔥📈
https://github.com/studiogangster/sensibull-realtime-data
26 stars 8 forks source link

Not able to locate configuration file #2

Open VINIT777 opened 7 months ago

VINIT777 commented 7 months ago

Can you help me in locating config file where i need to update instrument & sensibull credentials? Also does it need sensibull premium?

studiogangster commented 7 months ago

No need to provide credentials. It will work without it. Just spin the docker-container. By default, realtime data for all the instruments are pulled. To customise it, you can update the list of instruments in file: https://github.com/studiogangster/sensibull-realtime-options-api-ingestor/blob/main/realtime-data/instruments_symbols.js

VINIT777 commented 7 months ago

Thanks for the response - I have few more questions on getting started: After the docker compose -up - inside the container i did npm start - now this is the output which I got

image

What should i do post this?

Where is the scrapped data folder gets created?

VINIT777 commented 7 months ago

I am trying to get data for say reliance - so i have kept only one instrument in instruments symbol.js as below

image

Do I Need to change anything here as well?

studiogangster commented 7 months ago

After spinning up the docker, , look for ".data" directory in the root of project. It should have the feeds of all the instruments in jsonl format.

".data" is hidden (since it starts with a dot), look for all folders: ls -alh

VINIT777 commented 7 months ago

Thanks for responding - I am able to see data now - but I tried to modify the instrument to get weekly expiry for 22000 strike price for nifty - but it is still pulling data for all the strike prices - also how to know if the pulled data is for monthly or weekly option - please review below :

const instruments =  [
    {
      "instrument_token": 256265,
      "name": "NIFTY 50",
      "tradingsymbol": "NIFTY",
      "underlying_instrument": "NIFTY",
      "expiry": "WEEKLY",
      "strike": 22000,
      "tick_size": 0,
      "lot_size": 0,
      "multiplier": 1,
      "is_underlying": true,
      "is_non_fno": false,
      "tradable": false,
      "broker": "2",
      "mode": "full",
      "exchange": "NSE",
      "segment": "NSE-INDICES",
      "instrument_type": "EQ",
      "last_price": 18877.7,
      "last_updated_at": "2023-10-26T12:47:59+05:30",
      "last_traded_timestamp": 0,
      "sectors": [
        "Index"
      ]
      }
    ];
VINIT777 commented 7 months ago

What modification do i need to do above to get NIFTY 22000 Weekly expiry data?

studiogangster commented 7 months ago

For each instrument, aggregated data is collected at once, for every tick. So, on each line, you will be getting details for all the strike prices. Further, you can filter out the data as per the requirement.

VINIT777 commented 7 months ago

Yes - Strike price I can filter post data collection as well - but its currently pulling data for monthly options only - how to get weekly option data?

studiogangster commented 7 months ago

Currently due to an urgent work, I am unable to update the repo. Will soon integrate weekly expiry in the next release.

shikharvaish28 commented 7 months ago

@studiogangster came across your work - it's beautifully done. Kudos!