project-serum / serum-ts

Project Serum TypeScript monorepo

Home Page:https://projectserum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to retrieve the information of just only one specific filled order for a specific owner?

Danilo-Araujo-Silva opened this issue · comments

How can we the information of just only one specific filled order instead of loading all of them?
And also only the orders that were placed by a specific owner?

For example, we have this documentation here:
https://github.com/project-serum/serum-ts/tree/master/packages/serum

But we only have an example to be retrieving the info for filled orders, so if we are working with several markets this would be very time-consuming.

Maybe we could have something like:

await market.loadFills({ connection: connection, owner: owner.publicKey, clientId: clientId, exchangeId: exchangeId })

Im facing many of the same issues you have.
But this one is absolutely crucial for me.
I cant use Serum if i can not get the informations of my orders.

Even the Exchanges like Mango are not using build in serum features.
Mango is using an Request to event-history-api-candles.herokuapp.com to get history orders in a specific timespan.
But also not filtered by owner.
Example: https://event-history-api-candles.herokuapp.com/tv/history?symbol=BTC%2FUSDC&resolution=60&from=1654221904&to=1654257904

bump

I haven't used it yet,
but they recommended me to use

vybenetwork

for retrieving filled orders.

Please let me know if you have success with it.