Answer the question
In order to leave comments, you need to log in
How to correctly display Vuex, Vue data?
Need help understanding how to do it right.
There is a server on Express. An external library is connected that takes data from a private API.
Each endpoint has its own route, let's say two of them.
// Тут получаем массив объектов всех валют.
router.get('/getmarketsummaries', async (req, res, next) => {
try {
res.json(await client.marketSummaries())
} catch (error) {
next(createError(404, error))
}
})
// Тут получаем массив объектов открытых ордеров.
router.get('/getorderbook', async (req, res, next) => {
try {
res.json(await client.orderBook(req.query.market, req.query.type))
} catch (error) {
next(createError(400, error))
}
})
<b-col v-for="(ticker, index) in getTickers" :key="index">
<Card :ticker="ticker"/>
</b-col>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question