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

Added workflow to automate PR approvals #27

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions IntelliTrader/IntelliTrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import os
import pandas as pd
import json

user_cred_path = "./assets/user_credentials.txt"
config = open(user_cred_path,'r').read().split()
Expand Down
9 changes: 6 additions & 3 deletions IntelliTrader/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ def __init__(self, object):

# Fetch instruments list
def fetch_instruments(self):
instruments_dump = self.prop['k_token'].instruments('NSE')
self.help.write_output_csv('nse_instruments.csv', instruments_dump)

nse_instruments_dump = self.prop['k_token'].instruments('NSE')
self.help.write_output_csv('nse_instruments.csv', nse_instruments_dump)

# Fetch instruments list
def fetch_instruments(self):
bse_instruments_dump = self.prop['k_token'].instruments('BSE')
self.help.write_output_csv('bse_instruments.csv', bse_instruments_dump)