Receive index price for given symbol and auto update via Websockets.

Example

const indexPrice: number = useIndexPrice("PERP_ETH_USDC");