All work

Entry 01 of 03

Work

Price Monitoring

Track incoming quotes and flag a crossing

  • Python
  • Exchange APIs
  • SQLite
Read the walkthrough
  1. Read the sample feed
  2. Plot the latest quote
  3. Record the price alert

Overview

I build monitors that associate each price with its symbol, source and observation time. When a quote crosses a configured threshold, the monitor can log the event or send a notification.

What it covers

  • Timestamped quotes
  • Symbol watchlists
  • Threshold crossings
  • Event notifications

Inside the walkthrough

The example uses a fictional DEMO/UNIT feed. A new quote appears above the monitor's sample threshold, and the event log records the crossing with the time it happened.

Test a price alert

  1. Choose a symbol from a sample feed and record the price, source and observation time for each quote.
  2. Compare each new quote with the previous one and log an alert in SQLite when the two prices cross your test threshold.
  3. Replay a short sequence below, above and still above the threshold to verify that the monitor records a single crossing.