What we’re doing today
Course: Building an Exchange - Part 2 (Backend) - chapter 2
Building the backend ourselves.
HTTP Endpoints
Section titled “HTTP Endpoints”The endpoints we used last week were -
- Get klines - https://exchange-proxy.100xdevs.com/api/v1/klines?symbol=SOL_USDC&interval=1h&startTime=1718957562&endTime=1719562362
- Get depth - https://exchange-proxy.100xdevs.com/api/v1/depth?symbol=SHFL_USDC
- Get Tickers - https://exchange-proxy.100xdevs.com/api/v1/tickers
Websocket streaming
Section titled “Websocket streaming”The streams we support include
- trades@MARKET
- depth@MARKET
- ticker@MARKET
Counter intuitive things -
Section titled “Counter intuitive things -”- Orderbook is in memory
- User balances are in memory
- Locking balances in memory