Websocket
We have implemented websockets that allow you to retrieve real-time prices of different tokens. We only send you the token prices. It's up to you to calculate the client's portfolio value. In the request /p/users/:{id}/wallets, we send you the number of each token for each wallet. You can then calculate the total value of the wallet.
we are using socket.io to implement websockets
Events
tokens
{
"RUNE": "0.93",
"MKR": "864.11",
"DOT": "4.72",
"ETH": "1712.96",
"COMP": "50.70",
"AAVE": "67.49",
"SOL": "19.09",
"BTC": "27782.72",
"MATIC": "0.62",
"ADA": "0.26",
"LTC": "89.24",
"BNB": "215.39",
"ATOM": "8.54",
"UNI": "5.07",
"XRP": "0.43",
"EOS": "0.67",
"SAND": "0.38",
"MANA": "0.35",
"FTM": "0.25",
"TRX": "0.07",
"ALGO": "0.10",
"APT": "6.61",
"NEAR": "1.24",
"AVAX": "11.64",
"GMX": "50.52",
"EGLD": "31.34",
"CAKE": "1.35",
"CRV": "0.69",
"ENJ": "0.27",
"YFI": "6306.90",
"AXS": "5.48",
"FLOW": "0.56",
"OSMO": "0.46",
"HBAR": "0.04",
"SNX": "1.93",
"AUDIO": "0.17",
"ICP": "3.76",
"LRC": "0.21",
"XTZ": "0.73",
"SUSHI": "0.60",
"VET": "0.02",
"ERN": "1.38",
"YGG": "0.13",
"1INCH": "0.28",
"ILV": "38.43"
}Last updated