
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Unofficial Trading APIs for Finvasia Shoonya Web Platform.
Finvasia offers Zero Brokerage trading and is doing good recently with it's new Shoonya platform.
Please check shoonya web platform.
Open account with Finvasia
WORK IS STILL IN PROGRESS
USE AT YOUR OWN RISK
>3.9
is needed for this module to workpip install git+https://gitlab.com/algo2t/shoonya.git
.whl
file from releases sectionpython -m pip install shoonya-0.1.0-py3-none-any.whl
python -m pip install virtualenv
and then virtualenv venvvenv
=> .\venv\Scripts\activate
(this is an example for Windows OS)(venv) PS D:\trading\algo2trade\shoonya> python -m pip install -U pip wheel setuptools pylint rope autopep8
# Check config.py example FIRST
from config import username, password, panno
from shoonya import Shoonya
access_params = Shoonya.login_and_get_authorizations(username=username, password=password, panno=panno)
print(access_params)
with open('params.json', 'w') as wrl:
json.dump(access_params, wrl)
config.py
example
username='FA12345'
password='FinvAsia@P123'
panno='ABCDE1234Z'
params.json
import json
from config import username, password, panno
from shoonya import Shoonya, TransactionType, ProductType, OrderType, InstrumentType
# NOTE: The params.json is created using the above login example
ACCESS_FILE = f'params.json'
with open(ACCESS_FILE, "r") as access:
credentials = json.load(access)
access_token = credentials["access_token"]
key = credentials['key']
token = credentials["token_id"]
username = credentials['user_id']
usercode = credentials["usercode"]
usertype = credentials["usertype"]
panno = credentials['panno']
shn = Shoonya(username, access_token, panno, key,
token, usercode, usertype, master_contracts_to_download=['NSE', 'NFO'])
bal = shn.get_limits()
print(bal)
df = pd.DataFrame(bal, index=None)
df['MTM'] = df['REALISED_PROFITS'] + df['MTM_COMBINED']
print(df[['MTM','REALISED_PROFITS', 'AMOUNT_UTILIZED',
'CLEAR_BALANCE', 'AVAILABLE_BALANCE', 'MTM_COMBINED']])
scrip = shn.get_instrument_by_symbol('NSE', 'SBIN')
print(scrip)
using_existing_access_tokens.py
is present for helpFAQs
Unofficial Trading APIs for Finvasia Shoonya Platform, help for algo traders
We found that shoonya demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.