We’re creating the following architecture for v0 -

We need to subscribe to binance from the following ws stream -
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests
You are only allowed to get the trade stream. The latest trade represents the current price of the asset. Do not use the klines api. You are supposed to create the klines on your side.
The candle should be made based on the current price on the exchange.

<aside> 💡
Ideally try to get atleast 3 assets from binance. Bonus - Try to get the price of US equities (https://polygon.io/)
</aside>
We need to create a spread of 1% on the platform.
Each user will be given an initial balance of 5000 usd
Do not store any floating points on the backend. Only integers should be stored.
If you want to store the price of SOL, it shouldn’t be stored as 211.11, it should be stored as 211110000 and decimals as 6
Allow users to leverage 5x, 10x, 20x, 100x