𝗕𝘂𝗶𝗹𝗱𝗶𝗻𝗴 𝗔 𝗣𝗿𝗲𝗰𝗶𝗼𝘂𝘀 𝗠𝗲𝘁𝗮𝗹𝘀 𝗜𝗻𝘃𝗲𝘀𝘁𝗺𝗲𝗻𝘁 𝗔𝗽𝗽
You need fast and right data for a gold or silver app. Speed helps users make better choices.
Here is how you build the data path:
- Get data from APIs using REST for history and WebSocket for real-time updates.
- Use a gateway to sort different metals.
- Store new prices in Redis.
- Store old data in MySQL.
- Put tick data in a time-series database.
For the charts, use TradingView Lightweight Charts. It is open source and fast. It works great on mobile phones.
To make price alerts work:
- Group alerts by the metal symbol.
- Only check prices for the symbol.
- Send a push note when the price hits the target.
Keep the app fast on phones:
- Reduce the amount of data for long time frames.
- Use Canvas to draw the charts.
- Update only the newest price point.
For a large app, use microservices. Use Kafka to send data between parts. This lets you grow without crashes.
Start with a small version. Focus on the data speed first. Add more tools later.
Source: https://blog.itick.org/quant-tools/itick-tradingview/kline-realtime-integration Optional learning community: https://github.com/itick-org/