Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Full Stack IBKR API - Real-Time Streaming Data and Server-Sent Events - Part 2

Part Time Larry via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to implement real-time streaming data functionality using Server-Sent Events (SSE) in this 19-minute tutorial that demonstrates building a full-stack application with the Interactive Brokers API. Explore the fundamentals of SSE data flow and see practical demonstrations of streaming real-time market data directly to web browsers. Build a subscribe endpoint for the charts router and create a ChartState object to request real-time bars from Interactive Brokers. Process incoming bar data and implement a streaming endpoint using EventSourceResponse for continuous data delivery. Test the streaming functionality using command-line tools and curl commands before integrating the frontend components. Implement EventSource in JavaScript to handle real-time data reception in the browser and verify the complete streaming pipeline from API to user interface. Master the technical aspects of real-time financial data streaming while preparing for advanced features like market scanners in subsequent tutorials.

Syllabus

0:00 Recap of the last video
0:43 Demo: Real-Time Data in the browser
1:02 What is SSE? Server-Sent Event data flow
1:26 Demo: SSE with CLI command
3:31 Adding a subscribe endpoint to the charts router
5:20 ChartState object, request real-time bars
8:03 Processing the bar data
12:25 Adding a stream endpoint, EventSourceResponse
14:11 Testing streaming from the command line / curl
14:52 Frontend, streaming data to the browser
16:08 EventSource in JavaScript
18:04 Testing in the browser
18:47 What’s Next - Adding a Market Scanner

Taught by

Part Time Larry

Reviews

Start your review of Full Stack IBKR API - Real-Time Streaming Data and Server-Sent Events - Part 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.