project-serum / serum-ts

Project Serum TypeScript monorepo
https://projectserum.com
Apache License 2.0
270 stars 245 forks source link

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

Open Danilo-Araujo-Silva opened 2 years ago

Danilo-Araujo-Silva commented 2 years ago

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 })
Triggsy22 commented 2 years ago

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

cloorem2 commented 2 years ago

bump

Danilo-Araujo-Silva commented 2 years ago

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.