openbook-dex / program

Openbook dex solana program
Apache License 2.0
171 stars 93 forks source link

help getting my trading history #43

Open npomfret opened 1 week ago

npomfret commented 1 week ago

I'm trying to reverse engineer my trading history from the blockchain. I'm finding it difficult to identify the place order instructions and the corresponding fills.

Does anyone know of any software or scripts out there that I could refer to?

riordanp commented 1 week ago

the rough process is to find all transactions with a ConsumeEvents instruction referencing your OpenOrders account public key, then decode the emitted FillEventLog from the program logs according to the IDL (https://gist.github.com/riordanp/68013c81f2aed299ed2df54b956ed834). i'm afraid I don't have any example code I can provide however