Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT

1,582 views

Published on

EXANTE - "Cross-Asset Portfolio Margin Risk Calculation for HFT"

Sergey Troshin, PhD, Tech lead, Trading Platform

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,582
On SlideShare
0
From Embeds
0
Number of Embeds
857
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT

  1. 1. EXANTE CROSS-ASSET PORTFOLIO MARGIN RISK CALCULATION for HFT Sergey Troshin, PhD, Tech lead, Trading PlatformFebruary 2013
  2. 2. Contents1. Broker for algorithmic traders Internal architecture overview2. Current risk scheme and its drawbacks Problems by design. Implementation problems.3. Risk calculation and control proposal Cross-asset portfolio margin risk management in near real time mode. 2
  3. 3. EXANTE platform• One client account for all products• Trading terminal for Win, Mac, Unix• FIX connection 3
  4. 4. Presence in all major financial centres• 50+ Exchanges• 100K+ Instruments 4
  5. 5. • 10+ data vendor gateways• 10+ execution gateways 5
  6. 6. Parallel trading via many Gateways using one Account=> Accurate risk control is needed 6
  7. 7. Current Risks 7
  8. 8. Current RisksInitial startupAfter each trade 8
  9. 9. Current RisksPros:• Simple and extremely fast GatewayCons:• Limits update are not fast enough because of heavy calculations on Back Office side• Orders data are encapsulated in Gateway• Portfolio Margin is not calculated• High BO=>RA traffic (symbols * accounts)• Gateway restart takes significant time• Possible inaccurate limits 9
  10. 10. Risks Requirements• 100K symbols and 10K accounts• Fast risk calculation, updates and checks• Use orders data in risk processing• Portfolio margin calculation• Reasonable traffic (symbols + accounts) 10
  11. 11. Risks ProposalSymbolLimit = FreeMoney * LeverageRate * CrossCourse / PriceDefinitions• MarginCoefficient = CrossCourse / Price (initial margin to open position with quantity set to 1 and leverage rate set as 1)Facts• Margin Coefficient doesn’t depend on account• LeverageRate is the same for many accounts• CrossCourse and Price can not change 11
  12. 12. Risks ProposalInitial startupTrade processing 12
  13. 13. Free MoneyAccount Margin = SUM(Asset Margin) + SUM(Cross-Asset Margin)Asset Margin = Quantity * LeverageRate * MarginCoefficientCross-Asset Margin = SPAN-like algorithm for same underlying 13
  14. 14. Improvements1. Move free money calculation to Risk Agent. Orders synchronization is needed.2. Compute free money using cross margining info3. Use margin data in ATP 14
  15. 15. Proposed risksPros:• Gateway is still very fast(<1ms)• Orders are used in limits calculation• Portfolio Margin can be calculated in different ways• Cross margin data could be used• All limits and leverage rates could be overridden• Fast as light risk updates• Backup gatewaysCons: 15
  16. 16. www.exante.eu Questions?Sergey Troshin, PhD, Tech Lead (st@exante.eu) 16

×