Stock quote connection pool
As a short example, I've created an application that reads data about stock symbols (AAPL (Apple), IBM, and MSFT (Microsoft)) and returns some basic information about the symbol, such as the latest stock value. This information is retrieved from a public server provided by the company IEX (https://iextrading.com/developer/docs/#attribution).
The demonstration program, ObjectPoolPattern allows you to enter the name of a stock symbol and then query the server for this symbol's data by clicking the Get data button. This will generate a request in the https://api.iextrading.com/1.0/stock/SYMB/quote form, where SYMB will be replaced with the actual symbol (for example, MSFT).
As connecting to a https server is a relatively ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access