No description
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
AI guide
【One-Line Pitch】
A task-oriented reference for MATLAB users who need to connect to brokerage and market-data systems, route orders, and run transaction-cost and portfolio-liquidation analyses from within MATLAB. Best suited to practitioners with an existing broker/data license and MATLAB fluency, not to readers seeking trading theory.
【Book Arc】
- **Opening (~0%–10%)**: Getting-started material on installing and configuring third-party connections (Interactive Brokers Trader Workstation, Trading Technologies, Bloomberg EMSX, CQG, FIX Flyer, X_TRADER) and placing a first order through each, solving the "how do I connect and send an order" problem.
- **Early (~10%–32%)**: Transaction cost analysis built around the Kissell Research Group (krg) object — market-impact parameters, sensitivity analysis, portfolio liquidation, and optimization via fminbnd/fsolve — plus the first full workflow examples for EMSX and IB.
- **Middle (~32%–48%)**: Sample-code workflows across providers: EMSX order/route creation and management, IB contract and order objects, CQG historical and real-time data requests, and the function reference for EMSX objects and methods.
- **Late (~48% onward)**: The remaining function reference (createOrder, deleteOrder, modifyOrder, routeOrder, subscriptions, timers) and WDS topics on using snapshot and historical data to decide on trades; excerpts thin out here.
- **Ending**: Reference-style API documentation rather than a narrative close — the excerpts do not cover the final chapters in detail.
【Book Arc note】The progression is fundamentals (connect) → analysis (cost models) → practice (worked workflows) → reference (function-by-function lookup).
【Key Takeaways】
- **Connections are provider-specific and license-gated** (Opening): each broker (EMSX, IB, CQG, TT, FIX Flyer, X_TRADER) has its own setup steps and requires a valid license before MATLAB can talk to it.
- **Order lifecycle follows a repeatable pattern** (Early): connect → build an order/contract structure → create/route → subscribe to events → modify or delete → close. Learning one provider's flow transfers to the others.
- **Event handling is central to the API** (Early–Middle): default handlers process order events, while custom handler functions run on a MATLAB timer with start/stop/delete, letting you react to fills and route updates.
- **Transaction cost analysis is a first-class module** (Early): the krg object pulls market-impact parameters (e.g., from the Kissell Research Group FTP site) and supports sensitivity, stress, and back tests on portfolios.
- **Optimization ties cost models to decisions** (Early): liquidation and trade-schedule problems are framed as minimization (market-impact cost, trade schedule) solved with Optimization Toolbox functions like fmincon, fsolve, and fminbnd — an Optimization Toolbox license is required.
- **Data requests split into historical and real-time** (Middle): CQG's history and realtime functions, plus WDS snapshot/historical topics, show how to pull prices for analysis and trading decisions.
- **The back half is a lookup reference** (Late): object functions for EMSX (createOrder, routeOrder, modifyOrder, deleteOrder, groupRouteOrder, createBasket, manualFill) are documented method-by-method for on-the-job use.
【Reading Tips】
- **Skim the provider setup chapter** and deep-read only the broker you actually use; the configuration steps are near-identical in structure across vendors.
- **Work the sample workflows hands-on** (EMSX order/route, IB contract/order, CQG history) — the code is the real content, and the prose mostly narrates it.
- **Treat the function reference as a dictionary**, not a read-through; jump in when a specific method's arguments or return fields are unclear.
- **Watch licensing dependencies**: transaction cost analysis and optimization examples assume Optimization Toolbox and Kissell Research Group data access; confirm you have these before attempting them.
- **Take away the workflow skeleton** (connect → subscribe → act → close) rather than memorizing provider-specific field names.
【Coverage Limits】
The excerpts are dominated by setup steps, worked examples, and function reference entries; they do not cover the book's later chapters or any conceptual trading-strategy discussion in depth, so this guide reflects the API/workflow character of the material rather than a full chapter map.
Page 19
ee Also close | createOrderAndRoute | emsx Related Examples • “Create and Manage a Bloomberg EMSX Order” on page 4-10 • “Create and Manage a Bloomberg EMSX R...
View in text
Excerpt 2
= CovarianceData(1:n,1:n); C = table2array(CovarianceData); For a description of the example data, see “Kissell Research Group Data Sets” on page 3-7. Define...
View in text
Page 18
oomberg EMSX session object • Bloomberg EMSX service object • IP address of the machine running the Bloomberg EMSX test service • Port number of the machine...
View in text
Excerpt 4
This code creates a buy market order for 100 shares of IBM. This code uses the broker BB with the time in force set to DAY and any hand instruction. Convert...
View in text
Excerpt 5
,'EMSX_FILLED'}; [events,subs] = orders(c,fields) events = MSG_TYPE: {'E'} MSG_SUB_TYPE: {'O'} EVENT_STATUS: 4 subs = com.bloomberglp.blpapi.SubscriptionList...
View in text
Excerpt 6
ions EMSX_SEQUENCE: 354646 MESSAGE: 'Order created' The default event handler processes the events associated with creating the order. createOrder returns ev...
View in text
Excerpt 7
6 Functions • High price • Low price • Close price • Volume • Bar count • Weighted average price • Flag indicating if there are gaps in the bar When using an...
View in text
Excerpt 8
cture that repeats the contents of the columns • Event type For details about this data, see Interactive Brokers API Reference Guide. Close the IB Trader Wor...
View in text
Tags
AI categories
Programming LanguageDataSoftware
Text Preview (First 20 pages)
Registered users can read the full content for free
Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.
Generating text preview…
Loading comments...
Reply to Comment
Edit Comment