SlideShare a Scribd company logo
1 of 11
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

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
 
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
 
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
strive erp technologies
 
2022CIFEr
2022CIFEr2022CIFEr
2022CIFEr
Takanobu Mizuta
 

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 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
 
Sap treasury and risk management training
Sap treasury and risk management  trainingSap treasury and risk management  training
Sap treasury and risk management training
 
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

obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
yulianti213969
 
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
bleessingsbender
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
LR1709MUSIC
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
vineshkumarsajnani12
 
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
Boundify
 
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
Klinik kandungan
 

Recently uploaded (20)

PALWAL CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN PALWAL ESCORTS
PALWAL CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN PALWAL ESCORTSPALWAL CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN PALWAL ESCORTS
PALWAL CALL GIRL ❤ 82729*64427❤ CALL GIRLS IN PALWAL ESCORTS
 
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
obat aborsi bandung wa 081336238223 jual obat aborsi cytotec asli di bandung9...
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
Abortion pills in Jeddah ! +27737758557, cytotec pill riyadh. Saudi Arabia" A...
 
JAJPUR CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JAJPUR ESCORTS SERVICE PROVIDE
JAJPUR CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JAJPUR  ESCORTS SERVICE PROVIDEJAJPUR CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JAJPUR  ESCORTS SERVICE PROVIDE
JAJPUR CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JAJPUR ESCORTS SERVICE PROVIDE
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 
10 Influential Leaders Defining the Future of Digital Banking in 2024.pdf
10 Influential Leaders Defining the Future of Digital Banking in 2024.pdf10 Influential Leaders Defining the Future of Digital Banking in 2024.pdf
10 Influential Leaders Defining the Future of Digital Banking in 2024.pdf
 
JHANSI CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JHANSI ESCORTS SERVICE PROVIDE
JHANSI CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JHANSI ESCORTS SERVICE PROVIDEJHANSI CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JHANSI ESCORTS SERVICE PROVIDE
JHANSI CALL GIRL ❤ 8272964427❤ CALL GIRLS IN JHANSI ESCORTS SERVICE PROVIDE
 
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptxThompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
Thompson_Taylor_MBBS_PB1_2024-03 (1)- Project & Portfolio 2.pptx
 
Moradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in PenacovaMoradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in Penacova
 
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow ChallengesFalcon Invoice Discounting: Aviate Your Cash Flow Challenges
Falcon Invoice Discounting: Aviate Your Cash Flow Challenges
 
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
Understanding Financial Accounting 3rd Canadian Edition by Christopher D. Bur...
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx2024 May - Clearbit Integration with Hubspot  - Greenville HUG.pptx
2024 May - Clearbit Integration with Hubspot - Greenville HUG.pptx
 
The Art of Decision-Making: Navigating Complexity and Uncertainty
The Art of Decision-Making: Navigating Complexity and UncertaintyThe Art of Decision-Making: Navigating Complexity and Uncertainty
The Art of Decision-Making: Navigating Complexity and Uncertainty
 
Ital Liptz - all about Itai Liptz. news.
Ital Liptz - all about Itai Liptz. news.Ital Liptz - all about Itai Liptz. news.
Ital Liptz - all about Itai Liptz. news.
 
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDEGURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON  ESCORTS SERVICE PROVIDE
GURGAON CALL GIRL ❤ 8272964427❤ CALL GIRLS IN GURGAON ESCORTS SERVICE PROVIDE
 
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
Jual obat aborsi Hongkong ( 085657271886 ) Cytote pil telat bulan penggugur k...
 

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