In [1]:
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)

print(tj)
<algomojo.pyalgomojo.api object at 0x0000014B0CDEBC10>
In [2]:
#mandatory parameters are send to place Market Orders. 
#by default execution is set to Market Orders in "MIS" mode. For custom orders see the complete python documentation

tj.place_order("RELIANCE-EQ","NSE","B",1) 
Out[2]:
{'NOrdNo': '201120000010397', 'stat': 'Ok'}
In [3]:
#placing limit orders
tj.place_order("CRUDEOIL20DECFUT","MCX","B",qty=1,order_type='L',price='3100',product_type='NRML')
Out[3]:
{'NOrdNo': '201120000010399', 'stat': 'Ok'}
In [ ]: