All work

Entry 02 of 03

Work

Exchange Integrations

Give quotes from different APIs a common format

  • Python
  • Binance API
  • KuCoin API
  • HTTPX
Read the walkthrough
  1. Request a sample quote
  2. Map the exchange fields
  3. Store the quote record

Overview

Exchange APIs use their own names for symbols, prices and times. I build Python adapters that translate those fields into a consistent quote record so another part of the bot can consume it.

What it covers

  • Market data endpoints
  • Symbol mapping
  • Price fields
  • Timestamp normalization

The adapter boundary

The illustrated exchange returns a pair and its last price. The adapter maps those fields to symbol and price, then stores the observation under the fictional DEMO/UNIT pair.