Skip to content

Missing trades #49

@ApeksIT

Description

@ApeksIT

Hi,
I am using the rest API to get a list of the trades per symbol/market. I never get all the trades. When I look at the Bitvavo app or at the website, I see for example 40 trades in total for a coin. When I use the API I get only 30. For another coin I see 14 online and get only 9 using the API. I do see the first (oldest) couple of trades then missing a few and the the other trades up to the most recent trades. It doesn't matter if I use my own app or Postman, the response is missing trades. The limit is set to 100 How is this possible?
Cheers

app.get('/api/trades', async (req, res) => { const market = req.query.market as string; try { const result = await bitvavo.trades(market, { limit: 100 }); console.log('API Response:', result.length); res.json(result); } catch (err) { console.error('API Error:', err); res.status(500).json({ error: 'Server: Could not fetch trades.', details: err }); } });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions