In [3]:
from algomojo import *

#set the API Key and API secret key, Broker Code and the Version
#Broker Code "ab" = aliceblue, "tj" = tradejini, "zb" = zebu, "en" = enrich for the list of short codes supported kindly check with algomojo team
#default version used Ver = 1.0

tj=api("86cbef19e7e61ccee91e497690d5814e","a256707821d7b97988eef6b90a230e35",broker="tj",version=1.0)
client_id = "TS2499"
print(tj)
<algomojo.pyalgomojo.api object at 0x0000018AF9B42190>
In [2]:
#Get Token No using symbol info
tj.symbol_info(symbol="BHEL-EQ")
Out[2]:
[{'symbol_segment': 'NSE_EQ',
  'symbol_product': 'EQUITY',
  'symbol': 'BHEL',
  'symbol_token': '438',
  'trading_symbol': 'BHEL-EQ',
  'trading_symbol_desc': 'BHEL',
  'expiry_date': None,
  'expiry_date_desc': None,
  'strike_price': None,
  'lot_size': '1',
  'seg_seq': '1',
  'order_seq': '1'}]
In [4]:
tj.security_info(security_dict={"uid":client_id,"Exchange":"NSE","SrchFor":"438"})
Out[4]:
{'IntPayDate': '1 Jan, 1980',
 'PriceQuatation': 'NA',
 'SellCryCost': 0,
 'Blq': 1,
 'HCircuitLimit': '32.05',
 'BuyCryCost': 0,
 'IMSpreadBenefit': 'ON',
 'Totalopeninterest': 105063000,
 'DeliveryUnits': 'NA',
 'DeliveryEndDate': 'NA',
 'OtherSellMargin': 'NA',
 'NoDelEndTime': '1 Jan, 1980',
 'NoDelStartDate': '1 Jan, 1980',
 'TickSize': '5',
 'ExpiryDte': 'NA',
 'OtherBuyMargin': 'NA',
 'Comments': 'ANNUAL GENERAL MEETING',
 'TenderPeriod': 'NA',
 'ListingDate': '1 Jan, 1980 - 0:0:0',
 'Symbol': 'BHEL-EQ',
 'Series': 'EQ',
 'CreditRating': '26.25-32.05',
 'Exposuremargin': 'NA',
 'LocalUpdateTime': '19 Nov, 2020',
 'IssedCapital': '348.20634 (Crs)',
 'PriceNumerator': '1',
 'IsuStartDate': '24 Oct, 1994',
 'PermitedtoTrade': 0,
 'TenderPeriodEnd': 'NA',
 'Warning': 0,
 'Remarks': 'NA',
 'DPR1': '26.25',
 'BuyVarMargin': 'NA',
 'DPR2': '32.05',
 'BookClsStartTime': '1 Jan, 1980',
 'Perchgopeninterest': 0,
 'ExpulsionDate': '1 Jan, 1980',
 'Exchange': 'NSE',
 'Issuerate': 0,
 'QuantityUnit': 'NA',
 'ReAdminDate': '1 Jan, 1980',
 'SellVarMargin': 'NA',
 'TenderPeriodStart': 'NA',
 'GeneralDenomenator': '1',
 'openinterest': 0,
 'ExchSeg': 'nse_cm',
 'Spotprc': 'NA',
 'MarketType': 'NA',
 'RecordDate': '21 Sep, 2020',
 'ValueTradedToday': '75.41628 (Crs)',
 'LTT': '20/11/2020 13:49:39',
 'PriceUnits': 'NA',
 'GeneralNumerator': '1',
 'MaxOrderSize': '3429832',
 'stat': 'Ok',
 'PriceDenomenator': '1',
 'DeliveryStartDate': 'NA',
 'LastTradingDate': 'NA',
 'LCircuitLimit': '26.25',
 'Freeze': 3429832,
 'Instrument': '',
 'IsuMaturityDate': 'NA'}
In [ ]: