SlideShare a Scribd company logo
Algorithmic
Trading
What is Algo Trading?
• Algorithmic trading combines computer programming and financial
markets to execute trades at precise moments.
• Algorithmic trading attempts to strip emotions out of trades, ensures
the most efficient execution of a trade, places orders instantaneously
and may lower trading fees.
2
• Common trading strategies include trend-following
strategies, arbitrage opportunities, and index fund rebalancing.
• Algorithmic trading is also executed based on trading
volume (volume-weighted average price) or the passage of time
(time-weighted average price).
• To get started with algorithmic trading, you must have
computer access, network access, financial market knowledge, and
coding capabilities( Python preferred ).
3
Why Algo Trading?
• Trades are executed at the best possible prices.
• Trade order placement is instant and accurate (there is a high chance of execution at the desired
levels).
• Trades are timed correctly and instantly to avoid significant price changes.
• Reduced transaction costs.
• Reduced the possibility of mistakes by human traders based on emotional and psychological
factors.
• Reduced risk of manual errors when placing trades.
• Strategies can be backtested using available historical and real-time data to see if it is a
profitable trading strategy.
4
Algo Trading
using ZEBU API
Logging in
import requests
import json
import hashlib
from zebullconnect.zebullapi import Zebullapi
sas_api = Zebullapi(user_id='Your_user_id',
api_key='Your_api_key')
response = sas_api.getEncryptionKey()
PRESENTATION TITLE 6
Installation of the Python API
pip install --upgrade zebull
Fetching Scrips using Symbol
and Exchange
scrip_response = sas_api.get_scrips(symbol='search_symbol_name', exchange=
['exchange_name'])
#Sample call of the function
scrip_response = sas_api.get_scrips(symbol='TCS', exchange=
[sas_api.EXCHANGE_NSE])
# SAMPLE RESPONSE
# {.....'exch': 'NSE', 'exchange': None, 'exchange_segment': 'nse_cm',
'symbol': 'TCS-EQ', 'token': '11536', 'instrument_name': 'TATA CONSULTANCY
SERV LT'....}
7
Available exchanges are as below
# sas_api.EXCHANGE_NSE --- For NSE Cash
# sas_api.EXCHANGE_NFO --- For NSE DERIVATIVES
# sas_api.EXCHANGE_CDS --- For NSE Currency Derivatives
# sas_api.EXCHANGE_BSE --- For BSE Cash
# sas_api.EXCHANGE_BSE --- For BSE Derivatives
# sas_api.EXCHANGE_BSE --- For BSE Currency Derivatives
# sas_api.EXCHANGE_MCX --- For MCX Contracts
8
Placing and Squaring off Orders
9
# # Place Order placeorderresp = sas_api.place_order(complexty=sas_api.REGULAR_ORDER,
discqty='0', exch=sas_api.EXCHANGE_NSE, pCode='MIS', price='140.0', qty='1',
prctyp=sas_api.LIMIT_ORDER, ret='Enter_your_retention_type', trading_symbol='49234',
transtype=sas_api.BUY_ORDER, trigPrice='139.0')
# SAMPLE RESPONSE # {['stat': 'Ok', 'nestOrderNumber': '191015000018737']}
# # Square of position
squareoffresp = sas_api.squareoff_positions(exchange=sas_api.EXCHANGE_NSE,
symbol='49234', qty='0', pCode='MIS')
# SAMPLE RESPONSE
# {"stat": "Ok","nestOrderNumber:"200626000052824"}
Getting Positions and Orders
10
# Fetch Order Book orderresp = sas_api.order_data()
# ===>No Parameters are passed to get response
# SAMPLE RESPONSE # [{....... "Prc": "1454.90", "RequestID": "1", "Cancelqty": 0,
"discQtyPerc": "10", "Qty": 8, "Prctype": "SL", "Status": "rejected","Exchange":
"NSE" ,"Avgprc": "00.00", "Trgprc": "1450.90",.....}]
# This one get method and no input parameters and output will be bunch of data's are
shown on response
# Fetch Trade Book tradebookresp = sas_api.tradebook()
# ===>No Parameters are passed to get response # SAMPLE RESPONSE # This one also get
method and no input parameters and data's will be shown
Thank You
Puneet Tewani
CEO
Fox Trading Solutions
Cell : +919799871428
Email : info@foxtradingsolutions.com
Twitter : @puneet_tewani
PRESENTATION TITLE 11

More Related Content

Similar to Presentation (2).pptx

How To Forex trade with sucess - Caliber FX Pro - System Manual
How To Forex trade with sucess - Caliber FX Pro - System ManualHow To Forex trade with sucess - Caliber FX Pro - System Manual
How To Forex trade with sucess - Caliber FX Pro - System Manual
island script
 
Sap treasury and risk management online training
Sap treasury and risk management online trainingSap treasury and risk management online training
Sap treasury and risk management online training
strive erp technologies
 
Traders Cockpit Product Details
Traders Cockpit Product DetailsTraders Cockpit Product Details
Traders Cockpit Product Details
Traders Cockpit
 
Predictive automated marginal trading technology pamtt part 1
Predictive automated marginal trading technology   pamtt part 1 Predictive automated marginal trading technology   pamtt part 1
Predictive automated marginal trading technology pamtt part 1 Yuri Martemianov
 
Autonomous transaction
Autonomous transactionAutonomous transaction
Autonomous transaction
Rajeev Rastogi (KRR)
 
Sap treasury and risk management training
Sap treasury and risk management  trainingSap treasury and risk management  training
Sap treasury and risk management training
strive erp technologies
 
Sap treasury and risk management:strive erp
Sap treasury and risk management:strive erpSap treasury and risk management:strive erp
Sap treasury and risk management:strive erpstrive erp technologies
 
Mcx Sure Gain
Mcx Sure GainMcx Sure Gain
Mcx Sure Gain
Mcx Sure Gain
 
Introduction to trader bots with Python
Introduction to trader bots with PythonIntroduction to trader bots with Python
Introduction to trader bots with Python
roskakori
 
Algorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & SystemsAlgorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & Systems
AlgorithmicTrading.net
 
Ncfm training cm
Ncfm training   cmNcfm training   cm
Ncfm training cm
manan4006
 
Using Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the MarketUsing Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the Market
Matthew Ring
 
Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
EXANTE
 
2022CIFEr
2022CIFEr2022CIFEr
2022CIFEr
Takanobu Mizuta
 
Abc financial analyticsdemo
Abc financial analyticsdemoAbc financial analyticsdemo
Abc financial analyticsdemo
Guan Khoo
 
AlphaTrader Trading Platform Features
AlphaTrader Trading Platform FeaturesAlphaTrader Trading Platform Features
AlphaTrader Trading Platform Features
Nicolas VITALE
 
Quant studio expert
Quant studio expertQuant studio expert
Quant studio expert
Vishal Doshi
 

Similar to Presentation (2).pptx (20)

How To Forex trade with sucess - Caliber FX Pro - System Manual
How To Forex trade with sucess - Caliber FX Pro - System ManualHow To Forex trade with sucess - Caliber FX Pro - System Manual
How To Forex trade with sucess - Caliber FX Pro - System Manual
 
Sap treasury and risk management online training
Sap treasury and risk management online trainingSap treasury and risk management online training
Sap treasury and risk management online training
 
Traders Cockpit Product Details
Traders Cockpit Product DetailsTraders Cockpit Product Details
Traders Cockpit Product Details
 
Predictive automated marginal trading technology pamtt part 1
Predictive automated marginal trading technology   pamtt part 1 Predictive automated marginal trading technology   pamtt part 1
Predictive automated marginal trading technology pamtt part 1
 
Sap treasury and risk management
Sap treasury and risk managementSap treasury and risk management
Sap treasury and risk management
 
Autonomous transaction
Autonomous transactionAutonomous transaction
Autonomous transaction
 
Sap treasury and risk management training
Sap treasury and risk management  trainingSap treasury and risk management  training
Sap treasury and risk management training
 
Sap trm on line training
Sap trm on line training Sap trm on line training
Sap trm on line training
 
Sap treasury and risk management:strive erp
Sap treasury and risk management:strive erpSap treasury and risk management:strive erp
Sap treasury and risk management:strive erp
 
Sap treasury and risk management
Sap treasury and risk managementSap treasury and risk management
Sap treasury and risk management
 
Mcx Sure Gain
Mcx Sure GainMcx Sure Gain
Mcx Sure Gain
 
Introduction to trader bots with Python
Introduction to trader bots with PythonIntroduction to trader bots with Python
Introduction to trader bots with Python
 
Algorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & SystemsAlgorithmic Trading Basics: Strategies & Systems
Algorithmic Trading Basics: Strategies & Systems
 
Ncfm training cm
Ncfm training   cmNcfm training   cm
Ncfm training cm
 
Using Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the MarketUsing Java & Genetic Algorithms to Beat the Market
Using Java & Genetic Algorithms to Beat the Market
 
Algorithmic Trading and FIX Protocol
Algorithmic Trading and FIX ProtocolAlgorithmic Trading and FIX Protocol
Algorithmic Trading and FIX Protocol
 
2022CIFEr
2022CIFEr2022CIFEr
2022CIFEr
 
Abc financial analyticsdemo
Abc financial analyticsdemoAbc financial analyticsdemo
Abc financial analyticsdemo
 
AlphaTrader Trading Platform Features
AlphaTrader Trading Platform FeaturesAlphaTrader Trading Platform Features
AlphaTrader Trading Platform Features
 
Quant studio expert
Quant studio expertQuant studio expert
Quant studio expert
 

Recently uploaded

BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
DerekIwanaka1
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
marketingjdass
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
Adam Smith
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
ofm712785
 
Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...
dylandmeas
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
uae taxgpt
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
RajPriye
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
Workforce Group
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
Ben Wann
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
BBPMedia1
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
dylandmeas
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
HumanResourceDimensi1
 
The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
Bojamma2
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
SynapseIndia
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
usawebmarket
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Navpack & Print
 

Recently uploaded (20)

BeMetals Presentation_May_22_2024 .pdf
BeMetals Presentation_May_22_2024   .pdfBeMetals Presentation_May_22_2024   .pdf
BeMetals Presentation_May_22_2024 .pdf
 
Skye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto AirportSkye Residences | Extended Stay Residences Near Toronto Airport
Skye Residences | Extended Stay Residences Near Toronto Airport
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
 
5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer5 Things You Need To Know Before Hiring a Videographer
5 Things You Need To Know Before Hiring a Videographer
 
Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...Discover the innovative and creative projects that highlight my journey throu...
Discover the innovative and creative projects that highlight my journey throu...
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
 
VAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and RequirementsVAT Registration Outlined In UAE: Benefits and Requirements
VAT Registration Outlined In UAE: Benefits and Requirements
 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
 
Cracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptxCracking the Workplace Discipline Code Main.pptx
Cracking the Workplace Discipline Code Main.pptx
 
Improving profitability for small business
Improving profitability for small businessImproving profitability for small business
Improving profitability for small business
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
RMD24 | Retail media: hoe zet je dit in als je geen AH of Unilever bent? Heid...
 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
 
The-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic managementThe-McKinsey-7S-Framework. strategic management
The-McKinsey-7S-Framework. strategic management
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
 
Affordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n PrintAffordable Stationery Printing Services in Jaipur | Navpack n Print
Affordable Stationery Printing Services in Jaipur | Navpack n Print
 

Presentation (2).pptx

  • 2. What is Algo Trading? • Algorithmic trading combines computer programming and financial markets to execute trades at precise moments. • Algorithmic trading attempts to strip emotions out of trades, ensures the most efficient execution of a trade, places orders instantaneously and may lower trading fees. 2
  • 3. • Common trading strategies include trend-following strategies, arbitrage opportunities, and index fund rebalancing. • Algorithmic trading is also executed based on trading volume (volume-weighted average price) or the passage of time (time-weighted average price). • To get started with algorithmic trading, you must have computer access, network access, financial market knowledge, and coding capabilities( Python preferred ). 3
  • 4. Why Algo Trading? • Trades are executed at the best possible prices. • Trade order placement is instant and accurate (there is a high chance of execution at the desired levels). • Trades are timed correctly and instantly to avoid significant price changes. • Reduced transaction costs. • Reduced the possibility of mistakes by human traders based on emotional and psychological factors. • Reduced risk of manual errors when placing trades. • Strategies can be backtested using available historical and real-time data to see if it is a profitable trading strategy. 4
  • 6. Logging in import requests import json import hashlib from zebullconnect.zebullapi import Zebullapi sas_api = Zebullapi(user_id='Your_user_id', api_key='Your_api_key') response = sas_api.getEncryptionKey() PRESENTATION TITLE 6 Installation of the Python API pip install --upgrade zebull
  • 7. Fetching Scrips using Symbol and Exchange scrip_response = sas_api.get_scrips(symbol='search_symbol_name', exchange= ['exchange_name']) #Sample call of the function scrip_response = sas_api.get_scrips(symbol='TCS', exchange= [sas_api.EXCHANGE_NSE]) # SAMPLE RESPONSE # {.....'exch': 'NSE', 'exchange': None, 'exchange_segment': 'nse_cm', 'symbol': 'TCS-EQ', 'token': '11536', 'instrument_name': 'TATA CONSULTANCY SERV LT'....} 7
  • 8. Available exchanges are as below # sas_api.EXCHANGE_NSE --- For NSE Cash # sas_api.EXCHANGE_NFO --- For NSE DERIVATIVES # sas_api.EXCHANGE_CDS --- For NSE Currency Derivatives # sas_api.EXCHANGE_BSE --- For BSE Cash # sas_api.EXCHANGE_BSE --- For BSE Derivatives # sas_api.EXCHANGE_BSE --- For BSE Currency Derivatives # sas_api.EXCHANGE_MCX --- For MCX Contracts 8
  • 9. Placing and Squaring off Orders 9 # # Place Order placeorderresp = sas_api.place_order(complexty=sas_api.REGULAR_ORDER, discqty='0', exch=sas_api.EXCHANGE_NSE, pCode='MIS', price='140.0', qty='1', prctyp=sas_api.LIMIT_ORDER, ret='Enter_your_retention_type', trading_symbol='49234', transtype=sas_api.BUY_ORDER, trigPrice='139.0') # SAMPLE RESPONSE # {['stat': 'Ok', 'nestOrderNumber': '191015000018737']} # # Square of position squareoffresp = sas_api.squareoff_positions(exchange=sas_api.EXCHANGE_NSE, symbol='49234', qty='0', pCode='MIS') # SAMPLE RESPONSE # {"stat": "Ok","nestOrderNumber:"200626000052824"}
  • 10. Getting Positions and Orders 10 # Fetch Order Book orderresp = sas_api.order_data() # ===>No Parameters are passed to get response # SAMPLE RESPONSE # [{....... "Prc": "1454.90", "RequestID": "1", "Cancelqty": 0, "discQtyPerc": "10", "Qty": 8, "Prctype": "SL", "Status": "rejected","Exchange": "NSE" ,"Avgprc": "00.00", "Trgprc": "1450.90",.....}] # This one get method and no input parameters and output will be bunch of data's are shown on response # Fetch Trade Book tradebookresp = sas_api.tradebook() # ===>No Parameters are passed to get response # SAMPLE RESPONSE # This one also get method and no input parameters and data's will be shown
  • 11. Thank You Puneet Tewani CEO Fox Trading Solutions Cell : +919799871428 Email : info@foxtradingsolutions.com Twitter : @puneet_tewani PRESENTATION TITLE 11