Skip to content

Price Feed Gateway Örneği

Micro Socket mantığıyla: Binance canlı fiyat akışını alan, ana socket (ham fiyat) ve sub socket’ler (kanallar; sembol bazlı marj/makas) sunan gateway.


Özet

  • Ana socket: Ham fiyat akışı (main).
  • Kanallar: REST ile oluşturulur; her kanal sembol bazlı marj tanımlar (örn. ETH +10, BTC +50). İstemciler bir kanala abone olunca ana fiyat + marj ile güncel fiyat alır.
  • Upstream: Binance public WebSocket (btcusdt, ethusdt, bnbusdt miniTicker); API key yok.

Çalıştırma: examples/price-feed-gatewaybun install && bun run dev. Docs: http://localhost:4000/docs.

Tam referans (REST, WS protokolü, mimari): İngilizce sayfa.

Star the repo on GitHub if this documentation is useful — link in the navbar above.