atom999 0.1
A functional python wrapper for algomojo trading api
License: MIT

Metadata-Version: 2.1
Name: atom999
Version: 0.6
Summary: A functional python wrapper for  trading api
Home-page: 
Author: atmarishi
Author-email: athmarishi99@gmail.com
License: MIT
Description: 
        ## ABOUT
        A functional python wrapper for firststock trading api.
        It is a python library for the [Algomojo Free API + Free Algo Trading Platform ](https://algomojo.com/). 
        It allows rapid trading algo development easily, with support for both REST-API interfaces. 
        Execute Orders in Reatime, Modify/Cancel Orders, Retrieve Orderbook, Tradebook, Open Positions, Squareoff Positions and much more functionalities. 
        For more details of each API behavior, Pease see the Algomojo API documentation.
        
        
        ## License
        
        
        
        ## Documentation
        [Algomojo Rest API documentation ](https://algomojo.com/docs/)
        
        
        
        
        ## Installation
        Install from PyPI
        
        	pip install atom999
        
        Alternatively, install from source. Execute setup.py from the root directory.
        python setup.py install
        
        Always use the newest version while the project is still in alpha!
        
        
        ## Usage Examples
        In order to call Algomojo trade API, you need to sign up for an trading account with one of the partner broker and obtain API key pairs and enjoy unlimited access to the API based trading.
         Replace api_key and api_secret_key with what you get from the web console.
        
        
        
        
        ## Getting Started
        
        After downloading package import the package and create the object with api credentials
        
        
        	from po import pyfs
        
        
        
        
        
        ## Creating  Object
        
        For creating an object there are 3 arguments which would be passed
        
                 api_key : str
                     User Api key (logon to algomojo account to find api credentials)
                 api_secret : str
                     User Api secret (logon to algomojo account to find api credentials)
                 Broker : str
                     This takes broker it generally consists 2 letters , EX: alice blue--> ab, tradejini-->tj, zebu-->zb
        
        Sample:
        	
        	at=pyfs.api(api_key="20323f062bb71ca6fbb178b4df8ac5z6",
        		    api_secret="686786a302d7364d81badc233f1d22e3",
        		    broker="fs")
        
        
        
        
        
        
        ## Using Object Methods
        obj.method(mandatory_parameters)  or obj.method(madatory_parameters+required_parameters)
        
        
        # Avaliable Methods
        	
        ### 1. place_order:  
        
        		Function with mandatory parmeters: 
        				place_order(uid,stgname,exch,tsym,qty,trantype,prctype,prd)
        		
        		Function with all parametrs:       
        				place_order(uid,stgname,exch,tsym,qty,trantype,prctype,prd,prc,dscqty,trgprc)
                 	 
                        Sample :        
        				at.place_order(uid="GH1456",stgname="test",exch="NSE"
        					       tsym="SBIN-EQ",qty="50"
        					       trantype="B",prctype="MKT"
        					       prd="C")   
        ### 2. place_multi_order:
        
        		Funtion with mandatory parameters:   
        				place_multi_order(uid,stgname,ordno,exch,tsym,qty,trantype,prctype,prd)
        		
        		Function with all parameters:
        				place_multi_order(uid,stgname,ordno,exch,tsym,qty,trantype,prctype,prd ,prc,dscqty,trgprc)
        		
        		
        		Sample :          at.place_multi_order(uid="RR0884",stgname="xxx",ordno=0,exch=["NSE","NSE","NSE"],
                                   tsym=["RELIANCE-EQ","IOB-EQ","SBIN-EQ"],qty=["10","40","710"],
                                   trantype=["B","B","S"],prctype=["LMT","LMT","MKT"],prd=["C","I","C"])
        
        ### 3. PlaceFandOOrder:
        
        		Funtion with mandatory parameters:  
        			     PlaceFandOOrder(self,uid,stgname,spot,expiry,trantype,optiontype,prctype,qty,strike)
        		Function with all parameters: 
        		 
        		            PlaceFandOOrder(uid,stgname,spot,expiry,trantype,
                            optiontype,prctype,qty,strike,price,pcode,trigprice,offset)
        		
        		Sample :          
        		              at.PlaceFandOOrder(uid="RR0884",stgname="stgname",
                              spot="NIFTY",expiry="17FEB22",trantype="B",optiontype="C",prctype="MKT",qty="50",strike="100")
        
        
        		
        ### 4. modify_order:
        
        		Funtion with mandatory parameters:  
        			     	modify_order(spot_sym,expiry,opt_type,action,qty)
        		
        		Function with all parameters:
        		 	      	modify_order(uid,orderno,exch,tsym,prc)
        		
        		Sample for tradejini: `		   
        				at.modify_order(uid="DF4569",orderno="1457896512",exch="NSE",tsym="SBIN-EQ",
                        prctype="MKT",qty="70",prc="600")
        		
        		
        		
        
        
        
        ### 5. cancel_order:
        
        		Funtion with mandatory parameters:   
        				cancel_order(uid,orderno)
        
        		Function with all parameters:          
        		
        				cancel_order(uid,actid,orderno)
        
        		Sample:             
        				at.cancel_order(uid="RA4456",orderno="4567891523")

        
        		
        
        ### 6. user_details:
        
        		Funtion with mandatory parameters:   
        					user_details(uid)
        					
        		Function with all parameters:        
        					user_details(uid)
        					
        		Sample:                              
        					at.user_details(uid='AB1234')
        					             
        
        ### 7. limits:
        
        
        		Funtion with mandatory parameters:   
        					limits(uid)
        					
        		Function with all parameters:        
        					limits(uid)
        					
        	        Sample:                              
        					at.limits(uid='AB1234')
        		                                    
        
        
        
        
        
        ### 8. holdings: 
        
        		Funtion with mandatory parameters:   
        					holdings(uid,prd)
        					
        		Function with all parameters:       
        					holdings(uid,actid,prd)
        					
        		Sample:                              
        					at.holdings(uid='AB1234',prd="C")
        
        
        
        ### 9. order_book:
        
        
        		Funtion with mandatory parameters:   
        					order_book(uid)
        		
        		Function with all parameters:        
        					order_book(uid,actid)
        					
        		Sample:                             
        					at.order_book(uid='AB1234')
        
        
        
        
        
        ### 10. Single_hist:
        
        
        		Funtion with mandatory parameters:   
        					Single_hist(Single_hist)
        					
        		Function with all parameters:        
        					Single_hist(Single_hist)
        					
        		Sample:                              
        					at.order_history(uid='AB1234',
        							 orderno='201109000000025')
        
        
        
        
        ### 11. positionbook:
                
             	Funtion with mandatory parameters:   
        					positionbook(uid)
        					
        		Function with all parameters:        
        					positionbook(uid,actid)
        					
        		Sample:                              
        					at.positionbook(uid='AB1234')
        
                    
        					
        
        		
        		
        		
        
        
        
        
        ### 12. tradebook:
                
             	Funtion with mandatory parameters:   
        					tradebook(uid)
        					
        		Function with all parameters:        
        					tradebook(uid,actid)
        					
        		Sample:                              
        					at.tradebook(uid='AB1234')
        
        
        
        	13.  tradebook:
                
             	Funtion with mandatory parameters:   
        					getquotes(uid,exch,token)
        					
        		Function with all parameters:        
        					getquotes(uid,exch,token)
        					
        		Sample:                              
        					at.getquotes(uid='AB1234',exch="NSE",token="2645")
        
        
    
         
        
        
        
        
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown